Datasets:
Languages:
Indonesian
License:
Update indo_story_cloze.py
Browse files- indo_story_cloze.py +1 -1
indo_story_cloze.py
CHANGED
@@ -62,7 +62,7 @@ class IndoStoryCloze(datasets.GeneratorBasedBuilder):
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, data_file):
|
65 |
-
data = csv.DictReader(open(data_file
|
66 |
for i, row in enumerate(data):
|
67 |
yield i, {
|
68 |
"sentence-1": row['Kalimat-1'],
|
|
|
62 |
]
|
63 |
|
64 |
def _generate_examples(self, data_file):
|
65 |
+
data = csv.DictReader(open(data_file, newline=''))
|
66 |
for i, row in enumerate(data):
|
67 |
yield i, {
|
68 |
"sentence-1": row['Kalimat-1'],
|