Closed ghost closed 2 years ago
The most latest sample should be here - https://sergey-tihon.github.io/Stanford.NLP.NET//samples/CoreNLP.Server.html
Where did you get stack trace? It looks like JVM exception. You always can repeat question on SO - there are much more Java experts.
Take a look docs about CoreNLP server and check params - https://stanfordnlp.github.io/CoreNLP/corenlp-server.html
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
I copied the exact example code from https://sergey-tihon.github.io/Stanford.NLP.NET//samples/CoreNLP.Server.html but still get the exception printed at the end of execution.
Kosgi [pos=NNP; ner=PERSON] Santosh [pos=NNP; ner=PERSON] sent [pos=VBD; ner=O] an [pos=DT; ner=O] email [pos=NN; ner=O] to [pos=TO; ner=O] Stanford [pos=NNP; ner=ORGANIZATION] University [pos=NNP; ner=ORGANIZATION] . [pos=.; ner=O] Exception in thread "Thread-0" java.lang.IllegalMonitorStateException at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:151) at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1259) at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:457) at edu.stanford.nlp.pipeline.StanfordCoreNLPClient$BackendScheduler.run(StanfordCoreNLPClient.java:173) Press any key to continue...
I will ask on SO and hopefully get a simple work around.
Close as an old issue
I have the below code using the sample I saw in https://github.com/sergey-tihon/Stanford.NLP.NET/issues/83.
The code will return all of the names in the text but will always end in
I'm not very familiar with concurrency in Java so any resources that may solve my problem or a simple work around will be greatly appreciated!