system HF staff commited on
Commit
f8b8d03
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,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ german_insertions:
8
+ - de
9
+ german_deletions:
10
+ - de
11
+ english_insertions:
12
+ - en
13
+ english_deletions:
14
+ - en
15
+ spanish_insertions:
16
+ - es
17
+ spanish_deletions:
18
+ - es
19
+ french_insertions:
20
+ - fr
21
+ french_deletions:
22
+ - fr
23
+ italian_insertions:
24
+ - it
25
+ italian_deletions:
26
+ - it
27
+ japanese_insertions:
28
+ - jp
29
+ japanese_deletions:
30
+ - jp
31
+ russian_insertions:
32
+ - ru
33
+ russian_deletions:
34
+ - ru
35
+ chinese_insertions:
36
+ - zh
37
+ chinese_deletions:
38
+ - zh
39
+ licenses:
40
+ - cc-by-sa-4-0
41
+ multilinguality:
42
+ - multilingual
43
+ size_categories:
44
+ - n>1M
45
+ source_datasets:
46
+ - original
47
+ task_categories:
48
+ - conditional-text-generation
49
+ task_ids:
50
+ - explanation-generation
51
+ - summarization
52
+ ---
53
+
54
+ # Dataset Card Creation Guide
55
+
56
+ ## Table of Contents
57
+ - [Dataset Description](#dataset-description)
58
+ - [Dataset Summary](#dataset-summary)
59
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
60
+ - [Languages](#languages)
61
+ - [Dataset Structure](#dataset-structure)
62
+ - [Data Instances](#data-instances)
63
+ - [Data Fields](#data-instances)
64
+ - [Data Splits](#data-instances)
65
+ - [Dataset Creation](#dataset-creation)
66
+ - [Curation Rationale](#curation-rationale)
67
+ - [Source Data](#source-data)
68
+ - [Annotations](#annotations)
69
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
70
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
71
+ - [Social Impact of Dataset](#social-impact-of-dataset)
72
+ - [Discussion of Biases](#discussion-of-biases)
73
+ - [Other Known Limitations](#other-known-limitations)
74
+ - [Additional Information](#additional-information)
75
+ - [Dataset Curators](#dataset-curators)
76
+ - [Licensing Information](#licensing-information)
77
+ - [Citation Information](#citation-information)
78
+
79
+ ## Dataset Description
80
+
81
+ - **Homepage:** None
82
+ - **Repository:** https://github.com/google-research-datasets/wiki-atomic-edits
83
+ - **Paper:** https://www.aclweb.org/anthology/D18-1028/
84
+ - **Leaderboard:** [More Information Needed]
85
+ - **Point of Contact:** [More Information Needed]
86
+
87
+ ### Dataset Summary
88
+
89
+ [More Information Needed]
90
+
91
+ ### Supported Tasks and Leaderboards
92
+
93
+ [More Information Needed]
94
+
95
+ ### Languages
96
+
97
+ [More Information Needed]
98
+
99
+ ## Dataset Structure
100
+
101
+ ### Data Instances
102
+
103
+ Here are some examples of questions and facts:
104
+
105
+
106
+ ### Data Fields
107
+
108
+ [More Information Needed]
109
+
110
+ ### Data Splits
111
+
112
+ [More Information Needed]
113
+
114
+ ## Dataset Creation
115
+
116
+ ### Curation Rationale
117
+
118
+ [More Information Needed]
119
+
120
+ ### Source Data
121
+
122
+ [More Information Needed]
123
+
124
+ #### Initial Data Collection and Normalization
125
+
126
+ [More Information Needed]
127
+
128
+ #### Who are the source language producers?
129
+
130
+ [More Information Needed]
131
+
132
+ ### Annotations
133
+
134
+ [More Information Needed]
135
+
136
+ #### Annotation process
137
+
138
+ [More Information Needed]
139
+
140
+ #### Who are the annotators?
141
+
142
+ [More Information Needed]
143
+
144
+ ### Personal and Sensitive Information
145
+
146
+ [More Information Needed]
147
+
148
+ ## Considerations for Using the Data
149
+
150
+ ### Social Impact of Dataset
151
+
152
+ [More Information Needed]
153
+
154
+ ### Discussion of Biases
155
+
156
+ [More Information Needed]
157
+
158
+ ### Other Known Limitations
159
+
160
+ [More Information Needed]
161
+
162
+ ## Additional Information
163
+
164
+ ### Dataset Curators
165
+
166
+ [More Information Needed]
167
+
168
+ ### Licensing Information
169
+
170
+ [More Information Needed]
171
+
172
+ ### Citation Information
173
+
174
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"german_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "german_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1072443082, "num_examples": 3343403, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/german/insertions.tsv.gz": {"num_bytes": 274280387, "checksum": "d999568c6854b462eb99afa003fa7dda925ed7692e8c1b70aa1ff02236ac45fc"}}, "download_size": 274280387, "post_processing_size": null, "dataset_size": 1072443082, "size_in_bytes": 1346723469}, "german_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "german_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 624070402, "num_examples": 1994329, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/german/deletions.tsv.gz": {"num_bytes": 160133549, "checksum": "58b56a148884db5018be457f7720cb5c60e436432d57c615409e7a7a8aa009f2"}}, "download_size": 160133549, "post_processing_size": null, "dataset_size": 624070402, "size_in_bytes": 784203951}, "english_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "english_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 4258411914, "num_examples": 13737796, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/english/insertions.tsv.gz": {"num_bytes": 1090652177, "checksum": "38d7f1c274694591b7b7defc0b86652a639c563382f931d1acf5ddc1c95be329"}}, "download_size": 1090652177, "post_processing_size": null, "dataset_size": 4258411914, "size_in_bytes": 5349064091}, "english_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "english_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2865754626, "num_examples": 9352389, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/english/deletions.tsv.gz": {"num_bytes": 736560902, "checksum": "b3658124c5f514a449829492ea56676db384974a5828644fe4b7bc9160d24cf6"}}, "download_size": 736560902, "post_processing_size": null, "dataset_size": 2865754626, "size_in_bytes": 3602315528}, "spanish_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "spanish_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 481145004, "num_examples": 1380934, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/spanish/insertions.tsv.gz": {"num_bytes": 118837934, "checksum": "1a8b31b02eb31de86a5b5710a9ad4c5fe8156380e3245c42a1c32c4949561ddc"}}, "download_size": 118837934, "post_processing_size": null, "dataset_size": 481145004, "size_in_bytes": 599982938}, "spanish_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "spanish_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 317253196, "num_examples": 908276, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/spanish/deletions.tsv.gz": {"num_bytes": 78485695, "checksum": "00aea6e7b99f4157cc56f13efe20272d74b92da80aee301712469b9cd3d71a8c"}}, "download_size": 78485695, "post_processing_size": null, "dataset_size": 317253196, "size_in_bytes": 395738891}, "french_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "french_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 651525210, "num_examples": 2038305, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/french/insertions.tsv.gz": {"num_bytes": 160442894, "checksum": "b152b5f1d40f3797ed85a64a939a1c1ec8ab1ccebc186cdbafae9945dfc67683"}}, "download_size": 160442894, "post_processing_size": null, "dataset_size": 651525210, "size_in_bytes": 811968104}, "french_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "french_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 626323354, "num_examples": 2060242, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/french/deletions.tsv.gz": {"num_bytes": 155263358, "checksum": "85c8f7932824aa45eaad045117f114d008cd461007e9e329708ba560b3811a35"}}, "download_size": 155263358, "post_processing_size": null, "dataset_size": 626323354, "size_in_bytes": 781586712}, "italian_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "italian_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 372950256, "num_examples": 1078814, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/italian/insertions.tsv.gz": {"num_bytes": 92302006, "checksum": "520d2c56914744fae93b281d6bd4d2a7dfc714259cc58a6251b0f1714948eeda"}}, "download_size": 92302006, "post_processing_size": null, "dataset_size": 372950256, "size_in_bytes": 465252262}, "italian_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "italian_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 198598618, "num_examples": 583316, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/italian/deletions.tsv.gz": {"num_bytes": 49048596, "checksum": "a07ea38e1c75829425ee2f659200b0f9dcd9c99efaada47b7e8b6d0a73069ecb"}}, "download_size": 49048596, "post_processing_size": null, "dataset_size": 198598618, "size_in_bytes": 247647214}, "japanese_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "japanese_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 765754162, "num_examples": 2249527, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/japanese/insertions.tsv.gz": {"num_bytes": 185766012, "checksum": "8364c6d586d38b19df5cc4c5cd979245891e057191ccca7961628610459a6f07"}}, "download_size": 185766012, "post_processing_size": null, "dataset_size": 765754162, "size_in_bytes": 951520174}, "japanese_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "japanese_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 459683880, "num_examples": 1352162, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/japanese/deletions.tsv.gz": {"num_bytes": 110513593, "checksum": "91318be4d6104ea2aec03a83260829ff7a789170f32151be8fe1346a6de2e269"}}, "download_size": 110513593, "post_processing_size": null, "dataset_size": 459683880, "size_in_bytes": 570197473}, "russian_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "russian_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 790822192, "num_examples": 1471638, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/russian/insertions.tsv.gz": {"num_bytes": 152985812, "checksum": "7aca9a98d2eded5954ec71ebf6946b5ad400fd225ebc8459846f9201b326bf6f"}}, "download_size": 152985812, "post_processing_size": null, "dataset_size": 790822192, "size_in_bytes": 943808004}, "russian_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "russian_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 514750186, "num_examples": 960976, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/russian/deletions.tsv.gz": {"num_bytes": 100033230, "checksum": "3d39a82c28c1bdc02d089a2de8f65537f1e38130b2d09f4095eb9e0a4177f65f"}}, "download_size": 100033230, "post_processing_size": null, "dataset_size": 514750186, "size_in_bytes": 614783416}, "chinese_insertions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "chinese_insertions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 233367646, "num_examples": 746509, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/chinese/insertions.tsv.gz": {"num_bytes": 66124094, "checksum": "cf16ca81a42050ffd30b219df8733d41e912ef278aae71cebac693703ecacb0d"}}, "download_size": 66124094, "post_processing_size": null, "dataset_size": 233367646, "size_in_bytes": 299491740}, "chinese_deletions": {"description": "A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.\n\nAn atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.\n", "citation": "@InProceedings{WikiAtomicEdits,\n title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},\n author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},\n booktitle = {Proc. of EMNLP},\n year = {2018}\n}\n", "homepage": "https://github.com/google-research-datasets/wiki-atomic-edits", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "base_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "phrase": {"dtype": "string", "id": null, "_type": "Value"}, "edited_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_atomic_edits", "config_name": "chinese_deletions", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 144269112, "num_examples": 467271, "dataset_name": "wiki_atomic_edits"}}, "download_checksums": {"https://storage.googleapis.com/wiki-atomic-edits/chinese/deletions.tsv.gz": {"num_bytes": 40898651, "checksum": "21bbf732efa130f994c8b9657d3d404a4672b2006c19a553c31f3e0864eca124"}}, "download_size": 40898651, "post_processing_size": null, "dataset_size": 144269112, "size_in_bytes": 185167763}}
dummy/chinese_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2558ded17bfb31bc82953edd5cf6751f1b774c9ce6143e017b4f1d78fca9cad9
3
+ size 834
dummy/chinese_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c428a9fd3aed336cf3204b089e086393597c1adefdb387d9a55938b2d2231e
3
+ size 854
dummy/english_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73a5f2aacfd7f919077b15dd11425d81879101d046108226445eaf08889c6560
3
+ size 759
dummy/english_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2bb339f9775206c4917a3309350366f9175f463a76d8783f1d33a9ce7ddae88
3
+ size 709
dummy/french_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03239b2f0857f86e3341852d28683e20eaf01a84e7b974ade396a48c95218568
3
+ size 737
dummy/french_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93e3afd55b5d1a6d1c8a741d1079f6e89e03bc1aab3b478daae7f2c1c1ed688d
3
+ size 791
dummy/german_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d929986292cfbe70a5e38ef2b2aeef304b689e2344c2952e6900cbf3c55423a7
3
+ size 888
dummy/german_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b78ea68b410854c07413a535184a72ad53bf1214dbca0e1d668ffc77cfee8e52
3
+ size 763
dummy/italian_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b359e7f03e5f104dc614c065a811b4da4919bd5d5f912f7b59fa39730a7d4ba
3
+ size 767
dummy/italian_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0209ace4d7e685068c9b17149a94771793e1e99da22d4afaa7cb952c61fd355
3
+ size 770
dummy/japanese_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:062a4d2cfe4da43757941629ad9abec8d54f12e37fefcf6ddf5cb30efb5f122d
3
+ size 799
dummy/japanese_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:385730a716843d864b48329e3e77da4c633a135930f9b9c641f6c30dc8d20af7
3
+ size 684
dummy/russian_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e6bfdcae2427b2139cbc9b0d9fa1d7ac05e61d6f622d69e1fa463b92b8b2214
3
+ size 989
dummy/russian_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0306b20527c681109d1d657c58c34a975dacf2ec75879c55b2c7ce56279860b
3
+ size 1083
dummy/spanish_deletions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a2fcaf7aada42ed0d88ea211659f8b9d68275d96aaf67eab0dd8509f35175e9
3
+ size 821
dummy/spanish_insertions/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f95545f6c49e09d6841f4f777a77f724c771189236a01d789e8c11a6c92df0b
3
+ size 787
wiki_atomic_edits.py ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 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
+ import datasets
18
+
19
+
20
+ _CITATION = """\
21
+ @InProceedings{WikiAtomicEdits,
22
+ title = {{WikiAtomicEdits: A Multilingual Corpus of Wikipedia Edits for Modeling Language and Discourse}},
23
+ author = {Faruqui, Manaal and Pavlick, Ellie and Tenney, Ian and Das, Dipanjan},
24
+ booktitle = {Proc. of EMNLP},
25
+ year = {2018}
26
+ }
27
+ """
28
+
29
+ _DESCRIPTION = """\
30
+ A dataset of atomic wikipedia edits containing insertions and deletions of a contiguous chunk of text in a sentence. This dataset contains ~43 million edits across 8 languages.
31
+
32
+ An atomic edit is defined as an edit e applied to a natural language expression S as the insertion, deletion, or substitution of a sub-expression P such that both the original expression S and the resulting expression e(S) are well-formed semantic constituents (MacCartney, 2009). In this corpus, we release such atomic insertions and deletions made to sentences in wikipedia.
33
+ """
34
+
35
+ _HOMEPAGE = "https://github.com/google-research-datasets/wiki-atomic-edits"
36
+ _VERSION = "1.0.0"
37
+
38
+ _URL = {
39
+ "german": {
40
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/german/insertions.tsv.gz",
41
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/german/deletions.tsv.gz",
42
+ },
43
+ "english": {
44
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/english/insertions.tsv.gz",
45
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/english/deletions.tsv.gz",
46
+ },
47
+ "spanish": {
48
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/spanish/insertions.tsv.gz",
49
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/spanish/deletions.tsv.gz",
50
+ },
51
+ "french": {
52
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/french/insertions.tsv.gz",
53
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/french/deletions.tsv.gz",
54
+ },
55
+ "italian": {
56
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/italian/insertions.tsv.gz",
57
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/italian/deletions.tsv.gz",
58
+ },
59
+ "japanese": {
60
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/japanese/insertions.tsv.gz",
61
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/japanese/deletions.tsv.gz",
62
+ },
63
+ "russian": {
64
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/russian/insertions.tsv.gz",
65
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/russian/deletions.tsv.gz",
66
+ },
67
+ "chinese": {
68
+ "insertions": "https://storage.googleapis.com/wiki-atomic-edits/chinese/insertions.tsv.gz",
69
+ "deletions": "https://storage.googleapis.com/wiki-atomic-edits/chinese/deletions.tsv.gz",
70
+ },
71
+ }
72
+
73
+ _LANG_EDITS = [
74
+ ("german", "insertions"),
75
+ ("german", "deletions"),
76
+ ("english", "insertions"),
77
+ ("english", "deletions"),
78
+ ("spanish", "insertions"),
79
+ ("spanish", "deletions"),
80
+ ("french", "insertions"),
81
+ ("french", "deletions"),
82
+ ("italian", "insertions"),
83
+ ("italian", "deletions"),
84
+ ("japanese", "insertions"),
85
+ ("japanese", "deletions"),
86
+ ("russian", "insertions"),
87
+ ("russian", "deletions"),
88
+ ("chinese", "insertions"),
89
+ ("chinese", "deletions"),
90
+ ]
91
+
92
+
93
+ class WikiAtomicEditsConfig(datasets.BuilderConfig):
94
+ def __init__(self, *args, language=None, edit_type=None, **kwargs):
95
+ super().__init__(*args, **kwargs)
96
+ self.language = language
97
+ self.edit_type = edit_type
98
+
99
+
100
+ class WikiAtomicEdits(datasets.GeneratorBasedBuilder):
101
+ BUILDER_CONFIGS = [
102
+ WikiAtomicEditsConfig(
103
+ name=f"{lang}_{edit_type}",
104
+ language=lang,
105
+ edit_type=edit_type,
106
+ description=f"Language: {lang}, Edit type: {edit_type}",
107
+ version=datasets.Version(_VERSION),
108
+ )
109
+ for lang, edit_type in _LANG_EDITS
110
+ ]
111
+ BUILDER_CONFIG_CLASS = WikiAtomicEditsConfig
112
+
113
+ def _info(self):
114
+ return datasets.DatasetInfo(
115
+ description=_DESCRIPTION,
116
+ features=datasets.Features(
117
+ {
118
+ "id": datasets.Value("int32"),
119
+ "base_sentence": datasets.Value("string"),
120
+ "phrase": datasets.Value("string"),
121
+ "edited_sentence": datasets.Value("string"),
122
+ }
123
+ ),
124
+ supervised_keys=None,
125
+ homepage=_HOMEPAGE,
126
+ citation=_CITATION,
127
+ )
128
+
129
+ def _split_generators(self, dl_manager):
130
+ datapath = dl_manager.download_and_extract(_URL[self.config.language][self.config.edit_type])
131
+
132
+ return [
133
+ datasets.SplitGenerator(
134
+ name=datasets.Split.TRAIN,
135
+ gen_kwargs={"datapath": datapath},
136
+ )
137
+ ]
138
+
139
+ def _generate_examples(self, datapath):
140
+ with open(datapath, "r", encoding="utf-8") as data_file:
141
+ next(data_file)
142
+ for sentence_counter, sent in enumerate(data_file):
143
+ sent = sent.split("\t")
144
+ res = {
145
+ "id": sentence_counter,
146
+ "base_sentence": sent[0],
147
+ "phrase": sent[1],
148
+ "edited_sentence": sent[2],
149
+ }
150
+ yield sentence_counter, res