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

unexpected keyword argument 'standardize' #1

Closed
claragici opened this issue Dec 12, 2023 · 1 comment
Closed

unexpected keyword argument 'standardize' #1

claragici opened this issue Dec 12, 2023 · 1 comment

Comments

@claragici
Copy link

Hi,
corpus-wer.py gets the error
Traceback (most recent call last): File "/mnt/c/Users/clara.ginovart/Desktop/alocai/corpus-wer.py", line 28, in <module> wer_score = wer(refs, preds, standardize=True) # "standardize" expands abbreviations TypeError: wer() got an unexpected keyword argument 'standardize'

@ymoslem
Copy link
Owner

ymoslem commented May 19, 2024

Hello! Thanks for the report!

I removed standardize=True in the current code. If you want to use it, you can follow the instructions here.

Currently, it is recommended to use SacreBLEU for evaluation: https://github.com/mjpost/sacrebleu

@ymoslem ymoslem closed this as completed May 19, 2024
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