Update test.py
Browse files
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.
|
62 |
"""TODO: Short description of my metric."""
|
63 |
|
64 |
def _info(self):
|
65 |
# TODO: Specifies the evaluate.MetricInfo object
|
66 |
-
return evaluate.
|
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,
|