Datasets:
Tasks:
Text2Text Generation
Sub-tasks:
text-simplification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Update files from the datasets library (from 1.17.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.17.0
- README.md +7 -7
- dataset_infos.json +1 -1
- dummy/manual/1.0.0/dummy_data.zip +2 -2
- wiki_auto.py +10 -6
README.md
CHANGED
@@ -86,18 +86,17 @@ The data in all of the configurations looks a little different.
|
|
86 |
A `manual` config instance consists of a sentence from the Simple English Wikipedia article, one from the linked English Wikipedia article, IDs for each of them, and a label indicating whether they are aligned. Sentences on either side can be repeated so that the aligned sentences are in the same instances. For example:
|
87 |
```
|
88 |
{'alignment_label': 1,
|
89 |
-
'normal_sentence': 'The Local Government Act 1985 is an Act of Parliament in the United Kingdom.',
|
90 |
'normal_sentence_id': '0_66252-1-0-0',
|
91 |
-
'
|
92 |
-
'
|
93 |
```
|
94 |
Is followed by
|
95 |
```
|
96 |
{'alignment_label': 0,
|
97 |
-
'normal_sentence': 'Its main effect was to abolish the six county councils of the metropolitan counties that had been set up in 1974, 11 years earlier, by the Local Government Act 1972, along with the Greater London Council that had been established in 1965.',
|
98 |
'normal_sentence_id': '0_66252-1-0-1',
|
99 |
-
'
|
100 |
-
'
|
|
|
101 |
```
|
102 |
|
103 |
The `auto` config shows a pair of an English and corresponding Simple English Wikipedia as an instance, with an alignment at the paragraph and sentence level:
|
@@ -146,9 +145,10 @@ The data has the following field:
|
|
146 |
- `normal_sentence_id`: a unique ID for each English Wikipedia sentence. The last two dash-separated numbers correspond to the paragraph number in the article and the sentence number in the paragraph.
|
147 |
- `simple_sentence`: a sentence from Simple English Wikipedia.
|
148 |
- `simple_sentence_id`: a unique ID for each Simple English Wikipedia sentence. The last two dash-separated numbers correspond to the paragraph number in the article and the sentence number in the paragraph.
|
149 |
-
- `alignment_label`: signifies whether a pair of sentences is aligned: labels are `1:aligned` and `0:notAligned`
|
150 |
- `paragraph_alignment`: a first step of alignment mapping English and Simple English paragraphs from linked articles
|
151 |
- `sentence_alignment`: the full alignment mapping English and Simple English sentences from linked articles
|
|
|
152 |
|
153 |
### Data Splits
|
154 |
|
|
|
86 |
A `manual` config instance consists of a sentence from the Simple English Wikipedia article, one from the linked English Wikipedia article, IDs for each of them, and a label indicating whether they are aligned. Sentences on either side can be repeated so that the aligned sentences are in the same instances. For example:
|
87 |
```
|
88 |
{'alignment_label': 1,
|
|
|
89 |
'normal_sentence_id': '0_66252-1-0-0',
|
90 |
+
'simple_sentence_id': '0_66252-0-0-0',
|
91 |
+
'normal_sentence': 'The Local Government Act 1985 is an Act of Parliament in the United Kingdom.', 'simple_sentence': 'The Local Government Act 1985 was an Act of Parliament in the United Kingdom', 'gleu_score': 0.800000011920929}
|
92 |
```
|
93 |
Is followed by
|
94 |
```
|
95 |
{'alignment_label': 0,
|
|
|
96 |
'normal_sentence_id': '0_66252-1-0-1',
|
97 |
+
'simple_sentence_id': '0_66252-0-0-0',
|
98 |
+
'normal_sentence': 'Its main effect was to abolish the six county councils of the metropolitan counties that had been set up in 1974, 11 years earlier, by the Local Government Act 1972, along with the Greater London Council that had been established in 1965.',
|
99 |
+
'simple_sentence': 'The Local Government Act 1985 was an Act of Parliament in the United Kingdom', 'gleu_score': 0.08641975373029709}
|
100 |
```
|
101 |
|
102 |
The `auto` config shows a pair of an English and corresponding Simple English Wikipedia as an instance, with an alignment at the paragraph and sentence level:
|
|
|
145 |
- `normal_sentence_id`: a unique ID for each English Wikipedia sentence. The last two dash-separated numbers correspond to the paragraph number in the article and the sentence number in the paragraph.
|
146 |
- `simple_sentence`: a sentence from Simple English Wikipedia.
|
147 |
- `simple_sentence_id`: a unique ID for each Simple English Wikipedia sentence. The last two dash-separated numbers correspond to the paragraph number in the article and the sentence number in the paragraph.
|
148 |
+
- `alignment_label`: signifies whether a pair of sentences is aligned: labels are `2:partialAligned`, `1:aligned` and `0:notAligned`
|
149 |
- `paragraph_alignment`: a first step of alignment mapping English and Simple English paragraphs from linked articles
|
150 |
- `sentence_alignment`: the full alignment mapping English and Simple English sentences from linked articles
|
151 |
+
- `gleu_score`: the sentence level GLEU (Google-BLEU) score for each pair.
|
152 |
|
153 |
### Data Splits
|
154 |
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"manual": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"alignment_label": {"num_classes": 2, "names": ["notAligned", "aligned"], "names_file": null, "id": null, "_type": "ClassLabel"}, "normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_auto", "config_name": "manual", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 109343271, "num_examples": 373801, "dataset_name": "wiki_auto"}, "dev": {"name": "dev", "num_bytes": 20819779, "num_examples": 73249, "dataset_name": "wiki_auto"}, "test": {"name": "test", "num_bytes": 33379338, "num_examples": 118074, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv": {"num_bytes": 106346588, "checksum": "82fa388de3ded6d303b95fcd11ba70e0b6158d2df1cbf24913bb54503bd32e95"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/dev.tsv": {"num_bytes": 20232621, "checksum": "c56a9d2a739f9da83f90c54e266e1d60dd036cb80c463f118cb55613232e2e41"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/test.tsv": {"num_bytes": 32432523, "checksum": "ab8b818b0eeb7aa7712d244ee0ea16cfd915a896c40f02a34a808b597a5e68a0"}}, "download_size": 159011732, "post_processing_size": null, "dataset_size": 163542388, "size_in_bytes": 322554120}, "auto_acl": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_auto", "config_name": "auto_acl", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 121975414, "num_examples": 488332, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/ACL2020/train.src": {"num_bytes": 70209062, "checksum": "02141edbb735be50c9942f5e0bced4528dc8d844753d46a1f3bdf0b6e550c0e6"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/ACL2020/train.dst": {"num_bytes": 47859304, "checksum": "d9e2106722e2e29f34d5d9b697c236b38e920724727cefb71f42072dd9fd8807"}}, "download_size": 118068366, "post_processing_size": null, "dataset_size": 121975414, "size_in_bytes": 240043780}, "auto": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"example_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal": {"normal_article_id": {"dtype": "int32", "id": null, "_type": "Value"}, "normal_article_title": {"dtype": "string", "id": null, "_type": "Value"}, "normal_article_url": {"dtype": "string", "id": null, "_type": "Value"}, "normal_article_content": {"feature": {"normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "simple": {"simple_article_id": {"dtype": "int32", "id": null, "_type": "Value"}, "simple_article_title": {"dtype": "string", "id": null, "_type": "Value"}, "simple_article_url": {"dtype": "string", "id": null, "_type": "Value"}, "simple_article_content": {"feature": {"simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "paragraph_alignment": {"feature": {"normal_paragraph_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_paragraph_id": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}, "sentence_alignment": {"feature": {"normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_auto", "config_name": "auto", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"part_1": {"name": "part_1", "num_bytes": 1773240295, "num_examples": 125059, "dataset_name": "wiki_auto"}, "part_2": {"name": "part_2", "num_bytes": 80417651, "num_examples": 13036, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/all_data/wiki-auto-part-1-data.json": {"num_bytes": 2067424750, "checksum": "136d8e113a773d3669228a57cae733fca079954daf0b3514505410c66d1a69b6"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/all_data/wiki-auto-part-2-data.json": {"num_bytes": 93214171, "checksum": "94b33a11447c121a0ce7293de20fb969c36d8a62b31afc5873a4174ed17a1d4e"}}, "download_size": 2160638921, "post_processing_size": null, "dataset_size": 1853657946, "size_in_bytes": 4014296867}, "auto_full_no_split": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_auto", "config_name": "auto_full_no_split", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 146310611, "num_examples": 591994, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_no_split/train.src": {"num_bytes": 86028898, "checksum": "48d820fc1e7bd7121edde04a2aedf62bb9069b9caed01b77b7cb3852cc6b33d0"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_no_split/train.dst": {"num_bytes": 55545281, "checksum": "37b373c5ee8c3f4b844c9896f07fb6bb55a20a3d4a8e1a6b06a651b87a653415"}}, "download_size": 141574179, "post_processing_size": null, "dataset_size": 146310611, "size_in_bytes": 287884790}, "auto_full_with_split": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wiki_auto", "config_name": "auto_full_with_split", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 124549115, "num_examples": 483801, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.src": {"num_bytes": 67389841, "checksum": "f70dd6083bf679254dfd6c1e14960ad2b526bc35596d9c87b0c636c0285ce8ac"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.dst": {"num_bytes": 53288474, "checksum": "74529cfc316c8a3ed7720f87e25d0758620e0e838a5747ec4a1bbdccef018f75"}}, "download_size": 120678315, "post_processing_size": null, "dataset_size": 124549115, "size_in_bytes": 245227430}}
|
|
|
1 |
+
{"manual": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"alignment_label": {"num_classes": 3, "names": ["notAligned", "aligned", "partialAligned"], "names_file": null, "id": null, "_type": "ClassLabel"}, "normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "gleu_score": {"dtype": "float32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wiki_auto", "config_name": "manual", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 110838475, "num_examples": 373801, "dataset_name": "wiki_auto"}, "dev": {"name": "dev", "num_bytes": 21112775, "num_examples": 73249, "dataset_name": "wiki_auto"}, "test": {"name": "test", "num_bytes": 33851634, "num_examples": 118074, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://www.dropbox.com/sh/ohqaw41v48c7e5p/AACdl4UPKtu7CMMa-CJhz4G7a/wiki-manual/train.tsv?dl=1": {"num_bytes": 112892529, "checksum": "30726cd56bbd6b1fb02f057455e4b26f9e2cb94093064a6ed23bac07e4ab2ea3"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/dev.tsv": {"num_bytes": 21534366, "checksum": "8625b81baa7f0b0060f00781974633458016a81352a15b8398f6740a763b4cd8"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/test.tsv": {"num_bytes": 34530535, "checksum": "fd427cd0d2c2f268d12c15108041822f6b41c4041d07145ddf5711e03367dfba"}}, "download_size": 168957430, "post_processing_size": null, "dataset_size": 165802884, "size_in_bytes": 334760314}, "auto_acl": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wiki_auto", "config_name": "auto_acl", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 121975414, "num_examples": 488332, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/ACL2020/train.src": {"num_bytes": 70209062, "checksum": "02141edbb735be50c9942f5e0bced4528dc8d844753d46a1f3bdf0b6e550c0e6"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/ACL2020/train.dst": {"num_bytes": 47859304, "checksum": "d9e2106722e2e29f34d5d9b697c236b38e920724727cefb71f42072dd9fd8807"}}, "download_size": 118068366, "post_processing_size": null, "dataset_size": 121975414, "size_in_bytes": 240043780}, "auto": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"example_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal": {"normal_article_id": {"dtype": "int32", "id": null, "_type": "Value"}, "normal_article_title": {"dtype": "string", "id": null, "_type": "Value"}, "normal_article_url": {"dtype": "string", "id": null, "_type": "Value"}, "normal_article_content": {"feature": {"normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "simple": {"simple_article_id": {"dtype": "int32", "id": null, "_type": "Value"}, "simple_article_title": {"dtype": "string", "id": null, "_type": "Value"}, "simple_article_url": {"dtype": "string", "id": null, "_type": "Value"}, "simple_article_content": {"feature": {"simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "paragraph_alignment": {"feature": {"normal_paragraph_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_paragraph_id": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}, "sentence_alignment": {"feature": {"normal_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence_id": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wiki_auto", "config_name": "auto", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"part_1": {"name": "part_1", "num_bytes": 1773240295, "num_examples": 125059, "dataset_name": "wiki_auto"}, "part_2": {"name": "part_2", "num_bytes": 80417651, "num_examples": 13036, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://www.dropbox.com/sh/ohqaw41v48c7e5p/AAATBDhU1zpdcT5x5WgO8DMaa/wiki-auto-all-data/wiki-auto-part-1-data.json?dl=1": {"num_bytes": 2067424750, "checksum": "136d8e113a773d3669228a57cae733fca079954daf0b3514505410c66d1a69b6"}, "https://www.dropbox.com/sh/ohqaw41v48c7e5p/AAATgPkjo_tPt9z12vZxJ3MRa/wiki-auto-all-data/wiki-auto-part-2-data.json?dl=1": {"num_bytes": 93214171, "checksum": "94b33a11447c121a0ce7293de20fb969c36d8a62b31afc5873a4174ed17a1d4e"}}, "download_size": 2160638921, "post_processing_size": null, "dataset_size": 1853657946, "size_in_bytes": 4014296867}, "auto_full_no_split": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wiki_auto", "config_name": "auto_full_no_split", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 146310611, "num_examples": 591994, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_no_split/train.src": {"num_bytes": 86028898, "checksum": "48d820fc1e7bd7121edde04a2aedf62bb9069b9caed01b77b7cb3852cc6b33d0"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_no_split/train.dst": {"num_bytes": 55545281, "checksum": "37b373c5ee8c3f4b844c9896f07fb6bb55a20a3d4a8e1a6b06a651b87a653415"}}, "download_size": 141574179, "post_processing_size": null, "dataset_size": 146310611, "size_in_bytes": 287884790}, "auto_full_with_split": {"description": "WikiAuto provides a set of aligned sentences from English Wikipedia and Simple English Wikipedia\nas a resource to train sentence simplification systems. The authors first crowd-sourced a set of manual alignments\nbetween sentences in a subset of the Simple English Wikipedia and their corresponding versions in English Wikipedia\n(this corresponds to the `manual` config), then trained a neural CRF system to predict these alignments.\nThe trained model was then applied to the other articles in Simple English Wikipedia with an English counterpart to\ncreate a larger corpus of aligned sentences (corresponding to the `auto`, `auto_acl`, `auto_full_no_split`, and `auto_full_with_split` configs here).\n", "citation": "@inproceedings{acl/JiangMLZX20,\n author = {Chao Jiang and\n Mounica Maddela and\n Wuwei Lan and\n Yang Zhong and\n Wei Xu},\n editor = {Dan Jurafsky and\n Joyce Chai and\n Natalie Schluter and\n Joel R. Tetreault},\n title = {Neural {CRF} Model for Sentence Alignment in Text Simplification},\n booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational\n Linguistics, {ACL} 2020, Online, July 5-10, 2020},\n pages = {7943--7960},\n publisher = {Association for Computational Linguistics},\n year = {2020},\n url = {https://www.aclweb.org/anthology/2020.acl-main.709/}\n}\n", "homepage": "https://github.com/chaojiang06/wiki-auto", "license": "CC-BY-SA 3.0", "features": {"normal_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "simple_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wiki_auto", "config_name": "auto_full_with_split", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"full": {"name": "full", "num_bytes": 124549115, "num_examples": 483801, "dataset_name": "wiki_auto"}}, "download_checksums": {"https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.src": {"num_bytes": 67389841, "checksum": "f70dd6083bf679254dfd6c1e14960ad2b526bc35596d9c87b0c636c0285ce8ac"}, "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.dst": {"num_bytes": 53288474, "checksum": "74529cfc316c8a3ed7720f87e25d0758620e0e838a5747ec4a1bbdccef018f75"}}, "download_size": 120678315, "post_processing_size": null, "dataset_size": 124549115, "size_in_bytes": 245227430}}
|
dummy/manual/1.0.0/dummy_data.zip
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7f9712718145ba7197e38d9cf31a73db59a2d92d31bd8b6dca684643cc405f4
|
3 |
+
size 2043
|
wiki_auto.py
CHANGED
@@ -60,7 +60,7 @@ _LICENSE = "CC-BY-SA 3.0"
|
|
60 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
61 |
_URLs = {
|
62 |
"manual": {
|
63 |
-
"train": "https://
|
64 |
"dev": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/dev.tsv",
|
65 |
"test": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/test.tsv",
|
66 |
},
|
@@ -77,8 +77,8 @@ _URLs = {
|
|
77 |
"simple": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.dst",
|
78 |
},
|
79 |
"auto": {
|
80 |
-
"part_1": "https://
|
81 |
-
"part_2": "https://
|
82 |
},
|
83 |
}
|
84 |
|
@@ -121,11 +121,12 @@ class WikiAuto(datasets.GeneratorBasedBuilder):
|
|
121 |
if self.config.name == "manual": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
122 |
features = datasets.Features(
|
123 |
{
|
124 |
-
"alignment_label": datasets.ClassLabel(names=["notAligned", "aligned"]),
|
125 |
"normal_sentence_id": datasets.Value("string"),
|
126 |
"simple_sentence_id": datasets.Value("string"),
|
127 |
"normal_sentence": datasets.Value("string"),
|
128 |
"simple_sentence": datasets.Value("string"),
|
|
|
129 |
}
|
130 |
)
|
131 |
elif (
|
@@ -218,12 +219,15 @@ class WikiAuto(datasets.GeneratorBasedBuilder):
|
|
218 |
"normal_sentence_id",
|
219 |
"simple_sentence",
|
220 |
"normal_sentence",
|
|
|
221 |
]
|
222 |
with open(filepaths[split], encoding="utf-8") as f:
|
223 |
for id_, line in enumerate(f):
|
224 |
values = line.strip().split("\t")
|
225 |
-
assert len(values) ==
|
226 |
-
yield id_, dict(
|
|
|
|
|
227 |
elif (
|
228 |
self.config.name == "auto_acl"
|
229 |
or self.config.name == "auto_full_no_split"
|
|
|
60 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
61 |
_URLs = {
|
62 |
"manual": {
|
63 |
+
"train": "https://www.dropbox.com/sh/ohqaw41v48c7e5p/AACdl4UPKtu7CMMa-CJhz4G7a/wiki-manual/train.tsv?dl=1",
|
64 |
"dev": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/dev.tsv",
|
65 |
"test": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/test.tsv",
|
66 |
},
|
|
|
77 |
"simple": "https://github.com/chaojiang06/wiki-auto/raw/master/wiki-auto/GEM2021/full_with_split/train.dst",
|
78 |
},
|
79 |
"auto": {
|
80 |
+
"part_1": "https://www.dropbox.com/sh/ohqaw41v48c7e5p/AAATBDhU1zpdcT5x5WgO8DMaa/wiki-auto-all-data/wiki-auto-part-1-data.json?dl=1",
|
81 |
+
"part_2": "https://www.dropbox.com/sh/ohqaw41v48c7e5p/AAATgPkjo_tPt9z12vZxJ3MRa/wiki-auto-all-data/wiki-auto-part-2-data.json?dl=1",
|
82 |
},
|
83 |
}
|
84 |
|
|
|
121 |
if self.config.name == "manual": # This is the name of the configuration selected in BUILDER_CONFIGS above
|
122 |
features = datasets.Features(
|
123 |
{
|
124 |
+
"alignment_label": datasets.ClassLabel(names=["notAligned", "aligned", "partialAligned"]),
|
125 |
"normal_sentence_id": datasets.Value("string"),
|
126 |
"simple_sentence_id": datasets.Value("string"),
|
127 |
"normal_sentence": datasets.Value("string"),
|
128 |
"simple_sentence": datasets.Value("string"),
|
129 |
+
"gleu_score": datasets.Value("float32"),
|
130 |
}
|
131 |
)
|
132 |
elif (
|
|
|
219 |
"normal_sentence_id",
|
220 |
"simple_sentence",
|
221 |
"normal_sentence",
|
222 |
+
"gleu_score",
|
223 |
]
|
224 |
with open(filepaths[split], encoding="utf-8") as f:
|
225 |
for id_, line in enumerate(f):
|
226 |
values = line.strip().split("\t")
|
227 |
+
assert len(values) == 6, f"Not enough fields in ---- {line} --- {values}"
|
228 |
+
yield id_, dict(
|
229 |
+
[(k, val) if k != "gleu_score" else (k, float(val)) for k, val in zip(keys, values)]
|
230 |
+
)
|
231 |
elif (
|
232 |
self.config.name == "auto_acl"
|
233 |
or self.config.name == "auto_full_no_split"
|