|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlingscope.algorithms.PosTagger
public class PosTagger
Part of speech tagger
Constructor Summary | |
---|---|
PosTagger(java.lang.String grammarFile)
Creates an instance of POS tagger by loading the given grammar file |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
replaceWordsWithPos(java.lang.String sentence,
boolean isTokenized)
Takes a sentence as input and returns list of POS tags associated with each word in the sentence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PosTagger(java.lang.String grammarFile)
grammarFile
- Method Detail |
---|
public java.util.List<java.lang.String> replaceWordsWithPos(java.lang.String sentence, boolean isTokenized)
sentence
- isTokenized
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |