khalidalt commited on
Commit
3084941
1 Parent(s): e020613

Update ultimate_arabic_news.py

Browse files
Files changed (1) hide show
  1. ultimate_arabic_news.py +2 -2
ultimate_arabic_news.py CHANGED
@@ -86,7 +86,7 @@ class Ultimate_Arabic_News(datasets.GeneratorBasedBuilder):
86
  datasets.SplitGenerator(
87
  name=datasets.Split.TRAIN,
88
  # These kwargs will be passed to _generate_examples
89
- gen_kwargs={"filepath": UltAr_downloaded["train"]},
90
  ),
91
  ]
92
  elif self.config.name == "UltimateArabicPrePros":
@@ -94,7 +94,7 @@ class Ultimate_Arabic_News(datasets.GeneratorBasedBuilder):
94
  datasets.SplitGenerator(
95
  name=datasets.Split.TRAIN,
96
  # These kwargs will be passed to _generate_examples
97
- gen_kwargs={"filepath": UltArPre_downloaded["train"]},
98
  ),
99
 
100
  ]
 
86
  datasets.SplitGenerator(
87
  name=datasets.Split.TRAIN,
88
  # These kwargs will be passed to _generate_examples
89
+ gen_kwargs={"csv_file": UltAr_downloaded},
90
  ),
91
  ]
92
  elif self.config.name == "UltimateArabicPrePros":
 
94
  datasets.SplitGenerator(
95
  name=datasets.Split.TRAIN,
96
  # These kwargs will be passed to _generate_examples
97
+ gen_kwargs={"csv_file": UltArPre_downloaded},
98
  ),
99
 
100
  ]