lvwerra HF staff commited on
Commit
44215f7
1 Parent(s): ec4d9d7

Update Space (evaluate main: e4a27243)

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. sari.py +5 -1
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- git+https://github.com/huggingface/evaluate@80448674f5447a9682afe051db243c4a13bfe4ff
2
  sacrebleu
3
  sacremoses
 
1
+ git+https://github.com/huggingface/evaluate@e4a2724377909fe2aeb4357e3971e5a569673b39
2
  sacrebleu
3
  sacremoses
sari.py CHANGED
@@ -259,11 +259,15 @@ 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
- 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"),
 
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"),