lvwerra HF staff commited on
Commit
e31a688
1 Parent(s): ef96a6b

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. text_duplicates.py +3 -3
text_duplicates.py CHANGED
@@ -52,12 +52,12 @@ def get_hash(example):
52
  return hashlib.md5(example.strip().encode("utf-8")).hexdigest()
53
 
54
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
55
- class TextDuplicates(evaluate.EvaluationModule):
56
  """This measurement returns the duplicate strings contained in the input(s)."""
57
 
58
  def _info(self):
59
- # TODO: Specifies the evaluate.EvaluationModuleInfo object
60
- return evaluate.EvaluationModuleInfo(
61
  # This is the description that will appear on the modules page.
62
  module_type="measurement",
63
  description=_DESCRIPTION,
 
52
  return hashlib.md5(example.strip().encode("utf-8")).hexdigest()
53
 
54
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
55
+ class TextDuplicates(evaluate.Measurement):
56
  """This measurement returns the duplicate strings contained in the input(s)."""
57
 
58
  def _info(self):
59
+ # TODO: Specifies the evaluate.MeasurementInfo object
60
+ return evaluate.MeasurementInfo(
61
  # This is the description that will appear on the modules page.
62
  module_type="measurement",
63
  description=_DESCRIPTION,