yuansui commited on
Commit
fb38257
·
1 Parent(s): 952c1f8

Update GitTables.py

Browse files
Files changed (1) hide show
  1. 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, encoding="utf-8") as reader:
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":