Datasets:
Tasks:
Summarization
Modalities:
Text
Sub-tasks:
news-articles-summarization
Languages:
Hebrew
Size:
100K - 1M
License:
imvladikon
commited on
Commit
•
36bc1a6
1
Parent(s):
2b23524
Update hebrew_news.py
Browse files- hebrew_news.py +2 -2
hebrew_news.py
CHANGED
@@ -65,8 +65,8 @@ class HebrewNews(datasets.GeneratorBasedBuilder):
|
|
65 |
]
|
66 |
|
67 |
def _generate_examples(self, archive_iter):
|
68 |
-
for
|
69 |
-
|
70 |
fieldnames = ["articleBody", "description", "headline", "title"]
|
71 |
reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
|
72 |
next(reader)
|
|
|
65 |
]
|
66 |
|
67 |
def _generate_examples(self, archive_iter):
|
68 |
+
for filepath, _ in archive_iter:
|
69 |
+
with open(filepath, encoding="utf-8") as f:
|
70 |
fieldnames = ["articleBody", "description", "headline", "title"]
|
71 |
reader = csv.DictReader(f, delimiter=",", fieldnames=fieldnames)
|
72 |
next(reader)
|