org.languagetool.tagging.de
Class GermanTagger
java.lang.Object
org.languagetool.tagging.de.GermanTagger
- All Implemented Interfaces:
- Tagger
public class GermanTagger
- extends Object
- implements Tagger
German part-of-speech tagger, requires data file in resource/de/german.dict.
The POS tagset is described in
tagset.txt
- Author:
- Marcin Milkowski, Daniel Naber
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GermanTagger
public GermanTagger()
lookup
public AnalyzedGermanTokenReadings lookup(String word)
throws IOException
- Throws:
IOException
tag
public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
throws IOException
- Specified by:
tag in interface Tagger
- Throws:
IOException
tag
public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens,
boolean ignoreCase)
throws IOException
- Throws:
IOException
createNullToken
public final AnalyzedGermanTokenReadings createNullToken(String token,
int startPos)
- Specified by:
createNullToken in interface Tagger
createToken
public AnalyzedToken createToken(String token,
String posTag)
- Specified by:
createToken in interface Tagger
main
public static void main(String[] args)
throws IOException
- Test only
- Throws:
IOException
Copyright © 2013. All Rights Reserved.