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

SPICE implementation on Google Colab #5

Open
AtharvTalnikar opened this issue Sep 11, 2020 · 0 comments
Open

SPICE implementation on Google Colab #5

AtharvTalnikar opened this issue Sep 11, 2020 · 0 comments

Comments

@AtharvTalnikar
Copy link

Hi!
I am having issues implementing SPICE.Please help

Error: Could not score batched file input:
java.lang.ClassCastException: org.json.simple.JSONArray cannot be cast to java.lang.String
at edu.anu.spice.SpiceScorer.scoreBatch(SpiceScorer.java:95)
at edu.anu.spice.SpiceScorer.main(SpiceScorer.java:60)
Traceback (most recent call last):
File "/content/pycocoevalcap/spice/model_evaluation.py", line 238, in
Val_with_MLE()
File "/content/pycocoevalcap/spice/model_evaluation.py", line 236, in Val_with_MLE
spice_class.compute_score(all_usable_ref,all_gen_sents)
File "/content/pycocoevalcap/spice/test.py", line 78, in compute_score
cwd=os.path.dirname(os.path.abspath(file)))
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', '-Xmx8G', 'spice-1.0.jar', '/content/pycocoevalcap/spice/tmp/tmpr49ny2ll', '-cache', '/content/pycocoevalcap/spice/cache', '-out', '/content/pycocoevalcap/spice/tmp/tmpl8edcdti', '-subset', '-silent']' returned non-zero exit status 1.

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

1 participant