public interface Disambiguator
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.
Modifier and Type | Method and Description |
---|---|
AnalyzedSentence |
disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.
|
AnalyzedSentence |
preDisambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.
|
AnalyzedSentence preDisambiguate(AnalyzedSentence input)
input
- The sentence with already tagged words. The words are expected to
have multiple tags.AnalyzedSentence disambiguate(AnalyzedSentence input) throws IOException
input
- The sentence with already tagged words. The words are expected to
have multiple tags.IOException