Datasets:

Modalities:
Text
Formats:
json
Languages:
Catalan
ArXiv:
Libraries:
Datasets
pandas
License:
mapama247 commited on
Commit
dcdc7dc
1 Parent(s): 8553395

remove utf8 encoding

Browse files
Files changed (1) hide show
  1. casum.py +1 -1
casum.py CHANGED
@@ -75,7 +75,7 @@ class CaSum(datasets.GeneratorBasedBuilder):
75
  def _generate_examples(self, filepath):
76
  """This function returns the examples in the raw (text) form."""
77
  logger.info("generating examples from = %s", filepath)
78
- with open(filepath, encoding="utf-8") as f:
79
  for id_, row in enumerate(f):
80
  article = json.loads(row)
81
  text = article['text']
 
75
  def _generate_examples(self, filepath):
76
  """This function returns the examples in the raw (text) form."""
77
  logger.info("generating examples from = %s", filepath)
78
+ with open(filepath) as f:
79
  for id_, row in enumerate(f):
80
  article = json.loads(row)
81
  text = article['text']