hofarah commited on
Commit
25d9daa
1 Parent(s): ba29254

Update long-summarization-persian.py

Browse files
Files changed (1) hide show
  1. long-summarization-persian.py +1 -2
long-summarization-persian.py CHANGED
@@ -79,11 +79,10 @@ class long_summarization_persian(datasets.GeneratorBasedBuilder):
79
  ]
80
 
81
 
82
-
83
  def _generate_examples(self, filepath):
84
  """This function returns the examples in the raw (text) form."""
85
  with open(filepath, encoding="utf-8") as f:
86
- data = csv.load(f)
87
  for id_, article in enumerate(data):
88
  article = article["article"]
89
  summary = article["summary"]
 
79
  ]
80
 
81
 
 
82
  def _generate_examples(self, filepath):
83
  """This function returns the examples in the raw (text) form."""
84
  with open(filepath, encoding="utf-8") as f:
85
+ data = csv.DictReader(f)
86
  for id_, article in enumerate(data):
87
  article = article["article"]
88
  summary = article["summary"]