lvwerra HF staff commited on
Commit
62a4241
1 Parent(s): b679578

Update sacrebleu.py

Browse files
Files changed (1) hide show
  1. sacrebleu.py +1 -0
sacrebleu.py CHANGED
@@ -105,6 +105,7 @@ Examples:
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"
 
105
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
106
  class Sacrebleu(evaluate.EvaluationModule):
107
  def _info(self):
108
+ raise ValueError(scb.__file__)
109
  if version.parse(scb.__version__) < version.parse("1.4.12"):
110
  raise ImportWarning(
111
  "To use `sacrebleu`, the module `sacrebleu>=1.4.12` is required, and the current version of `sacrebleu` doesn't match this condition.\n"