Datasets:

License:
hojjat-m commited on
Commit
7e81b1f
1 Parent(s): 2581602

Update Persian-News.py

Browse files
Files changed (1) hide show
  1. Persian-News.py +3 -3
Persian-News.py CHANGED
@@ -63,9 +63,9 @@ class PersianNews(datasets.GeneratorBasedBuilder):
63
  downloaded_file = dl_manager.download_custom(_DRIVE_URL, self.custom_dataset)
64
  extracted_file = dl_manager.extract(downloaded_file)
65
  return [
66
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(extracted_file, 'digimag/train.csv')}),
67
- datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(extracted_file, 'digimag/test.csv')}),
68
- datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": os.path.join(extracted_file, 'digimag/dev.csv')}),
69
  ]
70
 
71
  def _generate_examples(self, filepath):
 
63
  downloaded_file = dl_manager.download_custom(_DRIVE_URL, self.custom_dataset)
64
  extracted_file = dl_manager.extract(downloaded_file)
65
  return [
66
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/train.csv')}),
67
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/test.csv')}),
68
+ datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": os.path.join(extracted_file, 'persian_news/dev.csv')}),
69
  ]
70
 
71
  def _generate_examples(self, filepath):