Commit ·
83b8603
1
Parent(s): 989a2eb
Update testdataset.py
Browse files- testdataset.py +9 -9
testdataset.py
CHANGED
|
@@ -80,22 +80,22 @@ class MedNLIDataset(datasets.GeneratorBasedBuilder):
|
|
| 80 |
|
| 81 |
BUILDER_CONFIGS = [
|
| 82 |
BigBioConfig(
|
| 83 |
-
name="
|
| 84 |
version=SOURCE_VERSION,
|
| 85 |
-
description="
|
| 86 |
schema="source",
|
| 87 |
-
subset_id="
|
| 88 |
),
|
| 89 |
BigBioConfig(
|
| 90 |
-
name="
|
| 91 |
version=BIGBIO_VERSION,
|
| 92 |
-
description="
|
| 93 |
-
schema="
|
| 94 |
-
subset_id="
|
| 95 |
),
|
| 96 |
]
|
| 97 |
|
| 98 |
-
DEFAULT_CONFIG_NAME = "
|
| 99 |
|
| 100 |
def _info(self) -> datasets.DatasetInfo:
|
| 101 |
|
|
@@ -113,7 +113,7 @@ class MedNLIDataset(datasets.GeneratorBasedBuilder):
|
|
| 113 |
}
|
| 114 |
)
|
| 115 |
|
| 116 |
-
elif self.config.schema == "
|
| 117 |
features = entailment_features
|
| 118 |
|
| 119 |
return datasets.DatasetInfo(
|
|
|
|
| 80 |
|
| 81 |
BUILDER_CONFIGS = [
|
| 82 |
BigBioConfig(
|
| 83 |
+
name="testdataset_source",
|
| 84 |
version=SOURCE_VERSION,
|
| 85 |
+
description="test dataset source schema",
|
| 86 |
schema="source",
|
| 87 |
+
subset_id="testdataset",
|
| 88 |
),
|
| 89 |
BigBioConfig(
|
| 90 |
+
name="testdataset_te",
|
| 91 |
version=BIGBIO_VERSION,
|
| 92 |
+
description="test dataset BigBio schema",
|
| 93 |
+
schema="testdataset_te",
|
| 94 |
+
subset_id="testdataset",
|
| 95 |
),
|
| 96 |
]
|
| 97 |
|
| 98 |
+
DEFAULT_CONFIG_NAME = "testdataset_source"
|
| 99 |
|
| 100 |
def _info(self) -> datasets.DatasetInfo:
|
| 101 |
|
|
|
|
| 113 |
}
|
| 114 |
)
|
| 115 |
|
| 116 |
+
elif self.config.schema == "testdataset_te":
|
| 117 |
features = entailment_features
|
| 118 |
|
| 119 |
return datasets.DatasetInfo(
|