stanford nlp - Stemming option in stanfordcorenlp -


problem: there option stem words using stanford-core-nlp? not able find one! using 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);   } } 

you'll need github: https://github.com/stanfordnlp/corenlp

this class provide want:

https://github.com/stanfordnlp/corenlp/blob/master/src/edu/stanford/nlp/process/stemmer.java

the main() method of class shows example usage of stemmer.

you can continue use stanford-corenlp-3.5.2.jar , include 1 class, since class depends on in jar.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -