lvwerra HF staff commited on
Commit
4ca1672
1 Parent(s): fb11ea5

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. word_length.py +3 -3
word_length.py CHANGED
@@ -50,12 +50,12 @@ year={2020}
50
  """
51
 
52
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
53
- class WordLength(evaluate.EvaluationModule):
54
  """This measurement returns the average number of words in the input string(s)."""
55
 
56
  def _info(self):
57
- # TODO: Specifies the evaluate.EvaluationModuleInfo object
58
- return evaluate.EvaluationModuleInfo(
59
  # This is the description that will appear on the modules page.
60
  module_type="measurement",
61
  description=_DESCRIPTION,
 
50
  """
51
 
52
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
53
+ class WordLength(evaluate.Measurement):
54
  """This measurement returns the average number of words in the input string(s)."""
55
 
56
  def _info(self):
57
+ # TODO: Specifies the evaluate.MeasurementInfo object
58
+ return evaluate.MeasurementInfo(
59
  # This is the description that will appear on the modules page.
60
  module_type="measurement",
61
  description=_DESCRIPTION,