Class MultiWordChunker
java.lang.Object
org.languagetool.tagging.disambiguation.AbstractDisambiguator
org.languagetool.tagging.disambiguation.MultiWordChunker
- All Implemented Interfaces:
Disambiguator
Multiword tagger-chunker.
- Author:
- Marcin MiĆkowski
-
Constructor Summary
ConstructorsConstructorDescriptionMultiWordChunker(String filename) MultiWordChunker(String filename, boolean allowFirstCapitalized) -
Method Summary
Modifier and TypeMethodDescriptionfinal AnalyzedSentencedisambiguate(AnalyzedSentence input) Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)Methods inherited from class org.languagetool.tagging.disambiguation.AbstractDisambiguator
preDisambiguate
-
Constructor Details
-
MultiWordChunker
- Parameters:
filename- file text with multiwords and tags
-
MultiWordChunker
- Parameters:
filename- file text with multiwords and tagsallowFirstCapitalized- if set totrue, first word of the multiword can be capitalized
-
-
Method Details
-
disambiguate
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...) start, and </ELLIPSIS> for ellipsis end.- Parameters:
input- The tokens to be chunked.- Returns:
- AnalyzedSentence with additional markers.
-