|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Tagger
The part-of-speech tagger interface, whose implementions are usually language-dependent.
| Method Summary | |
|---|---|
Object |
createNullToken(String token,
int startPos)
Create the AnalyzedToken used for whitespace and other non-words. |
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). |
| Method Detail |
|---|
List<AnalyzedTokenReadings> tag(List<String> sentenceTokens)
throws IOException
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.
sentenceTokens - the text as returned by a WordTokenizer but whithout whitespace tokens.
IOException
Object createNullToken(String token,
int startPos)
null
as the POS tag for this token.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||