system HF staff commited on
Commit
bcad3d5
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,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - ar
8
+ licenses:
9
+ - unknown
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - n>1M
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - sequence-modeling
18
+ task_ids:
19
+ - language-modeling
20
+ - other-diacritics-prediction
21
+ ---
22
+
23
+ # Dataset Card for Tashkeela
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
+ - [Discussion of Social Impact and Biases](#discussion-of-social-impact-and-biases)
41
+ - [Other Known Limitations](#other-known-limitations)
42
+ - [Additional Information](#additional-information)
43
+ - [Dataset Curators](#dataset-curators)
44
+ - [Licensing Information](#licensing-information)
45
+ - [Citation Information](#citation-information)
46
+
47
+ ## Dataset Description
48
+
49
+ - **Homepage:** [Tashkeela](https://sourceforge.net/projects/tashkeela/)
50
+ - **Repository:** [Tashkeela](https://sourceforge.net/projects/tashkeela/)
51
+ - **Paper:** [Tashkeela: Novel corpus of Arabic vocalized texts, data for auto-diacritization systems](https://www.sciencedirect.com/science/article/pii/S2352340917300112)
52
+ - **Point of Contact:** [Taha Zerrouki](mailto:t_zerrouki@esi.dz)
53
+
54
+ ### Dataset Summary
55
+
56
+ It contains 75 million of fully vocalized words mainly
57
+ 97 books from classical and modern Arabic language.
58
+
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ The dataset was published on this [paper](https://www.sciencedirect.com/science/article/pii/S2352340917300112#!).
62
+
63
+ ### Languages
64
+
65
+ The dataset is based on Arabic.
66
+
67
+ ## Dataset Structure
68
+
69
+ ### Data Instances
70
+
71
+ The dataset contains 97 books and 75 million of fully vocalized words.
72
+
73
+ ### Data Fields
74
+
75
+ [More Information Needed]
76
+
77
+ ### Data Splits
78
+
79
+ The dataset is not split.
80
+
81
+ ## Dataset Creation
82
+
83
+ ### Curation Rationale
84
+
85
+ [More Information Needed]
86
+
87
+ ### Source Data
88
+
89
+ [More Information Needed]
90
+
91
+ #### Initial Data Collection and Normalization
92
+
93
+ The Modern Standard Arabic texts crawled from the Internet.
94
+
95
+ #### Who are the source language producers?
96
+
97
+ Websites.
98
+
99
+ ### Annotations
100
+
101
+ The dataset does not contain any additional annotations.
102
+
103
+ #### Annotation process
104
+
105
+ [More Information Needed]
106
+
107
+ #### Who are the annotators?
108
+
109
+ [More Information Needed]
110
+
111
+ ### Personal and Sensitive Information
112
+
113
+ [More Information Needed]
114
+
115
+ ## Considerations for Using the Data
116
+
117
+ ### Discussion of Social Impact and Biases
118
+
119
+ [More Information Needed]
120
+
121
+ ### Other Known Limitations
122
+
123
+ [More Information Needed]
124
+
125
+ ## Additional Information
126
+
127
+ ### Dataset Curators
128
+
129
+ [More Information Needed]
130
+
131
+ ### Licensing Information
132
+
133
+ [More Information Needed]
134
+
135
+ ### Citation Information
136
+
137
+ ```
138
+ @article{zerrouki2017tashkeela,
139
+ title={Tashkeela: Novel corpus of Arabic vocalized texts, data for auto-diacritization systems},
140
+ author={Zerrouki, Taha and Balla, Amar},
141
+ journal={Data in brief},
142
+ volume={11},
143
+ pages={147},
144
+ year={2017},
145
+ publisher={Elsevier}
146
+ }
147
+ ```
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"plain_text": {"description": "Arabic vocalized texts.\nit contains 75 million of fully vocalized words mainly97 books from classical and modern Arabic language.\n", "citation": "@article{zerrouki2017tashkeela,\n title={Tashkeela: Novel corpus of Arabic vocalized texts, data for auto-diacritization systems},\n author={Zerrouki, Taha and Balla, Amar},\n journal={Data in brief},\n volume={11},\n pages={147},\n year={2017},\n publisher={Elsevier}\n}\n", "homepage": "https://github.com/zaidalyafeai/Tashkeela", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "book": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "tashkeela", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1081110249, "num_examples": 97, "dataset_name": "tashkeela"}}, "download_checksums": {"https://sourceforge.net/projects/tashkeela/files/latest/download": {"num_bytes": 183393530, "checksum": "bfa2353cabaf4f1e8962f411201e4a4f936a70fa4981758d8994b35d7cf37b33"}}, "download_size": 183393530, "post_processing_size": null, "dataset_size": 1081110249, "size_in_bytes": 1264503779}}
dummy/plain_text/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:759868ba00808d1ad8718621ed675ecccd42bcf688b6be246a111a593667ef37
3
+ size 1029
tashkeela.py ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """Arabic Vocalized Words Dataset."""
18
+
19
+ from __future__ import absolute_import, division, print_function
20
+
21
+ import glob
22
+ import os
23
+
24
+ import datasets
25
+
26
+
27
+ _DESCRIPTION = """\
28
+ Arabic vocalized texts.
29
+ it contains 75 million of fully vocalized words mainly\
30
+ 97 books from classical and modern Arabic language.
31
+ """
32
+
33
+ _CITATION = """\
34
+ @article{zerrouki2017tashkeela,
35
+ title={Tashkeela: Novel corpus of Arabic vocalized texts, data for auto-diacritization systems},
36
+ author={Zerrouki, Taha and Balla, Amar},
37
+ journal={Data in brief},
38
+ volume={11},
39
+ pages={147},
40
+ year={2017},
41
+ publisher={Elsevier}
42
+ }
43
+ """
44
+
45
+ _DOWNLOAD_URL = "https://sourceforge.net/projects/tashkeela/files/latest/download"
46
+
47
+
48
+ class TashkeelaConfig(datasets.BuilderConfig):
49
+ """BuilderConfig for Tashkeela."""
50
+
51
+ def __init__(self, **kwargs):
52
+ """BuilderConfig for Tashkeela.
53
+
54
+ Args:
55
+ **kwargs: keyword arguments forwarded to super.
56
+ """
57
+ super(TashkeelaConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
58
+
59
+
60
+ class Tashkeela(datasets.GeneratorBasedBuilder):
61
+ """Tashkeela dataset."""
62
+
63
+ BUILDER_CONFIGS = [
64
+ TashkeelaConfig(
65
+ name="plain_text",
66
+ description="Plain text",
67
+ )
68
+ ]
69
+
70
+ def _info(self):
71
+ return datasets.DatasetInfo(
72
+ description=_DESCRIPTION,
73
+ features=datasets.Features(
74
+ {
75
+ "book": datasets.Value("string"),
76
+ "text": datasets.Value("string"),
77
+ }
78
+ ),
79
+ supervised_keys=None,
80
+ homepage="https://sourceforge.net/projects/tashkeela/",
81
+ citation=_CITATION,
82
+ )
83
+
84
+ def _split_generators(self, dl_manager):
85
+ arch_path = dl_manager.download_and_extract(_DOWNLOAD_URL)
86
+ return [
87
+ datasets.SplitGenerator(
88
+ name=datasets.Split.TRAIN,
89
+ gen_kwargs={
90
+ "directory": os.path.join(arch_path, "Tashkeela-arabic-diacritized-text-utf8-0.3/texts.txt")
91
+ },
92
+ ),
93
+ ]
94
+
95
+ def _generate_examples(self, directory):
96
+ """Generate examples."""
97
+
98
+ for id_, file_name in enumerate(sorted(glob.glob(os.path.join(directory, "**.txt")))):
99
+ with open(file_name, encoding="UTF-8") as f:
100
+ yield str(id_), {"book": file_name, "text": f.read()}