Giter VIP home page Giter VIP logo

Comments (1)

wise-east avatar wise-east commented on June 9, 2024

I ran into the same problem while running the sample cases.

Traceback (most recent call last):
  File "ms_marco_eval.py", line 20, in <module>
    from rouge.rouge import Rouge
  File "/Users/justincho/Desktop/Imago/Computer comprehension/MSMARCOV2/Evaluation/rouge/rouge.py", line 86
    imgIds = list(gts.keys())

If you happened to get this error, just go to the rouge.py file and add another ")" to the end of line 86

I then got the following error:

OSError: [E050] Can't find model 'en_core_web_lg'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

This means you don't have this particular model from spacy downloaded, even if you have installed spacy. Run the following in your terminal:
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-2.0.0/en_core_web_lg-2.0.0.tar.gz

I actually still have a problem with one set of the sample files when I run

. run.sh sample_test_data/no_answer_test_references.json sample_test_data/no_answer_test_candidates.json 
. run.sh sample_test_data/dev_as_references.json sample_test_data/dev_first_sentence_as_candidates.json 

which state that AssertionError: Reference and candidate files must share same query ids
I believe this error might be intended for the no_answer set, but I think it shouldn't return this error for the dev_as_references set.

The script will work fine for the remaining sets:

. run.sh sample_test_data/sample_references.json sample_test_data/sample_candidates.json`
. run.sh sample_test_data/same_answer_test_references.json sample_test_data/same_answer_test_candidates.json 

I hope this helped.

from msmarco.

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.