Comments (2)
Need to include the ejml library in your classpath
On Sun, Dec 29, 2013 at 12:34 PM, Alex Weissman [email protected]:
I'm having trouble figuring out how to get the sentiment analysis tool to
output as an XML file when run from the command line. When I run the
command provided on http://www-nlp.stanford.edu/sentiment/code.html it
works fine but only outputs plain text:Adding annotator tokenize
Adding annotator ssplit
Adding annotator parse
Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [1.3 sec].
Adding annotator sentiment
This is so great.
Very positive
It was okay I guess.
Neutral
However if I try to run the full CoreNLP tool with the sentiment
annotator, like such:java -cp stanford-corenlp-full-2013-11-12/stanford-corenlp-3.3.0.jar:stanford-corenlp-full-2013-11-12/stanford-corenlp-3.3.0-models.jar:stanford-corenlp-full-2013-11-12/xom.jar:stanford-corenlp-full-2013-11-12/joda-time.jar:stanford-corenlp-full-2013-11-12/jollyday.jar -Xmx3g edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,parse,sentiment -file ./tweets/tweet1.txt
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/ejml/simple/SimpleBase
at edu.stanford.nlp.pipeline.SentimentAnnotator.<init>(SentimentAnnotator.java:45) at edu.stanford.nlp.pipeline.StanfordCoreNLP$14.create(StanfordCoreNLP.java:845) at edu.stanford.nlp.pipeline.AnnotatorPool.get(AnnotatorPool.java:81) at edu.stanford.nlp.pipeline.StanfordCoreNLP.construct(StanfordCoreNLP.java:260) at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:127) at edu.stanford.nlp.pipeline.StanfordCoreNLP.<init>(StanfordCoreNLP.java:123) at edu.stanford.nlp.pipeline.StanfordCoreNLP.main(StanfordCoreNLP.java:1430)
Caused by: java.lang.ClassNotFoundException: org.ejml.simple.SimpleBase
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 7 more
If I run the command without the sentiment annotator, it works fine but of
course I can't get any sentiment results.I should also mention that I am running everything wrapped inside a Python
subprocess.Popen() call, since the rest of our project is written in Python.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/8
.
from corenlp.
That works, thank you!
Would it be possible to add an extra column to the table on http://nlp.stanford.edu/software/corenlp.shtml that lists which libraries are required for each annotator? Thanks again.
from corenlp.
Related Issues (20)
- english.all.3class.distsim.crf.ser.gz ???? HOT 1
- Training Shift Reduce Parser HOT 1
- German Lemma not working? HOT 10
- Wrong POS for "keine": PRON instead of DET HOT 7
- Support HOT 2
- Is downloads.cs.stanford.edu down? HOT 3
- Arabic Processing data HOT 2
- VBN vs VBD in the input files from PTB
- Is https://corenlp.run down? HOT 1
- Local Server Run Fails Due to Main Website Outage HOT 3
- Cannot instantiate a StanfordCoreNLP pipeline in a Springboot Project using Maven HOT 4
- I use this command, but the word-cut results are same to space-split. Thank you very much.
- Unable to install CoreNLP software HOT 7
- KBA appears to miss per:child when separated by location
- edu.stanford.nlp.pipeline.StanfordCoreNLP HOT 1
- Unable to extract triplets HOT 3
- downloadCoreNLP() timeout HOT 2
- TokensRegex cannot detect rules cross special symbols, eg. '.' or ','
- Unable to open "/home/john/extern_data/corenlp-segmenter/dict-chris6.ser.gz" HOT 7
- Creating a Dockerfile for CoreNLP HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corenlp.