tybrs commited on
Commit
e61cd79
1 Parent(s): 820d9c2

Update glue.py

Browse files
Files changed (1) hide show
  1. glue.py +19 -19
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
- "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,
 
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,