lvwerra HF staff commited on
Commit
486d927
1 Parent(s): 47eaee1

Update Space (evaluate main: a45df1eb)

Browse files
Files changed (1) hide show
  1. trec_eval.py +2 -2
trec_eval.py CHANGED
@@ -68,11 +68,11 @@ Examples:
68
 
69
 
70
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
71
- class TRECEval(evaluate.EvaluationModule):
72
  """Compute TREC evaluation scores."""
73
 
74
  def _info(self):
75
- return evaluate.EvaluationModuleInfo(
76
  module_type="metric",
77
  description=_DESCRIPTION,
78
  citation=_CITATION,
 
68
 
69
 
70
  @evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
71
+ class TRECEval(evaluate.Metric):
72
  """Compute TREC evaluation scores."""
73
 
74
  def _info(self):
75
+ return evaluate.MetricInfo(
76
  module_type="metric",
77
  description=_DESCRIPTION,
78
  citation=_CITATION,