system HF staff commited on
Commit
6b1ebfb
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language_creators:
5
+ - expert-generated
6
+ languages:
7
+ - en
8
+ - yo
9
+ licenses:
10
+ - unknown
11
+ multilinguality:
12
+ - multilingual
13
+ size_categories:
14
+ - n<1K
15
+ source_datasets:
16
+ - original
17
+ task_categories:
18
+ - text-scoring
19
+ task_ids:
20
+ - semantic-similarity-scoring
21
+ ---
22
+
23
+ # Dataset Card for wordsim-353 in Yorùbá (yoruba_wordsim353)
24
+
25
+ ## Table of Contents
26
+ - [Dataset Description](#dataset-description)
27
+ - [Dataset Summary](#dataset-summary)
28
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
29
+ - [Languages](#languages)
30
+ - [Dataset Structure](#dataset-structure)
31
+ - [Data Instances](#data-instances)
32
+ - [Data Fields](#data-instances)
33
+ - [Data Splits](#data-instances)
34
+ - [Dataset Creation](#dataset-creation)
35
+ - [Curation Rationale](#curation-rationale)
36
+ - [Source Data](#source-data)
37
+ - [Annotations](#annotations)
38
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
39
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
40
+ - [Social Impact of Dataset](#social-impact-of-dataset)
41
+ - [Discussion of Biases](#discussion-of-biases)
42
+ - [Other Known Limitations](#other-known-limitations)
43
+ - [Additional Information](#additional-information)
44
+ - [Dataset Curators](#dataset-curators)
45
+ - [Licensing Information](#licensing-information)
46
+ - [Citation Information](#citation-information)
47
+
48
+ ## Dataset Description
49
+
50
+ - **Homepage:** -
51
+ - **Repository:** https://github.com/ajesujoba/YorubaTwi-Embedding
52
+ - **Paper:** https://www.aclweb.org/anthology/2020.lrec-1.335/
53
+ - **Leaderboard:** -
54
+ - **Point of Contact:** Jesujoba Alabi ( jesujobaoluwadara.alabi (at) dfki.de ) and David Adelani ( didelani (at) lsv.uni-saarland.de )
55
+
56
+ ### Dataset Summary
57
+
58
+ A translation of the word pair similarity dataset wordsim-353 to Yorùbá.
59
+
60
+ ### Supported Tasks and Leaderboards
61
+
62
+ [More Information Needed]
63
+
64
+ ### Languages
65
+
66
+ Yorùbá (ISO 639-1: yo)
67
+
68
+ ## Dataset Structure
69
+
70
+ ### Data Instances
71
+
72
+ An instance consists of a pair of words as well as their similarity. The dataset contains both the original English words (from wordsim-353) as well as their translation to Yorùbá.
73
+
74
+ ### Data Fields
75
+
76
+ - `english1`: the first word of the pair; the original English word
77
+ - `english2`: the second word of the pair; the original English word
78
+ - `yoruba1`: the first word of the pair; translation to Yorùbá
79
+ - `yoruba2`: the second word of the pair; translation to Yorùbá
80
+ - `similarity`: similarity rating according to the English dataset
81
+
82
+ ### Data Splits
83
+
84
+ [More Information Needed]
85
+
86
+ ## Dataset Creation
87
+
88
+ ### Curation Rationale
89
+
90
+ [More Information Needed]
91
+
92
+ ### Source Data
93
+
94
+ #### Initial Data Collection and Normalization
95
+
96
+ [More Information Needed]
97
+
98
+ #### Who are the source language producers?
99
+
100
+ [More Information Needed]
101
+
102
+ ### Annotations
103
+
104
+ #### Annotation process
105
+
106
+ [More Information Needed]
107
+
108
+ #### Who are the annotators?
109
+
110
+ [More Information Needed]
111
+
112
+ ### Personal and Sensitive Information
113
+
114
+ [More Information Needed]
115
+
116
+ ## Considerations for Using the Data
117
+
118
+ ### Social Impact of Dataset
119
+
120
+ [More Information Needed]
121
+
122
+ ### Discussion of Biases
123
+
124
+ [More Information Needed]
125
+
126
+ ### Other Known Limitations
127
+
128
+ [More Information Needed]
129
+
130
+ ## Additional Information
131
+
132
+ ### Dataset Curators
133
+
134
+ [More Information Needed]
135
+
136
+ ### Licensing Information
137
+
138
+ [More Information Needed]
139
+
140
+ ### Citation Information
141
+
142
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"default": {"description": "A translation of the word pair similarity dataset wordsim-353 to Yor\u00f9b\u00e1.\n\nThe dataset was presented in the paper\nAlabi et al.: Massive vs. Curated Embeddings for Low-Resourced\nLanguages: the Case of Yor\u00f9b\u00e1 and Twi (LREC 2020).\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://github.com/ajesujoba/YorubaTwi-Embedding", "license": "", "features": {"english1": {"dtype": "string", "id": null, "_type": "Value"}, "english2": {"dtype": "string", "id": null, "_type": "Value"}, "yoruba1": {"dtype": "string", "id": null, "_type": "Value"}, "yoruba2": {"dtype": "string", "id": null, "_type": "Value"}, "similarity": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "yoruba_wordsim353", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 19299, "num_examples": 353, "dataset_name": "yoruba_wordsim353"}}, "download_checksums": {"https://raw.githubusercontent.com/ajesujoba/YorubaTwi-Embedding/master/Yoruba/wordSim353_yo.csv": {"num_bytes": 17039, "checksum": "e0b14d7c8cfa8b08808862f008124bd0314a33e401951007faf3563ed8ff13f5"}}, "download_size": 17039, "post_processing_size": null, "dataset_size": 19299, "size_in_bytes": 36338}}
dummy/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a0a19435b7495abb0bf7b2e7f46dccf2139ad0331b1238443e5c21c69691f47
3
+ size 418
yoruba_wordsim353.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Lint as: python3
17
+ """WordSim-353 for Yoruba"""
18
+
19
+ from __future__ import absolute_import, division, print_function
20
+
21
+ import csv
22
+
23
+ import datasets
24
+
25
+
26
+ _DESCRIPTION = """\
27
+ A translation of the word pair similarity dataset wordsim-353 to Yorùbá.
28
+
29
+ The dataset was presented in the paper
30
+ Alabi et al.: Massive vs. Curated Embeddings for Low-Resourced
31
+ Languages: the Case of Yorùbá and Twi (LREC 2020).
32
+ """
33
+
34
+ _CITATION = """\
35
+ @inproceedings{alabi-etal-2020-massive,
36
+ title = "Massive vs. Curated Embeddings for Low-Resourced Languages: the Case of {Y}or{\\`u}b{\\'a} and {T}wi",
37
+ author = "Alabi, Jesujoba and
38
+ Amponsah-Kaakyire, Kwabena and
39
+ Adelani, David and
40
+ Espa{\\~n}a-Bonet, Cristina",
41
+ booktitle = "Proceedings of the 12th Language Resources and Evaluation Conference",
42
+ month = may,
43
+ year = "2020",
44
+ address = "Marseille, France",
45
+ publisher = "European Language Resources Association",
46
+ url = "https://www.aclweb.org/anthology/2020.lrec-1.335",
47
+ pages = "2754--2762",
48
+ language = "English",
49
+ ISBN = "979-10-95546-34-4",
50
+ }
51
+ """
52
+
53
+ _DOWNLOAD_URL = "https://raw.githubusercontent.com/ajesujoba/YorubaTwi-Embedding/master/Yoruba/wordSim353_yo.csv"
54
+
55
+
56
+ class YorubaWordsim353(datasets.GeneratorBasedBuilder):
57
+ """WordSim-353 for Yoruba."""
58
+
59
+ def _info(self):
60
+ return datasets.DatasetInfo(
61
+ description=_DESCRIPTION,
62
+ features=datasets.Features(
63
+ {
64
+ "english1": datasets.Value("string"),
65
+ "english2": datasets.Value("string"),
66
+ "yoruba1": datasets.Value("string"),
67
+ "yoruba2": datasets.Value("string"),
68
+ "similarity": datasets.Value("float32"),
69
+ }
70
+ ),
71
+ homepage="https://github.com/ajesujoba/YorubaTwi-Embedding",
72
+ citation=_CITATION,
73
+ )
74
+
75
+ def _split_generators(self, dl_manager):
76
+ test_path = dl_manager.download_and_extract(_DOWNLOAD_URL)
77
+ return [
78
+ datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": test_path}),
79
+ ]
80
+
81
+ def _generate_examples(self, filepath):
82
+ """Generate WordSim-353 for Yoruba examples."""
83
+ with open(filepath, encoding="utf-8") as csv_file:
84
+ csv_reader = csv.DictReader(csv_file, delimiter=",")
85
+ for id_, row in enumerate(csv_reader):
86
+ yield id_, {
87
+ "english1": row["English1"],
88
+ "english2": row["English2"],
89
+ "yoruba1": row["Yoruba1"],
90
+ "yoruba2": row["Yoruba2"],
91
+ "similarity": row["EngSim"],
92
+ }