de.danielnaber.languagetool.tagging.disambiguation
Interface Disambiguator

All Known Implementing Classes:
AbstractRuleDisambiguator, DemoDisambiguator, DutchRuleDisambiguator, EnglishRuleDisambiguator, FrenchRuleDisambiguator, PolishChunker, PolishHybridDisambiguator, PolishRuleDisambiguator, RomanianRuleDisambiguator, RussianRuleDisambiguator, TrimDisambiguator

public interface Disambiguator

Disambiguator interface. Particular implementations are language-dependent.

The POS tagger might assign multiple tags to the token. The goal is to filter out the incorrect tags and leave ideally only one per token.

Author:
Jozef Licko

Method Summary
 AnalyzedSentence disambiguate(AnalyzedSentence input)
          If possible, filters out the wrong POS tags.
 

Method Detail

disambiguate

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


Copyright © 2005-2009 Daniel Naber