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.
|
default AnalyzedSentence |
disambiguate(AnalyzedSentence input,
JLanguageTool.CheckCancelledCallback checkCanceled)
The same as
disambiguate(AnalyzedSentence) ,
but may call checkCanceled (if it's non-null) to allow for better interruptibility. |
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
default AnalyzedSentence disambiguate(AnalyzedSentence input, @Nullable JLanguageTool.CheckCancelledCallback checkCanceled) throws IOException
disambiguate(AnalyzedSentence)
,
but may call checkCanceled
(if it's non-null) to allow for better interruptibility.IOException