Datasets:

Languages:
Hebrew
ArXiv:
Libraries:
Datasets
pandas
License:
GiliGold commited on
Commit
0d5ddef
1 Parent(s): 5254d04

Upload knessetCorpus.py

Browse files
Files changed (1) hide show
  1. knessetCorpus.py +5 -4
knessetCorpus.py CHANGED
@@ -56,7 +56,7 @@ The features are consistent with the Protocol model features and the features fo
56
  class KnessetCorpusConfig(datasets.BuilderConfig):
57
  """BuilderConfig for KnessetCorpus."""
58
 
59
- def __init__(self, features, data_urls, citation ,**kwargs):
60
  """BuilderConfig for KnessetCorpus.
61
 
62
  Args:
@@ -76,7 +76,7 @@ class KnessetCorpusConfig(datasets.BuilderConfig):
76
 
77
 
78
 
79
- class KnessetCorpus(datasets.GeneratorBasedBuilderf):
80
 
81
  BUILDER_CONFIG_CLASS = KnessetCorpusConfig
82
  BUILDER_CONFIGS = [
@@ -242,7 +242,7 @@ class KnessetCorpus(datasets.GeneratorBasedBuilderf):
242
  features=datasets.Features(features),
243
  citation=self.config.citation
244
  )
245
- def _split_generators(self, dl_manager):
246
  urls = self.config.data_urls
247
  downloaded_files = dl_manager.download_and_extract(urls)
248
 
@@ -250,7 +250,8 @@ class KnessetCorpus(datasets.GeneratorBasedBuilderf):
250
  datasets.SplitGenerator(
251
  name=datasets.Split.TRAIN,
252
  gen_kwargs={
253
- "data_files": downloaded_files
 
254
  },
255
  ),
256
  ]
 
56
  class KnessetCorpusConfig(datasets.BuilderConfig):
57
  """BuilderConfig for KnessetCorpus."""
58
 
59
+ def __init__(self, features, data_urls, citation, **kwargs):
60
  """BuilderConfig for KnessetCorpus.
61
 
62
  Args:
 
76
 
77
 
78
 
79
+ class KnessetCorpus(datasets.GeneratorBasedBuilder):
80
 
81
  BUILDER_CONFIG_CLASS = KnessetCorpusConfig
82
  BUILDER_CONFIGS = [
 
242
  features=datasets.Features(features),
243
  citation=self.config.citation
244
  )
245
+ def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
246
  urls = self.config.data_urls
247
  downloaded_files = dl_manager.download_and_extract(urls)
248
 
 
250
  datasets.SplitGenerator(
251
  name=datasets.Split.TRAIN,
252
  gen_kwargs={
253
+ "data_files": downloaded_files,
254
+ "split": "train",
255
  },
256
  ),
257
  ]