christopher commited on
Commit
704128b
1 Parent(s): a4db66f

Update german_common_crawl.py

Browse files
Files changed (1) hide show
  1. german_common_crawl.py +1 -1
german_common_crawl.py CHANGED
@@ -222,7 +222,7 @@ class GermanCommonCrawl(datasets.GeneratorBasedBuilder):
222
  def _generate_examples(self, data_files):
223
  """This function returns the examples in the raw (text) form by iterating on all the files."""
224
  for filepath in data_files:
225
- with open(filepath, encoding="utf-8") as f:
226
  # with gzip.open(filepath, "rt", encoding="utf-8") as f:
227
  for id_, line in enumerate(f):
228
  item = literal_eval(line)
 
222
  def _generate_examples(self, data_files):
223
  """This function returns the examples in the raw (text) form by iterating on all the files."""
224
  for filepath in data_files:
225
+ with open(filepath, "rt", encoding="utf-8") as f:
226
  # with gzip.open(filepath, "rt", encoding="utf-8") as f:
227
  for id_, line in enumerate(f):
228
  item = literal_eval(line)