imvladikon commited on
Commit
e49507e
1 Parent(s): 0935a99

Update hebrew_news.py

Browse files
Files changed (1) hide show
  1. 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": downloaded_files},
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