Hi,
I need to find whether a word is verb or noun or it is both
For example, the word is "search" it can be both noun and a verb but stanford parser gives NN tag to it..
is there any way that stanford parser will give that "search" is both noun and verb?
code that i use now
public static String Lemmatize(String word) {
WordTag w = new WordTag(word);
w.setTag(POSTagWord(word));
Morphology m = new Morphology();
WordLemmaTag wT = m.lemmatize(w);
return wT.lemma();
}
or should i use any other software to do it? please suggest me thanks in advance