Datasets:
Tasks:
Summarization
Modalities:
Text
Sub-tasks:
news-articles-summarization
Languages:
Hebrew
Size:
100K - 1M
License:
imvladikon
commited on
Commit
•
e49507e
1
Parent(s):
0935a99
Update hebrew_news.py
Browse files- hebrew_news.py +3 -3
hebrew_news.py
CHANGED
@@ -9,8 +9,7 @@ from urllib.parse import urlparse
|
|
9 |
_CITATION = """
|
10 |
"""
|
11 |
|
12 |
-
_DESCRIPTION = """\
|
13 |
-
"""
|
14 |
|
15 |
|
16 |
class HebrewNewsConfig(datasets.BuilderConfig):
|
@@ -55,10 +54,11 @@ class HebrewNews(datasets.GeneratorBasedBuilder):
|
|
55 |
"""Returns SplitGenerators."""
|
56 |
urls_to_download = "data/news.tar.gz"
|
57 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
|
|
58 |
return [
|
59 |
datasets.SplitGenerator(
|
60 |
name=datasets.Split.TRAIN,
|
61 |
-
gen_kwargs={"filepath":
|
62 |
),
|
63 |
]
|
64 |
|
|
|
9 |
_CITATION = """
|
10 |
"""
|
11 |
|
12 |
+
_DESCRIPTION = """\n"""
|
|
|
13 |
|
14 |
|
15 |
class HebrewNewsConfig(datasets.BuilderConfig):
|
|
|
54 |
"""Returns SplitGenerators."""
|
55 |
urls_to_download = "data/news.tar.gz"
|
56 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
57 |
+
filepath = os.path.join(downloaded_files, "news.csv")
|
58 |
return [
|
59 |
datasets.SplitGenerator(
|
60 |
name=datasets.Split.TRAIN,
|
61 |
+
gen_kwargs={"filepath": filepath},
|
62 |
),
|
63 |
]
|
64 |
|