Update glue.py
Browse files
glue.py
CHANGED
|
@@ -101,25 +101,25 @@ def pearson_and_spearman(preds, labels):
|
|
| 101 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
| 102 |
class Glue(evaluate.Metric):
|
| 103 |
def _info(self):
|
| 104 |
-
if self.config_name not in [
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
]:
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
return evaluate.MetricInfo(
|
| 124 |
description=_DESCRIPTION,
|
| 125 |
citation=_CITATION,
|
|
|
|
| 101 |
@evaluate.utils.file_utils.add_start_docstrings(_DESCRIPTION, _KWARGS_DESCRIPTION)
|
| 102 |
class Glue(evaluate.Metric):
|
| 103 |
def _info(self):
|
| 104 |
+
# if self.config_name not in [
|
| 105 |
+
# "sst2",
|
| 106 |
+
# "mnli",
|
| 107 |
+
# "mnli_mismatched",
|
| 108 |
+
# "mnli_matched",
|
| 109 |
+
# "cola",
|
| 110 |
+
# "stsb",
|
| 111 |
+
# "mrpc",
|
| 112 |
+
# "qqp",
|
| 113 |
+
# "qnli",
|
| 114 |
+
# "rte",
|
| 115 |
+
# "wnli",
|
| 116 |
+
# "hans",
|
| 117 |
+
# ]:
|
| 118 |
+
# raise KeyError(
|
| 119 |
+
# "You should supply a configuration name selected in "
|
| 120 |
+
# '["sst2", "mnli", "mnli_mismatched", "mnli_matched", '
|
| 121 |
+
# '"cola", "stsb", "mrpc", "qqp", "qnli", "rte", "wnli", "hans"]'
|
| 122 |
+
# )
|
| 123 |
return evaluate.MetricInfo(
|
| 124 |
description=_DESCRIPTION,
|
| 125 |
citation=_CITATION,
|