Datasets:
Update ViHOS.py
Browse files
ViHOS.py
CHANGED
|
@@ -64,9 +64,10 @@ class ViHOS(datasets.GeneratorBasedBuilder):
|
|
| 64 |
|
| 65 |
def _generate_examples(self, filepath, split):
|
| 66 |
# colnames=['id', 'Content', 'Span ids']
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
|
|
|
| 70 |
|
| 71 |
# with open(filepath, 'r', encoding="utf-8") as f:
|
| 72 |
# for i, line in enumerate(f):
|
|
|
|
| 64 |
|
| 65 |
def _generate_examples(self, filepath, split):
|
| 66 |
# colnames=['id', 'Content', 'Span ids']
|
| 67 |
+
with open(filepath, 'r', encoding="utf-8") as f:
|
| 68 |
+
for i, line in enumerate(f):
|
| 69 |
+
data = self.load_csv(filepath)
|
| 70 |
+
yield data
|
| 71 |
|
| 72 |
# with open(filepath, 'r', encoding="utf-8") as f:
|
| 73 |
# for i, line in enumerate(f):
|