Interface Disambiguator

    • Method Detail

      • preDisambiguate

        AnalyzedSentence preDisambiguate​(AnalyzedSentence input)
        If possible, filters out the wrong POS tags. This code will run before disambiguation rules from xml are called. This allows to have some initial disambiguation logic in Java.
        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.
        Since:
        3.7
      • disambiguate

        AnalyzedSentence disambiguate​(AnalyzedSentence input)
                               throws java.io.IOException
        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:
        java.io.IOException