Spaces:
Running
Running
Update Space (evaluate main: c447fc8e)
Browse files- requirements.txt +1 -1
- sari.py +1 -5
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
git+https://github.com/huggingface/evaluate@
|
2 |
sacrebleu
|
3 |
sacremoses
|
|
|
1 |
+
git+https://github.com/huggingface/evaluate@c447fc8eda9c62af501bfdc6988919571050d950
|
2 |
sacrebleu
|
3 |
sacremoses
|
sari.py
CHANGED
@@ -259,15 +259,11 @@ def normalize(sentence, lowercase: bool = True, tokenizer: str = "13a", return_s
|
|
259 |
|
260 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
261 |
class Sari(evaluate.Metric):
|
262 |
-
|
263 |
-
ALLOWED_CONFIG_NAMES = ["default"]
|
264 |
-
|
265 |
-
def _info(self, config):
|
266 |
return evaluate.MetricInfo(
|
267 |
description=_DESCRIPTION,
|
268 |
citation=_CITATION,
|
269 |
inputs_description=_KWARGS_DESCRIPTION,
|
270 |
-
config=config,
|
271 |
features=datasets.Features(
|
272 |
{
|
273 |
"sources": datasets.Value("string", id="sequence"),
|
|
|
259 |
|
260 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
261 |
class Sari(evaluate.Metric):
|
262 |
+
def _info(self):
|
|
|
|
|
|
|
263 |
return evaluate.MetricInfo(
|
264 |
description=_DESCRIPTION,
|
265 |
citation=_CITATION,
|
266 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
267 |
features=datasets.Features(
|
268 |
{
|
269 |
"sources": datasets.Value("string", id="sequence"),
|