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

Error while running evaluate on keras_parikh_entailment #2362

Closed
Nitya05 opened this issue May 25, 2018 · 3 comments
Closed

Error while running evaluate on keras_parikh_entailment #2362

Nitya05 opened this issue May 25, 2018 · 3 comments
Labels
examples Code examples in /examples

Comments

@Nitya05
Copy link

Nitya05 commented May 25, 2018

How to reproduce the behaviour

I am getting the following error when i try to run evaluate (after doing the training) with the below command:
python keras_parikh_entailment/ evaluate snli_1.0_train.jsonl snli_1.0_dev.jsonl

Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/ctg_nitya/venv_keras1.2.2/Workspace/spaCy/examples/keras_parikh_entailment/main.py", line 143, in
plac.call(main)
File "/home/ctg_nitya/venv_keras1.2.2/local/lib/python2.7/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/home/ctg_nitya/venv_keras1.2.2/local/lib/python2.7/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/home/ctg_nitya/venv_keras1.2.2/Workspace/spaCy/examples/keras_parikh_entailment/main.py", line 137, in main
correct, total = evaluate(dev_loc)
File "/home/ctg_nitya/venv_keras1.2.2/Workspace/spaCy/examples/keras_parikh_entailment/main.py", line 69, in evaluate
if sim.argmax() == label.argmax():
AttributeError: 'float' object has no attribute 'argmax'

Your Environment

  • Operating System: Linux
  • Python Version Used: 2.7.12
  • spaCy Version Used: 2.0.11
  • Environment Information:
@ines ines added the examples Code examples in /examples label May 25, 2018
@Nitya05
Copy link
Author

Nitya05 commented May 28, 2018

Any leads for solving this issue?

@ines ines mentioned this issue Sep 12, 2018
8 tasks
@ines
Copy link
Member

ines commented Sep 12, 2018

Merging this with #2758.

@lock
Copy link

lock bot commented Oct 12, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Code examples in /examples
Projects
None yet
Development

No branches or pull requests

2 participants