問題: を使用して単語を語幹化するオプションはありますstanford-core-nlp
か? 私はそれを見つけることができません!私は stanford-corenlp-3.5.2.jar を使用しています。
コード:
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);
}
}