Update GitTables.py
Browse files- GitTables.py +1 -1
GitTables.py
CHANGED
|
@@ -152,7 +152,7 @@ class GitTables(datasets.GeneratorBasedBuilder):
|
|
| 152 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 153 |
def _generate_examples(self, filepath, split):
|
| 154 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 155 |
-
with jsonlines.open(filepath,
|
| 156 |
for key, row in enumerate(reader):
|
| 157 |
data = json.loads(row)
|
| 158 |
if self.config.name == "dbpedia":
|
|
|
|
| 152 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 153 |
def _generate_examples(self, filepath, split):
|
| 154 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 155 |
+
with jsonlines.open(filepath, mode="r") as reader:
|
| 156 |
for key, row in enumerate(reader):
|
| 157 |
data = json.loads(row)
|
| 158 |
if self.config.name == "dbpedia":
|