Problem: Is there an option to stem the words using stanford-core-nlp
?
I am not able to find one! I am using the stanford-corenlp-3.5.2.jar.
Code:
public class StanfordNLPTester {
public static void main (String args[]){
String paragraph = "A long paragraph here";
Properties properties = new Properties();
properties.put("annotators","tokenize,ssplit,pos,lemma,ner,depparse");
StanfordCoreNLP pipeline = new StanfordCoreNLP(properties);
Annotation annotation = new Annotation (paragraph);
pipeline.annotate(annotation);
pipeline.prettyPrint(annotation,System.out);
}
}