Package lingscope.algorithms
Class PosTagger
- java.lang.Object
-
- lingscope.algorithms.PosTagger
-
public class PosTagger extends Object
Part of speech tagger- Author:
- shashank
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>replaceWordsWithPos(String sentence, boolean isTokenized)Takes a sentence as input and returns list of POS tags associated with each word in the sentence
-
-
-
Constructor Detail
-
PosTagger
public PosTagger(String grammarFile)
Creates an instance of POS tagger by loading the given grammar file- Parameters:
grammarFile-
-
-