Spaces:
Runtime error
Runtime error
Update Space (evaluate main: a45df1eb)
Browse files- sacrebleu.py +2 -2
sacrebleu.py
CHANGED
@@ -103,14 +103,14 @@ Examples:
|
|
103 |
|
104 |
|
105 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
106 |
-
class Sacrebleu(evaluate.
|
107 |
def _info(self):
|
108 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
109 |
raise ImportWarning(
|
110 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
111 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
112 |
)
|
113 |
-
return evaluate.
|
114 |
description=_DESCRIPTION,
|
115 |
citation=_CITATION,
|
116 |
homepage="https://github.com/mjpost/sacreBLEU",
|
|
|
103 |
|
104 |
|
105 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
106 |
+
class Sacrebleu(evaluate.Metric):
|
107 |
def _info(self):
|
108 |
if version.parse(scb.__version__) < version.parse("1.4.12"):
|
109 |
raise ImportWarning(
|
110 |
"To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"
|
111 |
'You can install it with `pip install "sacrebleu>=1.4.12"`.'
|
112 |
)
|
113 |
+
return evaluate.MetricInfo(
|
114 |
description=_DESCRIPTION,
|
115 |
citation=_CITATION,
|
116 |
homepage="https://github.com/mjpost/sacreBLEU",
|