0

Is there a way to use CoreNLP in Python for coreference resolution? I have tried using the Stanford server and this link. But they don't work.

Deesha
  • 538
  • 8
  • 27
  • Can you elaborate on how it doesn't work? The server certainly outputs coreference information; in the worst case, you can make POST requests to the server and parse the resulting JSON. – Gabor Angeli Dec 22 '16 at 08:54
  • edu.stanford.nlp.util.ReflectionLoading$ReflectionLoadingException: Error creating edu.stanford.nlp.time.TimeExpressionExtractorImpl – Deesha Dec 22 '16 at 09:11
  • I get such kind of error while using the local server – Deesha Dec 22 '16 at 09:16
  • Can you post a full stack trace, and the command you used to run the server? This sounds like a classpath issue, from not having the full corenlp jar in your classpath? – Gabor Angeli Dec 22 '16 at 09:46
  • java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer [port] [timeout] – Deesha Dec 22 '16 at 11:41
  • No, I mean the actual command you used on the command line, and if you have wildcards in there (-cp "*") the contents of the directory you're in. What version of CoreNLP are you using? What's the full stack trace? You need to provide enough information for someone to debug what might be wrong, and not just say "yes, that should work. It works for everyone else." – Gabor Angeli Dec 22 '16 at 17:26
  • I am sorry. I am new to this. I am using version 3.7.0. I don't know what a full stack trace is. – Deesha Dec 23 '16 at 11:28

0 Answers0