Closed cruperman closed 5 years ago
how did you install corenlp, which version is it, how did you start it?
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y python3.7 python3.7-dev python3-pip
RUN apt-get install -y openjdk-8-jdk openjdk-8-jre wget unzip
RUN python3.7 -m pip install pip
RUN python3.7 -m pip install giveme5w1h
RUN giveme5w1h-corenlp install
ENTRYPOINT [ "giveme5w1h-corenlp" ]
Install by command giveme5w1h-corenlp install
As I understand it, the version specified in your file will be installed
Run server with command giveme5w1h-corenlp
Also I try start CoreNLP server manually from Giveme5W-runtime-resources directory with --timeout 150000.
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 150000 -props edu/stanford/nlp/coref/properties/neural-english.properties
This didn't help
The more I look into this, it does not look like a Giveme5W1H related issue but I rather suspect that this is caused by the docker image, or resources of the machine. I doubt that the corenlp server is killed by sending a text to it for analysis. So I suggest that you open an issue with the corenlp project.
Describe the bug CoreNLP server was Killed when I try parse some article.
Script return error:
To Reproduce I ran this code https://github.com/fhamborg/Giveme5W1H/blob/master/Giveme5W1H/examples/extracting/parse_from_newsplease.py
CoreNLP server run in Docker ubuntu 18.04 image. Example from http://localhost:9000 works, but when I try use as a library, it breaks.
Versions (please complete the following information):