lvwerra HF staff commited on
Commit
55724fa
1 Parent(s): 429e24a

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -2
test.py CHANGED
@@ -58,12 +58,12 @@ BAD_WORDS_URL = "http://url/to/external/resource/bad_words.txt"
58
 
59
 
60
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
61
- class test(evaluate.Metric):
62
  """TODO: Short description of my metric."""
63
 
64
  def _info(self):
65
  # TODO: Specifies the evaluate.MetricInfo object
66
- return evaluate.MetricInfo(
67
  # This is the description that will appear on the metrics page.
68
  description=_DESCRIPTION,
69
  citation=_CITATION,
 
58
 
59
 
60
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
61
+ class test(evaluate.EvaluationModule):
62
  """TODO: Short description of my metric."""
63
 
64
  def _info(self):
65
  # TODO: Specifies the evaluate.MetricInfo object
66
+ return evaluate.EvaluationModule(
67
  # This is the description that will appear on the metrics page.
68
  description=_DESCRIPTION,
69
  citation=_CITATION,