Update Space (evaluate main: a45df1eb)
Browse files- 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.
|
56 |
"""This measurement returns the duplicate strings contained in the input(s)."""
|
57 |
|
58 |
def _info(self):
|
59 |
-
# TODO: Specifies the evaluate.
|
60 |
-
return evaluate.
|
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,
|