Skip to content

Conversation

@JoelNiklaus
Copy link
Contributor

SacreBleu expects the hypotheses to be a list of strings. We gave a list of list of strings which leads to a TypeError. I flattened the list to fix this.

@clefourrier
Copy link
Member

You'll need to run the ruff styling :)

@clefourrier
Copy link
Member

Hi! I edited the readme to make the styling steps clearer, you'll need to run

pip install -e .[dev]
pre-commit install
pre-commit run --all-files

@clefourrier clefourrier merged commit 9b43560 into huggingface:main Nov 18, 2024
2 checks passed
hynky1999 pushed a commit that referenced this pull request Nov 29, 2024
---------

Co-authored-by: Clémentine Fourrier <[email protected]>
@JoelNiklaus JoelNiklaus deleted the fix_sacre_bleu_problem branch December 9, 2024 14:52
hynky1999 pushed a commit that referenced this pull request May 22, 2025
---------

Co-authored-by: Clémentine Fourrier <[email protected]>
hynky1999 pushed a commit that referenced this pull request May 22, 2025
---------

Co-authored-by: Clémentine Fourrier <[email protected]>
NathanHB pushed a commit that referenced this pull request Sep 19, 2025
---------

Co-authored-by: Clémentine Fourrier <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants