-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Could not find or load main class edu.stanford.nlp.pipeline.StanfordCoreNLPServer #11
Comments
If you're using Make sure that do one of the following
You can find more info here |
After running this I am getting above error(Though I have successfully set the path of CoreNLP in bashrc). I tried to run the command in this directory too: /home/stanford-corenlp-full-2015-12-09/ Please help me. |
@PawarKishori I get the same error, do you solve it? |
@PawarKishori @leolle getting same error here, did you solve it? |
@PawarKishori It seems that using " -cp "*" " is the attended way to use the StanfordCoreNLP, use it in the StanfordCoreNLP directory |
java -mx3g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLP, this works for me |
I solved this problem by updating to java8 |
I know this is an old issue, but I wanted to mark it here for other's reference. This issue can also happen if you have your |
If you have put the path to stanford-corenlp in CLASSPATH, you can remove classpath (-cp) option altogether. This works for me -
In your ~/.bashrc or ~/.zshrc you can put -
|
Double check also that you've installed the full CoreNLP and not just a language model. If you only have a jar that ends with "-models.jar", like stanford-english-corenlp-2018-10-05-models.jar, you're missing the rest of CoreNLP. I had made the mistake of downloading just a model from their download page, skipping past the big red "Download CoreNLP" button. :) |
hello,I have similar problem,when I use Stanford POSTagger have error。Error: Could not find or load main class edu.stanford.nlp.tagger.maxent.MaxentTagger-model,I don't know why? |
May I ask where is the full CoreNLP? I can only download the version with a single "-model.jar". |
https://stanfordnlp.github.io/CoreNLP/download.html |
This works for me: java -mx3g -cp "path/to/stanford-corenlp-4.2.0/*" edu.stanford.nlp.pipeline.StanfordCoreNLP -outputFormat json -file input.txt |
That is because of absence StanfordCoreNLPServer class, which is an enrtypoint. Download CoreNLP 4.0.0 jar file from |
hello, when i write below command,i get an error.
command:
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer [port] [timeout]
Error:
Error: Could not find or load main class edu.stanford.nlp.pipeline.StanfordCoreNLPServer
i am a beginner in python. but i need to use this module.
please help me,what should i do?
The text was updated successfully, but these errors were encountered: