Datasets:
Update long-summarization-persian.py
Browse files
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.
|
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"]
|