Giter VIP home page Giter VIP logo

Comments (7)

feralvam avatar feralvam commented on July 17, 2024

Hi!
It seems to me that the key error message is here:

error: [WinError 2] The system cannot find the file specified msvc py_compiler msvc

Does the solution outline here help?

from easse.

Avishek2020 avatar Avishek2020 commented on July 17, 2024

Hi Fernando,
Thanks, it helped me to get clue. I had spacy version 2.2.2.& Python 3.8
spacy_LI

So, to resolve it i created a virtual environment with python 3.6.
and install easse. it works now but can you please have a quick look on this error while running my dataset on colab link

https://colab.research.google.com/drive/1iTId7uPlMNMMeSz6QuY1CDFxU6GBv4qY?usp=sharing

you can close this issue.

from easse.

feralvam avatar feralvam commented on July 17, 2024

Hi!
Note that for both corpus_sari and corpus_bleu the refs_sents argument is List[List[str]]. This is to account for the general case where multiple references are available for each instance. You didn't get an error with corpus_sari because we don't make the same verification as sacrebleu (maybe we should), but the sari score you get is most likely incorrect. You should change the way you are calling the functions so that, for each instance, the refs_sents argument is a List.

from easse.

Avishek2020 avatar Avishek2020 commented on July 17, 2024

OK, so it means i cannot use easse or i need to change it files .[bleu.py, sari.py]
sys_sent: List[str], ref_sents: List[str],

But my input has will be like it. as i am doing translation
https://colab.research.google.com/drive/1iTId7uPlMNMMeSz6QuY1CDFxU6GBv4qY?usp=sharing

from easse.

feralvam avatar feralvam commented on July 17, 2024

It means that you need to reformat your input so that what you pass in the refs_sents argument is a List[List[str]]. For example, you could change the way you load your data into the dataframe so that each item in the Target_Text column is a list of only one element.

from easse.

Avishek2020 avatar Avishek2020 commented on July 17, 2024

ok thank you

from easse.

louismartin avatar louismartin commented on July 17, 2024

Hi!
Note that for both corpus_sari and corpus_bleu the refs_sents argument is List[List[str]]. This is to account for the general case where multiple references are available for each instance. You didn't get an error with corpus_sari because we don't make the same verification as sacrebleu (maybe we should), but the sari score you get is most likely incorrect. You should change the way you are calling the functions so that, for each instance, the refs_sents argument is a List.

@feralvam can you create a new issue highlighting what we need to do ideally to fix this problem in the future?

from easse.

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.