|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGermanTagger
public class GermanTagger
German tagger, requires data file in resource/de/german.dict.
| 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 |
|---|
public GermanTagger()
| Method Detail |
|---|
public AnalyzedGermanTokenReadings lookup(String word)
throws IOException
IOExceptionpublic void setFileName()
public 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.
tag in interface TaggersentenceTokens - the text as returned by a WordTokenizer but whithout whitespace tokens.
IOException
public List<AnalyzedTokenReadings> tag(List<String> sentenceTokens,
boolean ignoreCase)
throws IOException
IOException
public final Object createNullToken(String token,
int startPos)
Taggernull
as the POS tag for this token.
createNullToken in interface Tagger
public static void main(String[] args)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||