Commit
•
a9aa409
1
Parent(s):
48b5590
Host data file (#2)
Browse files- Host data file (f40238161de8ccc2c09ca976513fb844cde8b275)
- Update loading script (45d0e2031d77f3fa23b06f1d2132e2afbee19500)
- Update metadata (736678ada0232e12b9b452773cb6b349e4319b07)
- Delete legacy dataset_infos.json (40e0bd7fbfaad522dd37b51d7ab5a27eacaa3cbe)
- README.md +1 -2
- data/yo_C3_large_clean_plus_noisy.txt.gz +3 -0
- dataset_infos.json +0 -1
- yoruba_text_c3.py +7 -23
README.md
CHANGED
@@ -72,9 +72,8 @@ dataset_info:
|
|
72 |
|
73 |
## Dataset Description
|
74 |
|
75 |
-
- **Homepage:** https://www.aclweb.org/anthology/2020.lrec-1.335
|
76 |
- **Repository:** https://github.com/ajesujoba/YorubaTwi-Embedding/
|
77 |
-
- **Paper:** https://
|
78 |
- **Leaderboard:**
|
79 |
- **Point of Contact:** [Jesujoba Alabi](mailto:alabijesujoba@gmail.com)
|
80 |
|
|
|
72 |
|
73 |
## Dataset Description
|
74 |
|
|
|
75 |
- **Repository:** https://github.com/ajesujoba/YorubaTwi-Embedding/
|
76 |
+
- **Paper:** https://aclanthology.org/2020.lrec-1.335/
|
77 |
- **Leaderboard:**
|
78 |
- **Point of Contact:** [Jesujoba Alabi](mailto:alabijesujoba@gmail.com)
|
79 |
|
data/yo_C3_large_clean_plus_noisy.txt.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ace61add272cdf8ffdb1f16f95372fe47045303b03e9a4c32ffe499d0d7a6a5b
|
3 |
+
size 20315121
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"plain_text": {"description": "Yoruba Text C3 is the largest Yoruba texts collected and used to train FastText embeddings in the \nYorubaTwi Embedding paper: https://www.aclweb.org/anthology/2020.lrec-1.335/\n", "citation": "@inproceedings{alabi-etal-2020-massive,\n title = \"Massive vs. Curated Embeddings for Low-Resourced Languages: the Case of {Y}or{\\`u}b{'a} and {T}wi\",\n author = \"Alabi, Jesujoba and\n Amponsah-Kaakyire, Kwabena and\n Adelani, David and\n Espa{\\~n}a-Bonet, Cristina\",\n booktitle = \"Proceedings of the 12th Language Resources and Evaluation Conference\",\n month = may,\n year = \"2020\",\n address = \"Marseille, France\",\n publisher = \"European Language Resources Association\",\n url = \"https://www.aclweb.org/anthology/2020.lrec-1.335\",\n pages = \"2754--2762\",\n language = \"English\",\n ISBN = \"979-10-95546-34-4\",\n}\n", "homepage": "https://www.aclweb.org/anthology/2020.lrec-1.335/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "yoruba_twi_text_c3", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 77094396, "num_examples": 562238, "dataset_name": "yoruba_twi_text_c3"}}, "download_checksums": {"https://drive.google.com/uc?export=download&id=1Nug7-Sri50mkJL4GrWw6C2ZIbfeU-6Am": {"num_bytes": 75407454, "checksum": "171f71c1d2249fa300219a335361c9b04f96b0abf514f351128514d4ccc03b50"}}, "download_size": 75407454, "post_processing_size": null, "dataset_size": 77094396, "size_in_bytes": 152501850}, "yoruba_text_c3": {"description": "Yoruba Text C3 is the largest Yoruba texts collected and used to train FastText embeddings in the \nYorubaTwi Embedding paper: https://www.aclweb.org/anthology/2020.lrec-1.335/\n", "citation": "@inproceedings{alabi-etal-2020-massive,\n title = \"Massive vs. Curated Embeddings for Low-Resourced Languages: the Case of {Y}or{\\`u}b{'a} and {T}wi\",\n author = \"Alabi, Jesujoba and\n Amponsah-Kaakyire, Kwabena and\n Adelani, David and\n Espa{\\~n}a-Bonet, Cristina\",\n booktitle = \"Proceedings of the 12th Language Resources and Evaluation Conference\",\n month = may,\n year = \"2020\",\n address = \"Marseille, France\",\n publisher = \"European Language Resources Association\",\n url = \"https://www.aclweb.org/anthology/2020.lrec-1.335\",\n pages = \"2754--2762\",\n language = \"English\",\n ISBN = \"979-10-95546-34-4\",\n}\n", "homepage": "https://www.aclweb.org/anthology/2020.lrec-1.335/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "yoruba_twi_text_c3", "config_name": "yoruba_text_c3", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 77094396, "num_examples": 562238, "dataset_name": "yoruba_twi_text_c3"}}, "download_checksums": {"https://drive.google.com/uc?export=download&id=1Nug7-Sri50mkJL4GrWw6C2ZIbfeU-6Am": {"num_bytes": 75407454, "checksum": "171f71c1d2249fa300219a335361c9b04f96b0abf514f351128514d4ccc03b50"}}, "download_size": 75407454, "post_processing_size": null, "dataset_size": 77094396, "size_in_bytes": 152501850}}
|
|
|
|
yoruba_text_c3.py
CHANGED
@@ -25,6 +25,8 @@ Yoruba Text C3 is the largest Yoruba texts collected and used to train FastText
|
|
25 |
YorubaTwi Embedding paper: https://www.aclweb.org/anthology/2020.lrec-1.335/
|
26 |
"""
|
27 |
|
|
|
|
|
28 |
_CITATION = """\
|
29 |
@inproceedings{alabi-etal-2020-massive,
|
30 |
title = "Massive vs. Curated Embeddings for Low-Resourced Languages: the Case of Yoruba and {T}wi",
|
@@ -44,30 +46,12 @@ _CITATION = """\
|
|
44 |
}
|
45 |
"""
|
46 |
|
47 |
-
URL = "
|
48 |
-
|
49 |
-
|
50 |
-
class YorubaTextC3Config(datasets.BuilderConfig):
|
51 |
-
"""BuilderConfig for YorubaTextC3."""
|
52 |
-
|
53 |
-
def __init__(self, **kwargs):
|
54 |
-
"""BuilderConfig for BookCorpus.
|
55 |
-
Args:
|
56 |
-
**kwargs: keyword arguments forwarded to super.
|
57 |
-
"""
|
58 |
-
super(YorubaTextC3Config, self).__init__(**kwargs)
|
59 |
|
60 |
|
61 |
class YorubaTextC3(datasets.GeneratorBasedBuilder):
|
62 |
"""Yoruba Text C3 dataset."""
|
63 |
-
|
64 |
-
BUILDER_CONFIGS = [
|
65 |
-
YorubaTextC3Config(
|
66 |
-
name="yoruba_text_c3",
|
67 |
-
version=datasets.Version("1.0.0"),
|
68 |
-
description="Yoruba Texts C3 ",
|
69 |
-
)
|
70 |
-
]
|
71 |
|
72 |
def _info(self):
|
73 |
return datasets.DatasetInfo(
|
@@ -78,15 +62,15 @@ class YorubaTextC3(datasets.GeneratorBasedBuilder):
|
|
78 |
}
|
79 |
),
|
80 |
supervised_keys=None,
|
81 |
-
homepage=
|
82 |
citation=_CITATION,
|
83 |
)
|
84 |
|
85 |
def _split_generators(self, dl_manager):
|
86 |
-
|
87 |
|
88 |
return [
|
89 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath":
|
90 |
]
|
91 |
|
92 |
def _generate_examples(self, filepath):
|
|
|
25 |
YorubaTwi Embedding paper: https://www.aclweb.org/anthology/2020.lrec-1.335/
|
26 |
"""
|
27 |
|
28 |
+
_HOMEPAGE = "https://github.com/ajesujoba/YorubaTwi-Embedding/"
|
29 |
+
|
30 |
_CITATION = """\
|
31 |
@inproceedings{alabi-etal-2020-massive,
|
32 |
title = "Massive vs. Curated Embeddings for Low-Resourced Languages: the Case of Yoruba and {T}wi",
|
|
|
46 |
}
|
47 |
"""
|
48 |
|
49 |
+
URL = "data/yo_C3_large_clean_plus_noisy.txt.gz"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
class YorubaTextC3(datasets.GeneratorBasedBuilder):
|
53 |
"""Yoruba Text C3 dataset."""
|
54 |
+
VERSION = datasets.Version("1.0.0")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
def _info(self):
|
57 |
return datasets.DatasetInfo(
|
|
|
62 |
}
|
63 |
),
|
64 |
supervised_keys=None,
|
65 |
+
homepage=_HOMEPAGE,
|
66 |
citation=_CITATION,
|
67 |
)
|
68 |
|
69 |
def _split_generators(self, dl_manager):
|
70 |
+
filepath = dl_manager.download_and_extract(URL)
|
71 |
|
72 |
return [
|
73 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": filepath}),
|
74 |
]
|
75 |
|
76 |
def _generate_examples(self, filepath):
|