fhamborg / Giveme5W1H

Extraction of the journalistic five W and one H questions (5W1H) from news articles: who did what, when, where, why, and how?
Apache License 2.0
505 stars 87 forks source link

StanfordCoreNLP doesn't seem to complete a request from GiveMe5W1H #68

Closed jeremytanjianle closed 3 years ago

jeremytanjianle commented 3 years ago

Hi, I'm trying to send a request down GiveE5W1H from the python package. Everything seems to work fine from the python side. Unfortunately, the StandfordCoreNLP server seems to be stuck at this particular step - by stuck i mean the terminal simply stops there until i close it or send another request which waits behind in the queue.

Is there a particular setup step that is needed to load this? Particulalry the coref-classifier. Thanks.

[main] INFO CoreNLP - StanfordCoreNLPServer listening at /0:0:0:0:0:0:0:0:9000
[pool-1-thread-2] INFO CoreNLP - [/127.0.0.1:41548] API call w/annotators tokenize,ssplit,pos,lemma,parse,ner,depparse,mention,coref
Kuwait's crown prince, oil min to visit Saudi Arabia on Tuesday - state media. Kuwait's crown prince Sheikh Meshal al-Ahmad will lead a delegation, which includes the oil and foreign ministers, on an official visit to neighbouring Saudi Arabia on Tuesday, state media reported.. Kuwait's newly appointed crown prince Sheikh Meshal al-Ahmad Al-Jaber al-Sabah waves before he is sworn in, as speaker of parliament Marzouq al-Ghanim, and Kuwait's Prime Minister Sheikh Sabah al-Khalid al-Sabah clap, at the parliament, in Kuwait City, Kuwait October 8, 2020. REUTERS/Stephanie McGehee CAIRO - May 31 (Reuters) - Kuwait's crown prince Sheikh Meshal al-Ahmad will lead a delegation, which includes the oil and foreign ministers, on an official visit to neighbouring Saudi Arabia on Tuesday, state media reported. The visit comes amid a separate meeting of the Organization of the Petroleum Exporting Countries and their allies including Russia on Tuesday. The group known as OPEC+ is expected to stay the course on its plans to gradually ease supply cuts until July. read more Kuwait and Saudi Arabia, which share oilfields in a neutral zone on the boundary of the two countries, last year began production at one of the fields after a five-year hiatus. Reporting by Alaa Swilam and Omar Fahmy; editing by David Evans Our Standards: The Thomson Reuters Trust Principles.
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator tokenize
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ssplit
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator pos
[pool-1-thread-2] INFO edu.stanford.nlp.tagger.maxent.MaxentTagger - Loading POS tagger from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0.7 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator lemma
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator parse
[pool-1-thread-2] INFO edu.stanford.nlp.parser.common.ParserGrammar - Loading parser from serialized file edu/stanford/nlp/models/srparser/englishSR.ser.gz ... done [13.1 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator ner
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz ... done [3.3 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz ... done [3.4 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.ie.AbstractSequenceClassifier - Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... done [0.7 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.time.JollyDayHolidays - Initializing JollyDayHoliday for SUTime from classpath edu/stanford/nlp/models/sutime/jollyday/Holidays_sutime.xml as sutime.binder.1.
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator depparse
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.DependencyParser - Loading depparse model file: edu/stanford/nlp/models/parser/nndep/english_UD.gz ... 
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.Classifier - PreComputed 99996, Elapsed Time: 14.839 (s)
[pool-1-thread-2] INFO edu.stanford.nlp.parser.nndep.DependencyParser - Initializing dependency parser ... done [16.7 sec].
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator mention
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.MentionAnnotator - Using mention detector type: dependency
[pool-1-thread-2] INFO edu.stanford.nlp.pipeline.StanfordCoreNLP - Adding annotator coref
[pool-1-thread-2] INFO edu.stanford.nlp.coref.statistical.SimpleLinearClassifier - Loading coref model edu/stanford/nlp/models/coref/statistical/ranking_model.ser.gz ... done [3.3 sec].
fhamborg commented 3 years ago

hi, thanks for the report. this seems to be an issue that you should check with https://github.com/stanfordnlp/CoreNLP since it's not related to giveme5w1h

mjbeckstrand commented 2 years ago

Most curious if you worked this out @jeremytanjianle ? I'm seeing the same thing with the CoreNLP hanging indefinitely at the same place.