lvwerra HF staff commited on
Commit
1ce48af
1 Parent(s): fb3b4a5

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. 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.EvaluationModule):
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.EvaluationModuleInfo(
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",