lvwerra HF staff commited on
Commit
1784571
1 Parent(s): c9e95ad

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. sari.py +2 -2
sari.py CHANGED
@@ -258,9 +258,9 @@ def normalize(sentence, lowercase: bool = True, tokenizer: str = "13a", return_s
258
 
259
 
260
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
261
- class Sari(evaluate.EvaluationModule):
262
  def _info(self):
263
- return evaluate.EvaluationModuleInfo(
264
  description=_DESCRIPTION,
265
  citation=_CITATION,
266
  inputs_description=_KWARGS_DESCRIPTION,
 
258
 
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,