Skip to content

Commit

Permalink
text: temp drop Chrf implementation (#2668)
Browse files Browse the repository at this point in the history
---
Co-authored-by: Luca Antiga <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

(cherry picked from commit 663f06d)
  • Loading branch information
Borda committed Aug 2, 2024
1 parent 7bf1b4f commit 72e56e5
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 886 deletions.
9 changes: 1 addition & 8 deletions src/torchmetrics/functional/text/_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,7 @@ def _chrf_score(
whitespace: bool = False,
return_sentence_level_score: bool = False,
) -> Union[Tensor, Tuple[Tensor, Tensor]]:
"""Wrapper for deprecated import.
>>> preds = ['the cat is on the mat']
>>> target = [['there is a cat on the mat', 'a cat is on the mat']]
>>> _chrf_score(preds, target)
tensor(0.8640)
"""
"""Wrapper for deprecated import."""
_deprecated_root_import_func("chrf_score", "text")
return chrf_score(
preds=preds,
Expand Down
Loading

0 comments on commit 72e56e5

Please sign in to comment.