Saied Alimoradi
commited on
Commit
•
b35f8c7
1
Parent(s):
2800eec
edit script
Browse files- persian_blog_V2.py +2 -2
persian_blog_V2.py
CHANGED
@@ -39,8 +39,8 @@ class persian_blog_V2(datasets.GeneratorBasedBuilder):
|
|
39 |
"""Returns SplitGenerators."""
|
40 |
dl_train = dl_manager.download_and_extract(train)
|
41 |
dl_test = dl_manager.download_and_extract(test)
|
42 |
-
train_dir = os.path.join(dl_train, "sample_train.
|
43 |
-
test_dir = os.path.join(dl_test, "sample_test.
|
44 |
return [
|
45 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_dir}),
|
46 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_dir}),
|
|
|
39 |
"""Returns SplitGenerators."""
|
40 |
dl_train = dl_manager.download_and_extract(train)
|
41 |
dl_test = dl_manager.download_and_extract(test)
|
42 |
+
train_dir = os.path.join(dl_train, "sample_train.csv")
|
43 |
+
test_dir = os.path.join(dl_test, "sample_test.csv")
|
44 |
return [
|
45 |
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": train_dir}),
|
46 |
datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_dir}),
|