Datasets:
sadrasabouri
commited on
Commit
•
e964f8d
1
Parent(s):
94c002a
Update naab.py
Browse files
naab.py
CHANGED
@@ -45,6 +45,7 @@ _URLS = {
|
|
45 |
"train": [_BASE_URL + "train-{:05d}-of-{:05d}.txt".format(x, N_FILES["train"]) for x in range(N_FILES["train"])],
|
46 |
"test": [_BASE_URL + "test-{:05d}-of-{:05d}.txt".format(x, N_FILES["test"]) for x in range(N_FILES["test"])],
|
47 |
}
|
|
|
48 |
|
49 |
|
50 |
class NaabConfig(datasets.BuilderConfig):
|
@@ -55,17 +56,12 @@ class NaabConfig(datasets.BuilderConfig):
|
|
55 |
Args:
|
56 |
**kwargs: keyword arguments forwarded to super.
|
57 |
"""
|
58 |
-
super().__init__(
|
59 |
-
*args,
|
60 |
-
**kwargs,
|
61 |
-
)
|
62 |
|
63 |
|
64 |
class Naab(datasets.GeneratorBasedBuilder):
|
65 |
"""naab: A ready-to-use plug-and-play corpus in Farsi."""
|
66 |
|
67 |
-
VERSION = datasets.Version("1.0.0")
|
68 |
-
|
69 |
BUILDER_CONFIGS = [
|
70 |
NaabConfig(
|
71 |
name="train",
|
@@ -82,12 +78,12 @@ class Naab(datasets.GeneratorBasedBuilder):
|
|
82 |
|
83 |
def _info(self):
|
84 |
features = datasets.Features({
|
85 |
-
|
86 |
-
|
87 |
-
)
|
88 |
return datasets.DatasetInfo(
|
89 |
description=_DESCRIPTION,
|
90 |
features=features,
|
|
|
91 |
homepage=_HOMEPAGE,
|
92 |
license=_LICENSE,
|
93 |
citation=_CITATION,
|
|
|
45 |
"train": [_BASE_URL + "train-{:05d}-of-{:05d}.txt".format(x, N_FILES["train"]) for x in range(N_FILES["train"])],
|
46 |
"test": [_BASE_URL + "test-{:05d}-of-{:05d}.txt".format(x, N_FILES["test"]) for x in range(N_FILES["test"])],
|
47 |
}
|
48 |
+
VERSION = datasets.Version("1.0.0")
|
49 |
|
50 |
|
51 |
class NaabConfig(datasets.BuilderConfig):
|
|
|
56 |
Args:
|
57 |
**kwargs: keyword arguments forwarded to super.
|
58 |
"""
|
59 |
+
super(NaabConfig, self).__init__(version=VERSION, **kwargs)
|
|
|
|
|
|
|
60 |
|
61 |
|
62 |
class Naab(datasets.GeneratorBasedBuilder):
|
63 |
"""naab: A ready-to-use plug-and-play corpus in Farsi."""
|
64 |
|
|
|
|
|
65 |
BUILDER_CONFIGS = [
|
66 |
NaabConfig(
|
67 |
name="train",
|
|
|
78 |
|
79 |
def _info(self):
|
80 |
features = datasets.Features({
|
81 |
+
"text": datasets.Value("string"),
|
82 |
+
})
|
|
|
83 |
return datasets.DatasetInfo(
|
84 |
description=_DESCRIPTION,
|
85 |
features=features,
|
86 |
+
supervised_keys=None,
|
87 |
homepage=_HOMEPAGE,
|
88 |
license=_LICENSE,
|
89 |
citation=_CITATION,
|