Class EnglishHybridDisambiguator

java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.en.EnglishHybridDisambiguator
All Implemented Interfaces:
Disambiguator

public class EnglishHybridDisambiguator extends AbstractDisambiguator
Hybrid chunker-disambiguator for English.
Since:
4.8
  • Field Details

  • Constructor Details

    • EnglishHybridDisambiguator

      public EnglishHybridDisambiguator(Language lang)
  • Method Details

    • disambiguate

      public AnalyzedSentence disambiguate(AnalyzedSentence input) throws IOException
      Description copied from interface: Disambiguator
      If possible, filters out the wrong POS tags.
      Parameters:
      input - The sentence with already tagged words. The words are expected to have multiple tags.
      Returns:
      Analyzed sentence, where each word has only one (possibly the most correct) tag.
      Throws:
      IOException
    • disambiguate

      public AnalyzedSentence disambiguate(AnalyzedSentence input, @Nullable JLanguageTool.CheckCancelledCallback checkCanceled) throws IOException
      Calls two disambiguator classes: (1) a chunker; (2) a rule-based disambiguator. Put the results of the MultiWordChunker in a more appropriate and useful way. <NN></NN> becomes NN NN The individual original tags are removed. Add spell ignore
      Throws:
      IOException