Class AbstractDisambiguator
java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
- All Implemented Interfaces:
Disambiguator
- Direct Known Subclasses:
DemoDisambiguator,MultiWordChunker,MultiWordChunker2,NoopDisambiguator,XmlRuleDisambiguator
Abstract Disambiguator class to provide default (empty) implementation
for
Disambiguator.preDisambiguate(AnalyzedSentence).- Since:
- 3.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpreDisambiguate(AnalyzedSentence input) If possible, filters out the wrong POS tags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.languagetool.tagging.disambiguation.Disambiguator
disambiguate
-
Constructor Details
-
AbstractDisambiguator
public AbstractDisambiguator()
-
-
Method Details
-
preDisambiguate
Description copied from interface:DisambiguatorIf 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.- Specified by:
preDisambiguatein interfaceDisambiguator- 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.
-