Commit ·
a834af9
1
Parent(s): fad85f2
Update testdataset.py
Browse files- testdataset.py +15 -15
testdataset.py
CHANGED
|
@@ -93,22 +93,22 @@ class MedNLIDataset(datasets.GeneratorBasedBuilder):
|
|
| 93 |
|
| 94 |
def _info(self) -> datasets.DatasetInfo:
|
| 95 |
print(self.config)
|
| 96 |
-
if self.config.schema == "source":
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
|
| 110 |
-
elif self.config.schema == "testdataset_te":
|
| 111 |
-
|
| 112 |
|
| 113 |
return datasets.DatasetInfo(
|
| 114 |
description=_DESCRIPTION,
|
|
|
|
| 93 |
|
| 94 |
def _info(self) -> datasets.DatasetInfo:
|
| 95 |
print(self.config)
|
| 96 |
+
# if self.config.schema == "source":
|
| 97 |
+
# features = datasets.Features(
|
| 98 |
+
# {
|
| 99 |
+
# "pairID": datasets.Value("string"),
|
| 100 |
+
# "gold_label": datasets.Value("string"),
|
| 101 |
+
# "sentence1": datasets.Value("string"),
|
| 102 |
+
# "sentence2": datasets.Value("string"),
|
| 103 |
+
# "sentence1_parse": datasets.Value("string"),
|
| 104 |
+
# "sentence2_parse": datasets.Value("string"),
|
| 105 |
+
# "sentence1_binary_parse": datasets.Value("string"),
|
| 106 |
+
# "sentence2_binary_parse": datasets.Value("string"),
|
| 107 |
+
# }
|
| 108 |
+
# )
|
| 109 |
|
| 110 |
+
# elif self.config.schema == "testdataset_te":
|
| 111 |
+
# features = entailment_features
|
| 112 |
|
| 113 |
return datasets.DatasetInfo(
|
| 114 |
description=_DESCRIPTION,
|