edu.stanford.nlp.io.RuntimeIOException: Could not connect to server

前端 未结 1 1854
南方客
南方客 2021-01-25 06:10

I\'m trying to annotate multiple sentences using the CoreNLP server. However, if I try to that with too many sentences I\'m getting:

Exception in thread         


        
相关标签:
1条回答
  • 2021-01-25 07:11

    I had a similar problem. In my case, I wanted to use the coreference resolution and I solved by using the following annotators: tokenize,ssplit,pos,lemma,ner,depparse,mention,coref

    • Or a command line like the one below:

    java -Xmx5g -cp stanford-corenlp-3.6.0.jar:stanford-corenlp-models-3.6.0.jar:* edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma,ner,depparse,mention,coref -file example_file.txt

    The reason is that it's more efficient (in relation to speed), according to this page: http://stanfordnlp.github.io/CoreNLP/coref.html#overview

    0 讨论(0)
提交回复
热议问题