Class GermanTagger
java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.de.GermanTagger
- All Implemented Interfaces:
org.languagetool.tagging.Tagger
- Direct Known Subclasses:
SwissGermanTagger
public class GermanTagger
extends org.languagetool.tagging.BaseTagger
German part-of-speech tagger, requires data file in
de/german.dict in the classpath.
The POS tagset is described in
tagset.txt- Author:
- Marcin Milkowski, Daniel Naber
-
Field Summary
Fields inherited from class org.languagetool.tagging.BaseTagger
conversionLocale, wordTagger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.languagetool.tagging.BaseTagger
additionalTags, asAnalyzedToken, asAnalyzedTokenList, asAnalyzedTokenListForTaggedWords, createNullToken, createToken, getAnalyzedTokens, getDictionary, getDictionaryPath, getWordTagger, overwriteWithManualTagger
-
Constructor Details
-
GermanTagger
public GermanTagger()
-
-
Method Details
-
getManualAdditionsFileName
- Specified by:
getManualAdditionsFileNamein classorg.languagetool.tagging.BaseTagger
-
getManualRemovalsFileName
- Overrides:
getManualRemovalsFileNamein classorg.languagetool.tagging.BaseTagger
-
lookup
@Nullable public @Nullable org.languagetool.AnalyzedTokenReadings lookup(String word) throws IOException Return only the first reading of the given word ornull.- Throws:
IOException
-
tag
-
tag
public List<org.languagetool.AnalyzedTokenReadings> tag(List<String> sentenceTokens) throws IOException - Specified by:
tagin interfaceorg.languagetool.tagging.Tagger- Overrides:
tagin classorg.languagetool.tagging.BaseTagger- Throws:
IOException
-
tag
public List<org.languagetool.AnalyzedTokenReadings> tag(List<String> sentenceTokens, boolean ignoreCase) throws IOException - Throws:
IOException
-