Spaces:
Running
Running
Update Space (evaluate main: a45df1eb)
Browse files
chrf.py
CHANGED
@@ -124,14 +124,14 @@ Examples:
|
|
124 |
|
125 |
|
126 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
127 |
-
class ChrF(evaluate.
|
128 |
def _info(self):
|
129 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
130 |
raise ImportWarning(
|
131 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
132 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
133 |
)
|
134 |
-
return evaluate.
|
135 |
description=_DESCRIPTION,
|
136 |
citation=_CITATION,
|
137 |
homepage="https://github.com/mjpost/sacreBLEU#chrf--chrf",
|
|
|
124 |
|
125 |
|
126 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
127 |
+
class ChrF(evaluate.Metric):
|
128 |
def _info(self):
|
129 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
130 |
raise ImportWarning(
|
131 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
132 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
133 |
)
|
134 |
+
return evaluate.MetricInfo(
|
135 |
description=_DESCRIPTION,
|
136 |
citation=_CITATION,
|
137 |
homepage="https://github.com/mjpost/sacreBLEU#chrf--chrf",
|