Skip to content
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

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #3

Open
23Uday opened this issue Mar 27, 2020 · 3 comments
Open

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #3

23Uday opened this issue Mar 27, 2020 · 3 comments

Comments

@23Uday
Copy link

23Uday commented Mar 27, 2020

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.

@chaos87
Copy link

chaos87 commented Apr 1, 2020

Maybe you could process sentence by sentence.

@vaibhavad
Copy link
Owner

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.

@satya77
Copy link

satya77 commented Jun 6, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants