hotpxl / corenlp-server Goto Github PK
View Code? Open in Web Editor NEWServer wrapper for Stanford CoreNLP
License: MIT License
Server wrapper for Stanford CoreNLP
License: MIT License
After I build and run the image (with the -itp switch), when I go to the corenlp-server directory and try to start the server, I get this error.
root@eeebd23ea63e:/corenlp-server# ./start-server.sh
> @ start /corenlp-server
> node index.js
CoreNLP Server listening at http://[::]:8080
Unhandled rejection Error: Could not find class edu.stanford.nlp.pipeline.StanfordCoreNLP
java.lang.NoClassDefFoundError: edu/stanford/nlp/pipeline/StanfordCoreNLP
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLP
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at Error (native)
at Java.tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
at Java.ret [as newInstanceAsync] (eval at <anonymous> (/corenlp-server/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:15:23)
at /corenlp-server/lib.js:23:17
at tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/corenlp-server/node_modules/bluebird/js/release/promise.js:503:31)
at Promise._settlePromise (/corenlp-server/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/corenlp-server/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/corenlp-server/node_modules/bluebird/js/release/promise.js:684:18)
at Promise._fulfill (/corenlp-server/node_modules/bluebird/js/release/promise.js:629:18)
at /corenlp-server/node_modules/bluebird/js/release/nodeback.js:42:21
Any ideas as to how I can find that class and debug this?
I'm a little confused about this step:
Stanford CoreNLP is also needed. Install separately and make a symbolic link java-lib to it.
So, I downloaded the stanford-english-corenlp-2016-01-10-models.jar
file from that web page and linked it like so:
ln -s stanford-english-corenlp-2016-01-10-models.jar java-lib
After building and running my Docker image, when I try to run start-server.sh from inside the image, I get this error:
root@7d4eb917c470:/corenlp-server# ./start-server.sh
> @ start /corenlp-server
> node index.js
CoreNLP Server listening at http://[::]:8080
Unhandled rejection Error: Could not find class edu.stanford.nlp.pipeline.StanfordCoreNLP
java.lang.NoClassDefFoundError: edu/stanford/nlp/pipeline/StanfordCoreNLP
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.pipeline.StanfordCoreNLP
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at Error (native)
at Java.tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
at Java.ret [as newInstanceAsync] (eval at <anonymous> (/corenlp-server/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:15:23)
at /corenlp-server/lib.js:23:17
at tryCatcher (/corenlp-server/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/corenlp-server/node_modules/bluebird/js/release/promise.js:503:31)
at Promise._settlePromise (/corenlp-server/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/corenlp-server/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/corenlp-server/node_modules/bluebird/js/release/promise.js:684:18)
at Promise._fulfill (/corenlp-server/node_modules/bluebird/js/release/promise.js:629:18)
at /corenlp-server/node_modules/bluebird/js/release/nodeback.js:42:21
Any ideas about what I should be doing differently?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.