Datasets:

Modalities:
Text
Formats:
json
Languages:
Catalan
ArXiv:
Libraries:
Datasets
pandas
License:
mapama247 commited on
Commit
25cf3ca
1 Parent(s): 695e2a8

remove utf8 encoding

Browse files
Files changed (1) hide show
  1. vilasum.py +1 -1
vilasum.py CHANGED
@@ -69,7 +69,7 @@ class VilaSum(datasets.GeneratorBasedBuilder):
69
  def _generate_examples(self, filepath):
70
  """This function returns the examples in the raw (text) form."""
71
  logger.info("generating examples from = %s", filepath)
72
- with open(filepath, encoding="utf-8") as f:
73
  for id_, row in enumerate(f):
74
  article = json.loads(row)
75
  text = article['text']
 
69
  def _generate_examples(self, filepath):
70
  """This function returns the examples in the raw (text) form."""
71
  logger.info("generating examples from = %s", filepath)
72
+ with open(filepath) as f:
73
  for id_, row in enumerate(f):
74
  article = json.loads(row)
75
  text = article['text']