Spaces:
Runtime error
Runtime error
Update Space (evaluate main: a45df1eb)
Browse files- indic_glue.py +2 -2
indic_glue.py
CHANGED
|
@@ -103,7 +103,7 @@ def precision_at_10(en_sentvecs, in_sentvecs):
|
|
| 103 |
|
| 104 |
|
| 105 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
| 106 |
-
class IndicGlue(evaluate.
|
| 107 |
def _info(self):
|
| 108 |
if self.config_name not in [
|
| 109 |
"wnli",
|
|
@@ -126,7 +126,7 @@ class IndicGlue(evaluate.EvaluationModule):
|
|
| 126 |
'"cvit-mkb-clsr", "iitp-mr", "iitp-pr", "actsa-sc", "md", '
|
| 127 |
'"wiki-ner"]'
|
| 128 |
)
|
| 129 |
-
return evaluate.
|
| 130 |
description=_DESCRIPTION,
|
| 131 |
citation=_CITATION,
|
| 132 |
inputs_description=_KWARGS_DESCRIPTION,
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
| 106 |
+
class IndicGlue(evaluate.Metric):
|
| 107 |
def _info(self):
|
| 108 |
if self.config_name not in [
|
| 109 |
"wnli",
|
|
|
|
| 126 |
'"cvit-mkb-clsr", "iitp-mr", "iitp-pr", "actsa-sc", "md", '
|
| 127 |
'"wiki-ner"]'
|
| 128 |
)
|
| 129 |
+
return evaluate.MetricInfo(
|
| 130 |
description=_DESCRIPTION,
|
| 131 |
citation=_CITATION,
|
| 132 |
inputs_description=_KWARGS_DESCRIPTION,
|