de.danielnaber.languagetool.tagging.de
Class GermanTagger

Object
  extended by GermanTagger
All Implemented Interfaces:
Tagger

public class GermanTagger
extends Object
implements Tagger

German tagger, requires data file in resource/de/german.dict.

Author:
Marcin Milkowski, Daniel Naber

Constructor Summary
GermanTagger()
           
 
Method Summary
 Object createNullToken(String token, int startPos)
          Create the AnalyzedToken used for whitespace and other non-words.
 AnalyzedGermanTokenReadings lookup(String word)
           
static void main(String[] args)
          Test only
 void setFileName()
           
 List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
          Returns a list of AnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).
 List<AnalyzedTokenReadings> tag(List<String> sentenceTokens, boolean ignoreCase)
           
 
Methods inherited from class Object
equals, 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

setFileName

public void setFileName()

tag

public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
                                throws IOException
Description copied from interface: Tagger
Returns a list of AnalyzedTokens 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:
tag in interface Tagger
Parameters:
sentenceTokens - the text as returned by a WordTokenizer but whithout whitespace tokens.
Throws:
IOException

tag

public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens,
                                       boolean ignoreCase)
                                throws IOException
Throws:
IOException

createNullToken

public final Object createNullToken(String token,
                                    int startPos)
Description copied from interface: Tagger
Create the AnalyzedToken used for whitespace and other non-words. Use null as the POS tag for this token.

Specified by:
createNullToken in interface Tagger

main

public static void main(String[] args)
                 throws IOException
Test only

Throws:
IOException


Copyright © 2005-2007 Daniel Naber