-
Notifications
You must be signed in to change notification settings - Fork 224
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
Getting error "ValueError: could not convert string to float: '' #131
Comments
You might find https://github.com/Maluuba/nlg-eval#troubleshooting or some suggestions in #64 helpful. |
You might find https://github.com/Maluuba/nlg-eval#troubleshooting or some suggestions in #64 helpful.
…________________________________
From: bernardoleite ***@***.***>
Sent: March 17, 2022 05:57
To: Maluuba/nlg-eval ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [Maluuba/nlg-eval] Getting error "ValueError: could not convert string to float: '' (Issue #131)
Right after installing and setting up nlg-eval with success, I did the following test:
from nlgeval import NLGEval
nlgeval = NLGEval() # loads the models
metrics_dict = nlgeval.compute_individual_metrics(['this is small test'], 'this is a test')
print(metrics_dict)
I'm getting the following error:
Error handling value: b''
Decoded value:
eval_line: EVAL ||| 4.0 4.0 3.0 2.0 1.0 1.0 2.0 2.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0 3.0 3.0
Traceback (most recent call last):
File "/Users/bernardoleite/Desktop/project-folder/src/eval.py", line 27, in <module>
run(args)
File "/Users/bernardoleite/Desktop/project-folder/src/eval.py", line 13, in run
metrics_dict = nlgeval.compute_individual_metrics(['this is small test'], 'this is a test')
File "/Users/bernardoleite/opt/miniconda3/envs/myenv/lib/python3.9/site-packages/nlgeval/__init__.py", line 259, in compute_individual_metrics
score, scores = scorer.compute_score(refs, hyps)
File "/Users/bernardoleite/opt/miniconda3/envs/myenv/lib/python3.9/site-packages/nlgeval/pycocoevalcap/meteor/meteor.py", line 85, in compute_score
scores.append(float(dec(v.strip())))
ValueError: could not convert string to float: ''
I am using Mac OS High Sierra with python 3.9.7.
Does anyone have an idea what the problem could be? Thanks in advance.
—
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMaluuba%2Fnlg-eval%2Fissues%2F131&data=04%7C01%7CJustin.Harris%40microsoft.com%7C3edb84a0f97943f432cf08da07fc988f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637831078720456316%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=eqCFqcwsrqwOOV%2BjEctq6bXjYJnqPg8g7sNXenuJTKc%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAMFJCLHZ4NFOWS6JJZPNNTVAL6Z3ANCNFSM5Q6N6WDQ&data=04%7C01%7CJustin.Harris%40microsoft.com%7C3edb84a0f97943f432cf08da07fc988f%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637831078720456316%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=5VOq7geP0C8%2BBOcNpnaWOngPv%2F8NH6bFaGeLty%2BjQSE%3D&reserved=0>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right after installing and setting up nlg-eval with success, I did the following test:
I'm getting the following error:
I am using Mac OS High Sierra with python 3.9.7.
Does anyone have an idea what the problem could be? Thanks in advance.
The text was updated successfully, but these errors were encountered: