Code Monkey home page Code Monkey logo

Comments (5)

juharris avatar juharris commented on May 17, 2024

Seems like an older version of Python.
Would you run python --version?
I recommend using at least Python 3.6 since that's what we mainly test with.

EDIT: Removed "Python 2.7 will also work."

from nlg-eval.

Crista23 avatar Crista23 commented on May 17, 2024

Thanks for your prompt response. I am using Python 2.7:

python --version
Python 2.7.13 :: Anaconda 4.3.1 (64-bit)

from nlg-eval.

juharris avatar juharris commented on May 17, 2024

Oh sorry actually it's because of Python 2.7. I see it in our build here.
This shouldn't cause problems (unless you manually call close()).
If you don't want to see the error then you can upgrade to Python 3.6.

from nlg-eval.

Crista23 avatar Crista23 commented on May 17, 2024

Thanks for suggestion! I have upgraded to Python 3.6, however I get the error below at line 66 in the meteor script:

https://github.com/Maluuba/nlg-eval/blob/master/nlgeval/pycocoevalcap/meteor/meteor.py#L66

Traceback (most recent call last):
File "meteor.py", line 64, in compute_score
self.meteor_p.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

from nlg-eval.

juharris avatar juharris commented on May 17, 2024

That's odd. Seems like it was just an issue contacting the meteor jar process. Are you running on a powerful machine? You try to see if there's already a meteor process running since it might not have been killed properly from when you were running with Python 2. If you don't feel like or don't know how to check the processing running, it should be killed if you close the terminal that were using using before or if you just restart your computer.

BTW If you do switch to using Python 3 with this library, then you should re-run the setup steps. They shouldn't take nearly as long to run this time.

from nlg-eval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.