Saied Alimoradi
commited on
Commit
•
ad5db75
1
Parent(s):
b35f8c7
adding real data
Browse files- .gitattributes +2 -0
- persian_blog_V2.py +5 -5
- test.zip +3 -0
- train.zip +3 -0
.gitattributes
CHANGED
@@ -36,3 +36,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
36 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
37 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
38 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
36 |
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
37 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
38 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
39 |
+
train.zip filter=lfs diff=lfs merge=lfs -text
|
40 |
+
test.zip filter=lfs diff=lfs merge=lfs -text
|
persian_blog_V2.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
import sys
|
5 |
csv.field_size_limit(sys.maxsize)
|
6 |
|
7 |
-
_DESCRIPTION = """persian_blog is a dataset consist of
|
8 |
this dataset can be used in different NLG tasks and as a show-case it's is used in training reformer-persian."""
|
9 |
_PROJECT_URL = """"""
|
10 |
|
@@ -16,8 +16,8 @@ https://saied71.github.io/RohanAiLab/,
|
|
16 |
}
|
17 |
"""
|
18 |
|
19 |
-
train = "
|
20 |
-
test = "
|
21 |
|
22 |
class persian_blog_V2(datasets.GeneratorBasedBuilder):
|
23 |
|
@@ -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, "
|
43 |
-
test_dir = os.path.join(dl_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}),
|
|
|
4 |
import sys
|
5 |
csv.field_size_limit(sys.maxsize)
|
6 |
|
7 |
+
_DESCRIPTION = """persian_blog is a dataset consist of 700K blog posts from various websites and has types of tones.
|
8 |
this dataset can be used in different NLG tasks and as a show-case it's is used in training reformer-persian."""
|
9 |
_PROJECT_URL = """"""
|
10 |
|
|
|
16 |
}
|
17 |
"""
|
18 |
|
19 |
+
train = "train.zip"
|
20 |
+
test = "test.zip"
|
21 |
|
22 |
class persian_blog_V2(datasets.GeneratorBasedBuilder):
|
23 |
|
|
|
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, "train.csv")
|
43 |
+
test_dir = os.path.join(dl_test, "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}),
|
test.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8c06c7a2043768b7185b25119ea85aeefce55169a79d3ced25bf7db57088e15
|
3 |
+
size 19256736
|
train.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:acb8dbd69a8213e715ceccb53769f29d8f177cd3ce624821639ab9f61eb8577c
|
3 |
+
size 939083225
|