-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
torchmetrics
' own implementation of Rouge score metrics (#443)
* Make Rouge-N working * Add RougeL score calculation * Add some docs + enable using Porter stemmer * Enable RougeLSum calculation * Add a few references and clean some parts * Clean some minor stuff * Return decimal_places argument to ROUGEScore and prepare depreciation warning * Use 0 in (x,y) instead of x == 0 or y == 0 * Enable _rouge_score_update method takes List of sentence_results * Replace dangerous default dict() values * Replace _RougeScore class with dict * Update error messages Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
- Loading branch information
1 parent
9df5f88
commit a2712eb
Showing
6 changed files
with
316 additions
and
208 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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
jiwer>=2.2.0 | ||
nltk>=3.6 | ||
rouge-score>=0.0.4 | ||
bert-score==0.3.10 |
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
Oops, something went wrong.