| Constructor and Description |
|---|
GermanTagger() |
| Modifier and Type | Method and Description |
|---|---|
AnalyzedGermanTokenReadings |
createNullToken(String token,
int startPos)
Create the AnalyzedToken used for whitespace and other non-words.
|
AnalyzedToken |
createToken(String token,
String posTag)
Create a token specific to the language of the implementing class.
|
AnalyzedGermanTokenReadings |
lookup(String word) |
static void |
main(String[] args)
Test only
|
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) |
public AnalyzedGermanTokenReadings lookup(String word) throws IOException
IOExceptionpublic List<AnalyzedTokenReadings> tag(List<String> sentenceTokens) throws IOException
TaggerAnalyzedTokens 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.
public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens, boolean ignoreCase) throws IOException
IOExceptionpublic final AnalyzedGermanTokenReadings createNullToken(String token, int startPos)
Taggernull
as the POS tag for this token.createNullToken in interface Taggerpublic AnalyzedToken createToken(String token, String posTag)
TaggercreateToken in interface Taggerpublic static void main(String[] args)
throws IOException
IOExceptionCopyright © 2005-2011 Daniel Naber