Diwank Singh
commited on
Commit
•
cd0b97a
1
Parent(s):
467f601
Update dataset script
Browse filesSigned-off-by: Diwank Singh <diwank.singh@gmail.com>
- hinglish-dump.py +7 -4
hinglish-dump.py
CHANGED
@@ -53,15 +53,18 @@ _URLS = {
|
|
53 |
])),
|
54 |
}
|
55 |
|
|
|
|
|
|
|
56 |
class HinglishDumpDataset(datasets.GeneratorBasedBuilder):
|
57 |
"""Raw merged dump of Hinglish (hi-EN) datasets."""
|
58 |
|
59 |
-
VERSION =
|
60 |
-
CONFIGS =
|
61 |
|
62 |
BUILDER_CONFIGS = [
|
63 |
-
datasets.BuilderConfig(name=subset, version=
|
64 |
-
for subset in
|
65 |
]
|
66 |
|
67 |
def _info(self):
|
|
|
53 |
])),
|
54 |
}
|
55 |
|
56 |
+
config_names = _URLS.keys()
|
57 |
+
version = datasets.Version("1.0.0")
|
58 |
+
|
59 |
class HinglishDumpDataset(datasets.GeneratorBasedBuilder):
|
60 |
"""Raw merged dump of Hinglish (hi-EN) datasets."""
|
61 |
|
62 |
+
VERSION = version
|
63 |
+
CONFIGS = config_names
|
64 |
|
65 |
BUILDER_CONFIGS = [
|
66 |
+
datasets.BuilderConfig(name=subset, version=version, description=f"Config for {subset}")
|
67 |
+
for subset in config_names
|
68 |
]
|
69 |
|
70 |
def _info(self):
|