Commit ·
2333daa
1
Parent(s): a067a88
Update testdataset.py
Browse files- testdataset.py +8 -8
testdataset.py
CHANGED
|
@@ -66,7 +66,7 @@ class BigBioConfig(datasets.BuilderConfig):
|
|
| 66 |
subset_id: str = None
|
| 67 |
|
| 68 |
|
| 69 |
-
class
|
| 70 |
"""MedNLI"""
|
| 71 |
|
| 72 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|
|
@@ -138,10 +138,10 @@ class MedNLIDataset(datasets.GeneratorBasedBuilder):
|
|
| 138 |
),
|
| 139 |
]
|
| 140 |
|
| 141 |
-
def _generate_examples(self, filepath, split: str) -> Tuple[int, Dict]:
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
|
|
|
| 66 |
subset_id: str = None
|
| 67 |
|
| 68 |
|
| 69 |
+
class TestDataset(datasets.GeneratorBasedBuilder):
|
| 70 |
"""MedNLI"""
|
| 71 |
|
| 72 |
SOURCE_VERSION = datasets.Version(_SOURCE_VERSION)
|
|
|
|
| 138 |
),
|
| 139 |
]
|
| 140 |
|
| 141 |
+
# def _generate_examples(self, filepath, split: str) -> Tuple[int, Dict]:
|
| 142 |
+
# with open(filepath, "r") as f:
|
| 143 |
+
# test = csv.reader(f)
|
| 144 |
+
# i = 0
|
| 145 |
+
# for row in test:
|
| 146 |
+
# yield i, row
|
| 147 |
+
# i = i + 1
|