brendano / stanford_corenlp_pywrapper

151 stars 59 forks source link

Added the sentiment tagging #25

Open duncanhodges opened 9 years ago

duncanhodges commented 9 years ago

This is now at a Tree level.

anupamme commented 9 years ago

Hello,

were you able to make sentiment part work? I tried your solution but when I run

proc = sockwrap.SockWrap("coref", corenlp_jars=["/path_to_3.5.0_jars/*"])

I get exception

Exception in thread "main" java.lang.NoClassDefFoundError: org/ejml/simple/SimpleBase at edu.stanford.nlp.pipeline.SentimentAnnotator.(SentimentAnnotator.java:48) at edu.stanford.nlp.pipeline.AnnotatorImplementations.sentiment(AnnotatorImplementations.java:187) at edu.stanford.nlp.pipeline.AnnotatorFactories$13.create(AnnotatorFactories.java:492)

duncanhodges commented 9 years ago

Looks like you're not including the jars from the Stanford NLP system properly you should have an ejml-x.x.jar in the folder with your jars from the stanford system - this will provide the SimpleBase class