Spaces:
Running
Running
Update Space (evaluate main: a45df1eb)
Browse files
ter.py
CHANGED
@@ -151,14 +151,14 @@ Examples:
|
|
151 |
|
152 |
|
153 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
154 |
-
class Ter(evaluate.
|
155 |
def _info(self):
|
156 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
157 |
raise ImportWarning(
|
158 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
159 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
160 |
)
|
161 |
-
return evaluate.
|
162 |
description=_DESCRIPTION,
|
163 |
citation=_CITATION,
|
164 |
homepage="http://www.cs.umd.edu/~snover/tercom/",
|
|
|
151 |
|
152 |
|
153 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
154 |
+
class Ter(evaluate.Metric):
|
155 |
def _info(self):
|
156 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
157 |
raise ImportWarning(
|
158 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
159 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
160 |
)
|
161 |
+
return evaluate.MetricInfo(
|
162 |
description=_DESCRIPTION,
|
163 |
citation=_CITATION,
|
164 |
homepage="http://www.cs.umd.edu/~snover/tercom/",
|