Class PortugueseHybridDisambiguator

java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.disambiguation.pt.PortugueseHybridDisambiguator
All Implemented Interfaces:
Disambiguator

public class PortugueseHybridDisambiguator extends AbstractDisambiguator
Hybrid chunker-disambiguator for Portuguese.
  • Field Details

  • Constructor Details

    • PortugueseHybridDisambiguator

      public PortugueseHybridDisambiguator(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 final 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