lvwerra HF staff commited on
Commit
bc9d883
1 Parent(s): 294eb3a

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. word_count.py +2 -2
word_count.py CHANGED
@@ -39,12 +39,12 @@ Examples:
39
  _CITATION = ""
40
 
41
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
42
- class WordCount(evaluate.EvaluationModule):
43
  """This measurement returns the total number of words and the number of unique words
44
  in the input string(s)."""
45
 
46
  def _info(self):
47
- return evaluate.EvaluationModuleInfo(
48
  # This is the description that will appear on the modules page.
49
  module_type="measurement",
50
  description=_DESCRIPTION,
 
39
  _CITATION = ""
40
 
41
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
42
+ class WordCount(evaluate.Measurement):
43
  """This measurement returns the total number of words and the number of unique words
44
  in the input string(s)."""
45
 
46
  def _info(self):
47
+ return evaluate.MeasurementInfo(
48
  # This is the description that will appear on the modules page.
49
  module_type="measurement",
50
  description=_DESCRIPTION,