lingscope.algorithms
Class PosTagger

java.lang.Object
  extended by lingscope.algorithms.PosTagger

public class PosTagger
extends java.lang.Object

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

PosTagger

public PosTagger(java.lang.String grammarFile)
Creates an instance of POS tagger by loading the given grammar file

Parameters:
grammarFile -
Method Detail

replaceWordsWithPos

public 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

Parameters:
sentence -
isTokenized -
Returns: