Package org.languagetool.tagging.eo
Class EsperantoTagger
java.lang.Object
org.languagetool.tagging.eo.EsperantoTagger
- All Implemented Interfaces:
Tagger
A part-of-speech tagger for Esperanto.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNullToken(String token, int startPos) Create the AnalyzedToken used for whitespace and other non-words.createToken(String token, String posTag) Create a token specific to the language of the implementing class.private StringfindTransitivity(String verb) private voidlazyInit()loadWords(InputStream stream) Load list of words from UTF-8 file (one word per line).Returns a list ofAnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).private static String
-
Field Details
-
manualTagger
-
setTransitiveVerbs
-
setIntransitiveVerbs
-
patternVerb
-
patternPrefix
-
patternSuffix
-
patternParticiple
-
setNonParticiple
-
patternTabelvorto
-
patternTabelvortoAdverb
-
-
Constructor Details
-
EsperantoTagger
public EsperantoTagger()
-
-
Method Details
-
xSystemToUnicode
-
loadWords
Load list of words from UTF-8 file (one word per line).- Throws:
IOException
-
lazyInit
- Throws:
IOException
-
findTransitivity
-
tag
Description copied from interface:TaggerReturns a list ofAnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).Note that this method takes exactly one sentence. Its implementation may implement special cases for the first word of a sentence, which is usually written with an uppercase letter.
- Specified by:
tagin interfaceTagger- Parameters:
sentenceTokens- the text as returned by a WordTokenizer- Throws:
IOException
-
createNullToken
Description copied from interface:TaggerCreate the AnalyzedToken used for whitespace and other non-words. Usenullas the POS tag for this token.- Specified by:
createNullTokenin interfaceTagger
-
createToken
Description copied from interface:TaggerCreate a token specific to the language of the implementing class.- Specified by:
createTokenin interfaceTagger
-