lichengunc / refer-parser2

Referring Expression Parser
26 stars 7 forks source link

Error when do the first step Parse expressions using Stanford Parser #1

Open llijiang opened 6 years ago

llijiang commented 6 years ago

Hi, When I do the first step (python parse_sents.py --dataset refcoco --splitBy unc --num_workers 4), I got this error: Unrecognized option: -props Error: Could not create the Java Virtual Machine.

I follow the code and found it happened in pyutils/corenlp/corenlp.py: 317 self.corenlp = pexpect.spawn(self.start_corenlp, maxread=8192, searchwindowsize=80)

Could you give me some comments?

Thanks very much.

lichengunc commented 6 years ago

Hm...this error might happen if the java version is not the one I was using (my java version is 1.8.0_151) The stanford parser is sort of outdated. BTW, I provided the parsed results in the end of the README.md.

abhinavkaul95 commented 3 years ago

Same error. Seems like running the java command directly like java -Xmx3g -cp edu.stanford.nlp.pipeline.StanfordCoreNLP -props /media/disk/user/abhinav/refer-parser2/pyutils/corenlp/default.properties, gives the error:

Unrecognized option: -props
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

and the errors could be related. The java version installed is 1.8.0_282.

abhinavkaul95 commented 3 years ago

Hm...this error might happen if the java version is not the one I was using (my java version is 1.8.0_151) The stanford parser is sort of outdated. BTW, I provided the parsed results in the end of the README.md.

Hi @lichengunc, the parsed results file is not accessible. Can you share the zip over google drive link?

abhinavkaul95 commented 3 years ago

Seems like the problem is resolved if you extract the fill corenlp jars in the models folder. Link: https://nlp.stanford.edu/software/stanford-corenlp-full-2015-04-20.zip

MelosY commented 2 years ago

Seems like the problem is resolved if you extract the fill corenlp jars in the models folder. Link: https://nlp.stanford.edu/software/stanford-corenlp-full-2015-04-20.zip

Hi,could you tell me where should I extract this file?

AKASH2907 commented 1 year ago

It should be extracted and put in models file