Datasets:

Languages:
Persian
License:
hojjat-m commited on
Commit
2a15161
1 Parent(s): a482bc2

Update PEYMA.py

Browse files
Files changed (1) hide show
  1. PEYMA.py +3 -3
PEYMA.py CHANGED
@@ -74,20 +74,20 @@ class PEYMA(datasets.GeneratorBasedBuilder):
74
  name=datasets.Split.TRAIN,
75
  # These kwargs will be passed to _generate_examples
76
  gen_kwargs={
77
- "filepath": _DATA_PATH["train"],
78
  "split": "train",
79
  },),
80
  datasets.SplitGenerator(
81
  name=datasets.Split.TEST,
82
  # These kwargs will be passed to _generate_examples
83
  gen_kwargs={
84
- "filepath": _DATA_PATH["test"],
85
  "split": "test"},),
86
  datasets.SplitGenerator(
87
  name=datasets.Split.VALIDATION,
88
  # These kwargs will be passed to _generate_examples
89
  gen_kwargs={
90
- "filepath": _DATA_PATH["val"],
91
  "split": "validation",
92
  },
93
  ),
 
74
  name=datasets.Split.TRAIN,
75
  # These kwargs will be passed to _generate_examples
76
  gen_kwargs={
77
+ "filepath": dl_manager.download_and_extract(_DATA_PATH["train"]),
78
  "split": "train",
79
  },),
80
  datasets.SplitGenerator(
81
  name=datasets.Split.TEST,
82
  # These kwargs will be passed to _generate_examples
83
  gen_kwargs={
84
+ "filepath": dl_manager.download_and_extract(_DATA_PATH["test"]),
85
  "split": "test"},),
86
  datasets.SplitGenerator(
87
  name=datasets.Split.VALIDATION,
88
  # These kwargs will be passed to _generate_examples
89
  gen_kwargs={
90
+ "filepath": dl_manager.download_and_extract(_DATA_PATH["val"]),
91
  "split": "validation",
92
  },
93
  ),