Open 23Uday opened 4 years ago
Maybe you could process sentence by sentence.
Hi,
The --split option is currently used only while running OpenIE5 to process an input file. It is not applicable to running OpenIE5 as a server. Hence, you can split the text into sentences and pass each sentence to the server to get the extraction.
This happens when the output is a list and not a single value, change the last line of openie.py to :
try: e=json.loads(r.text) except: e=r.text return e
and then it works!
A very long text leads to the following error: JSONDecodeError: Expecting value: line 1 column 1 (char 0) Server started with java -Xmx10-XX:+UseConcMarkSweepGC -jar openie-assembly-5.0-SNAPSHOT.jar --split --ignore-errors --httpPort 8000 The input text was text extracted from a research paper.