-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replaced NLTK's implementation of BLEU with sacrebleu's impleme…
…ntation (#1744) NLTK's implementation of BLEU is limited. In particular, only 20% of my attempts to compute BLEU return a score because the number of candidate and reference sentences are not the same, a requirement of NLTK's implementation. The implementation of BLEU by [sacrebleu](https://github.com/mjpost/sacrebleu) is recommended because it is more robust. In my PR, I have modified _bleu_score.py to use sacrebleu's implementation.
- Loading branch information
Showing
3 changed files
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ transformers | |
fastembed | ||
graphene | ||
rouge_score | ||
sacrebleu | ||
nltk | ||
rapidfuzz | ||
pandas | ||
datacompy | ||
datacompy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters