Skip to content
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

TER scores are not scaled #169

Closed
DhruvAwasthi opened this issue Oct 19, 2021 · 5 comments
Closed

TER scores are not scaled #169

DhruvAwasthi opened this issue Oct 19, 2021 · 5 comments

Comments

@DhruvAwasthi
Copy link

I am trying to calculate the TER score that should be in the range of 0-100.
According to the new update, scores are scaled automatically.
The code that I am using to calculate scaled TER scores is:

metric = sacrebleu.metrics.TER()  
cal_score = metric.corpus_score(hypotheses, [references])
score = cal_score.score

But sometimes the score comes out to be greater than 100.
Can you please tell me is it something that I am doing wrong or is it something else?

Thank you!

@ozancaglayan
Copy link
Collaborator

Hi,

As far as I know TER scores can be larger than 100 if the hypotheses are way too far from the references. This is also the case with the reference TERCOm library.

@DhruvAwasthi
Copy link
Author

Ah okay!

Thank you for the prompt response, appreciate it!

@DhruvAwasthi
Copy link
Author

DhruvAwasthi commented Oct 20, 2021

@ozancaglayan @mjpost Even though TER scores can be larger than 100 then what is the meaning of "scaled TER scores"?
Ideally, when we say scaled it should be within the scale.

@ozancaglayan
Copy link
Collaborator

Before, they were between 0-1, now all metrics are multiplied by 100, scaling was simply this :)

@DhruvAwasthi
Copy link
Author

Oh okay, thank you for the clarificaiton!

@mjpost mjpost mentioned this issue Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants