-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displays HTTPError: 500 Server Error: Internal Server Error for url #82
Comments
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. |
The problem has been solved,the Stanfordcorenlp version is not compatible with java9 or higher, just drop the java version to 8 or below |
Describe the bug
Following installation, recieved the following while executing the parse_single_from_code.py.
No extractors passed: initializing default configuration.
No combinedScorers passed: initializing default configuration.
Traceback (most recent call last):
File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 466, in _request
r.raise_for_status()
File "D:\anaconda\lib\site-packages\requests\models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\anaconda\Lib\site-packages\Giveme5W1H\examples\extracting\parse_single_from_code.py", line 80, in
doc = extractor.parse(doc)
File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\extractor.py", line 104, in parse
self.preprocess(doc)
File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\extractor.py", line 87, in preprocess
self.preprocessor.preprocess(doc)
File "D:\anaconda\lib\site-packages\Giveme5W1H\extractor\preprocessors\preprocessor_core_nlp.py", line 111, in preprocess
annotation = self.cnlp.annotate(text=document.get_full_text(),
File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 533, in annotate
r = self._request(text.encode('utf-8'), request_properties, reset_default, **kwargs)
File "D:\anaconda\lib\site-packages\stanza\server\client.py", line 471, in _request
raise AnnotationException(e)
AnnotationException: 500 Server Error: Internal Server Error for url: http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false
To Reproduce
after connected to the server, run parse_single_from_code.py(or other example codes)
Expected behavior
all possible answers of the 5w1h in the example text should be printed
Log
No extractors passed: initializing default configuration.
No combinedScorers passed: initializing default configuration.
This issue is similar to #69,but I have the error:”HTTPError: 500 Server Error: Internal Server Error for url:http://localhost:9000/?properties=%7B%27outputFormat%27%3A+%27json%27%2C+%27timeout%27%3A+500000%2C+%27annotators%27%3A+%27tokenize%2Cssplit%2Cpos%2Clemma%2Cparse%2Cner%2Cdepparse%2Cmention%2Ccoref%27%2C+%27tokenize.language%27%3A+%27English%27%2C+%27date%27%3A+%272016-11-10+07%3A44%3A00%27%7D&resetDefault=false”
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: