Skip to content
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

Weird error: py-corenlp or CoreNLP problem? #18

Open
pwichmann opened this issue Apr 12, 2017 · 4 comments
Open

Weird error: py-corenlp or CoreNLP problem? #18

pwichmann opened this issue Apr 12, 2017 · 4 comments

Comments

@pwichmann
Copy link

pwichmann commented Apr 12, 2017

Many thanks for your excellent library! It helped me quite a lot.

I have recently started to run into this error (after update to CoreNLP 3.7.0):

[pool-2-thread-3] ERROR edu.stanford.nlp.pipeline.StanfordCoreNLP - Attempted to fetch annotator "parse" before the annotator pool was created!
java.util.concurrent.ExecutionException: java.lang.AssertionError: Failed to get parser - this should not be possible

Can this be a py-corenlp problem or is it a Stanford CoreNLP problem?

@Motwani
Copy link

Motwani commented Apr 14, 2017

Getting the same error as above.

This is the code I'm running.

import json
from pycorenlp import StanfordCoreNLP
import pickle
import codecs

nlp = StanfordCoreNLP('http://localhost:9000')

lines = "Carrie would sneak rides on her sister Dan's bike . "

ans = nlp.annotate(lines, properties={'annotators':'tokenize,ssplit,pos,lemma,ner,parse,mention,coref','coref.algorithm':'neural'})

Using CoreNLP 3.7.0.

@pwichmann
Copy link
Author

If anyone knows what causes the error, would you be so kind to reply in this thread?

@Sheldon-Anderson
Copy link

I've met this same kind of error. When I ran it on Windows 10 OS, it was OK, but when I ran it on Ubuntu 16.04 Server, It was an error.

Try to use 'annotators':'tokenize,ssplit,pos,depparse,parse' instead of 'annotators':'tokenize,ssplit,pos,lemma,ner,parse,mention,coref'. It ran well.

If you really need 'coref', you'd better try some methods else.

@nzv8fan
Copy link

nzv8fan commented May 7, 2018

Could it be that you're attempting to call CoreNLP before the server is fully started? It takes a few seconds for the server to boot up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants