org.languagetool.tagging.de
Class GermanTagger

java.lang.Object
  extended by 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

Constructor Summary
GermanTagger()
           
 
Method Summary
 AnalyzedGermanTokenReadings createNullToken(String token, int startPos)
           
 AnalyzedToken createToken(String token, String posTag)
           
 AnalyzedGermanTokenReadings lookup(String word)
           
static void main(String[] args)
          Test only
 List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
           
 List<AnalyzedTokenReadings> tag(List<String> sentenceTokens, boolean ignoreCase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GermanTagger

public GermanTagger()
Method Detail

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.