Comments (7)
Ah that's very helpful. It seems like you don't have much memory on your machine?
You can changing that '-Xmx2G' to something lower like '-Xmx1G' in meteor.py.
from nlg-eval.
It works now !
Thank you!
You've been a lifesaver.
from nlg-eval.
Thanks for reporting this. I can help you debug it.
Change that line from scores.append(float(dec(self.meteor_p.stdout.readline().strip())))
to these lines:
v = self.meteor_p.stdout.readline()
try:
scores.append(float(dec(v.strip())))
except:
print("Error handling value: {}".format(v))
print("Decoded value: {}".format(dec(v.strip())))
raise
and re-run the program. It should help us see what we're dealing with.
PS Is that your birthday in your GitHub username? If so you should consider changing it as many places irresponsibly use a birthday to authenticate people.
from nlg-eval.
Thanks your advice!
It print this
Error handling value: b''
Decoded value:
from nlg-eval.
I can't find a nice way to work in a fix and I can't replicate the issues that people get with Meteor.
For now can you add do this:
v = self.meteor_p.stdout.readline()
try:
scores.append(float(dec(v.strip())))
except:
sys.stderr.write("Error handling value: {}\n".format(v))
sys.stderr.write("Decoded value: {}\n".format(dec(v.strip())))
sys.stderr.write("eval_line: {}\n".format(eval_line))
raise
and if the eval_line
isn't helpful then also add:
sys.stderr.write("Error from Meteor:\n{}".format(self.meteor_p.stderr.read()))
before raise
. That line is dangerous because it will hang if there is no stderr from Meteor. So if you find that after adding that line your program never ends, then stop you program and remove it.
from nlg-eval.
Thanks for your help !!
Error handling value: b'Could not reserve enough space for 2097152KB object heap\n'
Decoded value: Could not reserve enough space for 2097152KB object heap
eval_line: EVAL ||| Error occurred during initialization of VM
from nlg-eval.
Thanks for the feedback. I'll look into adding a warning to help others in the future.
from nlg-eval.
Related Issues (20)
- Getting error "ValueError: could not convert string to float: '' HOT 2
- Why do I only output Bleu when I use it on Mac ?
- download for glove 6B fails HOT 3
- ModuleNotFoundError: No module named 'nlgeval' HOT 7
- Problem with "the object oriented API for repeated calls in a script - multiple examples" HOT 4
- _pickle.UnpicklingError: pickle data was truncated HOT 1
- zipfile.BadZipFile: File is not a zip file
- TypeError: compute_individual_metrics() missing 1 required positional argument: 'hyp' HOT 2
- Assertion Error HOT 1
- about the files downloaded HOT 1
- nlg-eval --setup
- BrokenPipeError HOT 1
- CIDEr score evaluates to 0.0 no matter what references and metrics I use
- thanks for the codes! I have a question: should I tokenize the predictions and reference texts before using this api? HOT 1
- nlg-eval --setup error can't download glove.6B.zip HOT 3
- Compatibility with gensim 4 HOT 1
- New releases? HOT 1
- v2.4.0 tag does not have the right version info HOT 1
- "Not found for url" while downloading weights HOT 6
- what numpy version should i use to run? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlg-eval.