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
512 stars 89 forks source link

Giveme5W1H issues 25# - The error seems to be coming from Stanford CoreNLP #49

Open WeeklyUfo opened 4 years ago

WeeklyUfo commented 4 years ago

I am getting the same error that Tommo565 was getting a couple of years ago.

I have executed both my own code and sample code. Both produce the following error:

Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Python38\lib\site-packages\Giveme5W1H\extractor\extractor.py", line 20, in run extractor.process(document) File "C:\Python38\lib\site-packages\Giveme5W1H\extractor\extractors\abs_extractor.py", line 41, in process self._evaluate_candidates(document) File "C:\Python38\lib\site-packages\Giveme5W1H\extractor\extractors\action_extractor.py", line 104, in _evaluate_candidates if any(doc_coref.values()): AttributeError: 'list' object has no attribute 'values' Could not handle incoming annotation

The error seems to be coming from Stanford CoreNLP, not our tool. Could you provide a full, minimal code example, with which I can reproduce the error, including also an article text, please?

Originally posted by @fhamborg in https://github.com/fhamborg/Giveme5W1H/issues/25#issuecomment-431657450

DerekChia commented 4 years ago

It is likely that you have higher version of Java. Downgrade to Java 8 and you should be fine. Check out #32

MrZhangmc commented 3 years ago

It is likely that you have higher version of Java. Downgrade to Java 8 and you should be fine. Check out #32

hi, my java is 1.8 like this java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode) but i also meet this error, could you help me, please?

nurub-tech commented 3 years ago

Same here. I'm using java 8 and I'm facing this issue too

java -version java version "1.8.0_281" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.281-b09, mixed mode)