Spaces:
Build error
Build error
Update Space (evaluate main: a45df1eb)
Browse files- word_count.py +2 -2
word_count.py
CHANGED
@@ -39,12 +39,12 @@ Examples:
|
|
39 |
_CITATION = ""
|
40 |
|
41 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
42 |
-
class WordCount(evaluate.
|
43 |
"""This measurement returns the total number of words and the number of unique words
|
44 |
in the input string(s)."""
|
45 |
|
46 |
def _info(self):
|
47 |
-
return evaluate.
|
48 |
# This is the description that will appear on the modules page.
|
49 |
module_type="measurement",
|
50 |
description=_DESCRIPTION,
|
|
|
39 |
_CITATION = ""
|
40 |
|
41 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
42 |
+
class WordCount(evaluate.Measurement):
|
43 |
"""This measurement returns the total number of words and the number of unique words
|
44 |
in the input string(s)."""
|
45 |
|
46 |
def _info(self):
|
47 |
+
return evaluate.MeasurementInfo(
|
48 |
# This is the description that will appear on the modules page.
|
49 |
module_type="measurement",
|
50 |
description=_DESCRIPTION,
|