diff --git a/.gitattributes b/.gitattributes index bd22570f3bfab06965e86ab3fc867e5ba5b4959b..9b82fd1add505a883a7a9d4891286aaea0b68e52 100644 --- a/.gitattributes +++ b/.gitattributes @@ -35,3 +35,52 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.mp3 filter=lfs diff=lfs merge=lfs -text *.ogg filter=lfs diff=lfs merge=lfs -text *.wav filter=lfs diff=lfs merge=lfs -text +*.jsonl filter=lfs diff=lfs merge=lfs -text +train/cs.jsonl filter=lfs diff=lfs merge=lfs -text +train/de-cs.jsonl filter=lfs diff=lfs merge=lfs -text +train/de-fr.jsonl filter=lfs diff=lfs merge=lfs -text +train/en-de.jsonl filter=lfs diff=lfs merge=lfs -text +train/en-fr.jsonl filter=lfs diff=lfs merge=lfs -text +train/fr-de.jsonl filter=lfs diff=lfs merge=lfs -text +train/fr_en.jsonl filter=lfs diff=lfs merge=lfs -text +train/cs_en.jsonl filter=lfs diff=lfs merge=lfs -text +train/fr-cs.jsonl filter=lfs diff=lfs merge=lfs -text +train/de.jsonl filter=lfs diff=lfs merge=lfs -text +train/fr.jsonl filter=lfs diff=lfs merge=lfs -text +train/cs-de.jsonl filter=lfs diff=lfs merge=lfs -text +train/de_en.jsonl filter=lfs diff=lfs merge=lfs -text +train/en-cs.jsonl filter=lfs diff=lfs merge=lfs -text +train/en.jsonl filter=lfs diff=lfs merge=lfs -text +train/cs-fr.jsonl filter=lfs diff=lfs merge=lfs -text +valid/de.jsonl filter=lfs diff=lfs merge=lfs -text +valid/en-cs.jsonl filter=lfs diff=lfs merge=lfs -text +valid/en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/fr-de.jsonl filter=lfs diff=lfs merge=lfs -text +valid/fr_en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/cs-de.jsonl filter=lfs diff=lfs merge=lfs -text +valid/cs.jsonl filter=lfs diff=lfs merge=lfs -text +valid/de-cs.jsonl filter=lfs diff=lfs merge=lfs -text +valid/fr.jsonl filter=lfs diff=lfs merge=lfs -text +valid/cs_en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/de-fr.jsonl filter=lfs diff=lfs merge=lfs -text +valid/en-de.jsonl filter=lfs diff=lfs merge=lfs -text +valid/de_en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/en-fr.jsonl filter=lfs diff=lfs merge=lfs -text +valid/fr-cs.jsonl filter=lfs diff=lfs merge=lfs -text +valid/cs-fr.jsonl filter=lfs diff=lfs merge=lfs -text +test/cs_en.jsonl filter=lfs diff=lfs merge=lfs -text +test/de_en.jsonl filter=lfs diff=lfs merge=lfs -text +test/en.jsonl filter=lfs diff=lfs merge=lfs -text +test/fr_en.jsonl filter=lfs diff=lfs merge=lfs -text +train/cs-en.jsonl filter=lfs diff=lfs merge=lfs -text +train/de-en.jsonl filter=lfs diff=lfs merge=lfs -text +train/fr-en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/fr-en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/cs-en.jsonl filter=lfs diff=lfs merge=lfs -text +valid/de-en.jsonl filter=lfs diff=lfs merge=lfs -text +test/cs-en.jsonl filter=lfs diff=lfs merge=lfs -text +test/cs.jsonl filter=lfs diff=lfs merge=lfs -text +test/de-en.jsonl filter=lfs diff=lfs merge=lfs -text +test/de.jsonl filter=lfs diff=lfs merge=lfs -text +test/fr-en.jsonl filter=lfs diff=lfs merge=lfs -text +test/fr.jsonl filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c3c9e257df3f5c93929194179ae477fb8c7e6fa7 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,405 @@ +--- +annotations_creators: +- found +language_creators: +- unknown +language: +- de +- en +- fr +- cs +license: +- cc-by-sa-4.0 +multilinguality: +- unknown +pretty_name: xwikis +size_categories: +- unknown +source_datasets: +- original +task_categories: +- summarization +task_ids: +- unknown +--- + +# Dataset Card for GEM/xwikis + +## Dataset Description + +- **Homepage:** https://github.com/lauhaide/clads +- **Repository:** [Needs More Information] +- **Paper:** https://arxiv.org/abs/2202.09583 +- **Leaderboard:** N/A +- **Point of Contact:** Laura Perez-Beltrachini + +### Link to Main Data Card + +You can find the main data card on the [GEM Website](https://gem-benchmark.com/data_cards/xwikis). + +### Dataset Summary + +The XWikis Corpus provides datasets with different language pairs and directions for cross-lingual and multi-lingual abstractive document summarisation. + +You can load the dataset via: +``` +import datasets +data = datasets.load_dataset('GEM/xwikis') +``` +The data loader can be found [here](https://huggingface.co/datasets/GEM/xwikis). + +#### website +[Github](https://github.com/lauhaide/clads) + +#### paper +https://arxiv.org/abs/2202.09583 + +#### authors +Laura Perez-Beltrachini (University of Edinburgh) + +## Dataset Overview + +### Where to find the Data and its Documentation + +#### Webpage + + + +[Github](https://github.com/lauhaide/clads) + +#### Paper + + + +https://arxiv.org/abs/2202.09583 + +#### BibTex + + + +``` +@InProceedings{clads-emnlp, + author = "Laura Perez-Beltrachini and Mirella Lapata", + title = "Models and Datasets for Cross-Lingual Summarisation", + booktitle = "Proceedings of The 2021 Conference on Empirical Methods in Natural Language Processing ", + year = "2021", + address = "Punta Cana, Dominican Republic", +} +``` + +#### Contact Name + + + + +Laura Perez-Beltrachini + +#### Contact Email + + + +lperez@ed.ac.uk + +#### Has a Leaderboard? + + + +no + + +### Languages and Intended Use + +#### Multilingual? + + + + +yes + +#### Covered Languages + + + + +`German`, `English`, `French`, `Czech` + +#### License + + + + +cc-by-sa-4.0: Creative Commons Attribution Share Alike 4.0 International + +#### Intended Use + + + +Cross-lingual and Multi-lingual single long input document abstractive summarisation. + +#### Primary Task + + + +Summarization + +#### Communicative Goal + + + + +Entity descriptive summarisation, that is, generate a summary that conveys the most salient facts of a document related to a given entity. + + +### Credit + +#### Curation Organization Type(s) + + + +`academic` + +#### Dataset Creators + + + +Laura Perez-Beltrachini (University of Edinburgh) + +#### Who added the Dataset to GEM? + + + +Laura Perez-Beltrachini (University of Edinburgh) and Ronald Cardenas (University of Edinburgh) + + +### Dataset Structure + +#### Data Splits + + + +For each language pair and direction there exists a train/valid/test split. +The test split is a sample of size 7k from the intersection of titles existing in the four languages (cs,fr,en,de). +Train/valid are randomly split. + + + +## Dataset in GEM + +### Rationale for Inclusion in GEM + +#### Similar Datasets + + + +no + + +### GEM-Specific Curation + +#### Modificatied for GEM? + + + +no + +#### Additional Splits? + + + +no + + +### Getting Started with the Task + + + + +## Previous Results + +### Previous Results + +#### Measured Model Abilities + + + +- identification of entity salient information +- translation +- multi-linguality +- cross-lingual transfer, zero-shot, few-shot + +#### Metrics + + + +`ROUGE` + +#### Previous results available? + + + +yes + +#### Other Evaluation Approaches + + + +ROUGE-1/2/L + + + +## Dataset Curation + +### Original Curation + +#### Sourced from Different Sources + + + +no + + +### Language Data + +#### How was Language Data Obtained? + + + +`Found` + +#### Where was it found? + + + +`Single website` + +#### Data Validation + + + +other + +#### Was Data Filtered? + + + +not filtered + + +### Structured Annotations + +#### Additional Annotations? + + + + +found + +#### Annotation Service? + + + +no + +#### Annotation Values + + + +The input documents have section structure information. + +#### Any Quality Control? + + + +validated by another rater + +#### Quality Control Details + + + +Bilingual annotators assessed the content overlap of source document and target summaries. + + +### Consent + +#### Any Consent Policy? + + + +no + + +### Private Identifying Information (PII) + +#### Contains PII? + + + + +no PII + + +### Maintenance + +#### Any Maintenance Plan? + + + +no + + + +## Broader Social Context + +### Previous Work on the Social Impact of the Dataset + +#### Usage of Models based on the Data + + + +no + + +### Impact on Under-Served Communities + +#### Addresses needs of underserved Communities? + + + +no + + +### Discussion of Biases + +#### Any Documented Social Biases? + + + +no + + + +## Considerations for Using the Data + +### PII Risks and Liability + + + +### Licenses + +#### Copyright Restrictions on the Dataset + + + +`public domain` + +#### Copyright Restrictions on the Language Data + + + +`public domain` + + +### Known Technical Limitations + + + diff --git a/test/cs-en.jsonl b/test/cs-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d5f7cbed88569ce5aa6bbd5b49d8cb0e9d3a7808 --- /dev/null +++ b/test/cs-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d0b6905b7e3b9eae087c33fda4115d4b138d9a8831b0ff2e4e724d1fafa0cbd +size 39399122 diff --git a/test/cs.jsonl b/test/cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a45f33736eeaec3917928098666c509ea74bb2a4 --- /dev/null +++ b/test/cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c270bd2f5a6e95bf15290e2e35a0a9d8200abcedd550b27513e8407b6898cffd +size 36521079 diff --git a/test/cs_en.jsonl b/test/cs_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9d5cda3060b14f42b709c561f3a959b94ea7b555 --- /dev/null +++ b/test/cs_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e13b7a78a7960f41e3dd45cd15e4b9842df9f83bba9272c2f3a2849c0bc52ea3 +size 42085875 diff --git a/test/de-en.jsonl b/test/de-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..1df4e0705ef19c367311f8fdf38454dcf94213d8 --- /dev/null +++ b/test/de-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:644634b6bdc9a1f5e8ad52fad04c28d5ac6e03c1a813073811d357349bc4ef9f +size 56173731 diff --git a/test/de.jsonl b/test/de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f2f36bb500a0436f4f2326351396ae2aa93b91d2 --- /dev/null +++ b/test/de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e6e58b8f13d5c4269657451e89923e8cc3be32ba3e66eab8db398b9f8d680431 +size 53295688 diff --git a/test/de_en.jsonl b/test/de_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f0c0f854ecb8e7bfb96f9424af5a6b111036227b --- /dev/null +++ b/test/de_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df183b235addbf888f3f16434444c7a9c50c198efb2a328811d407a1d38a2645 +size 58723065 diff --git a/test/en.jsonl b/test/en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..83238831953426a5124e554ffc09d31560e9b4a8 --- /dev/null +++ b/test/en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbb194492633885f363ae65dc21c0e80c7d9b16b6bf6786f9fbd7174b07989a6 +size 38476708 diff --git a/test/fr-en.jsonl b/test/fr-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a0c7ea75f2c27801af8ec8f82e50dc6d09a58742 --- /dev/null +++ b/test/fr-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68410c5ebd8d9394de0f422817063ca9ad5356064afcc798d354c38e9de08d05 +size 49678041 diff --git a/test/fr.jsonl b/test/fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..43116884575a6da7b8ebbeb36ef2da8fc0fe3088 --- /dev/null +++ b/test/fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:897e4fd60fdd313d7b035927a9871f0a5ccff323298c59d0bcbc45a31f51cc4b +size 46803681 diff --git a/test/fr_en.jsonl b/test/fr_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4fae9d76ca5c0bf24949ec952689061b473d1ec6 --- /dev/null +++ b/test/fr_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb489853226029ff1e08c29608676fcec66fc125ed304a294e3c092e6c356413 +size 52859479 diff --git a/train/cs-de.jsonl b/train/cs-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9470e7463da9705c69201a472eaf47fcbb3c3158 --- /dev/null +++ b/train/cs-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b52a4e8169256bfac48b0130b0ec634fecee0f72dc6188c75610e9a0289ce71 +size 278411267 diff --git a/train/cs-en.jsonl b/train/cs-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c0c4ef734c91db9793e848efd88f8adf409d498a --- /dev/null +++ b/train/cs-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11fab58d179f9d04ec10c99476fec584cd3c366c88dd63acd7ac7220bd29e4cc +size 326863977 diff --git a/train/cs-fr.jsonl b/train/cs-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f5f09d710e4f2af8e39b5c4af5ce2b245dd32487 --- /dev/null +++ b/train/cs-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa1d37f13a219bc56e4a492350fb7e19cf24dcd4ad9480d90b757186c7464809 +size 270370787 diff --git a/train/cs.jsonl b/train/cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bb3eec1beedfd822653e8b087f1a9bf5ab984b59 --- /dev/null +++ b/train/cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd168bfa539021c5a7ccf35f52e9d164f94d190e0d2d410c843dbdc35bb38868 +size 380533503 diff --git a/train/cs_en.jsonl b/train/cs_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..1cef31cba925f92226d876f06c6cc7fcd0006fbf --- /dev/null +++ b/train/cs_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5191446861823e86668196d919289914fa10f32bc83aba70c6664ed5969cdacb +size 360579533 diff --git a/train/de-cs.jsonl b/train/de-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..dd0b0fd762fadf834525f1a5c9ec70391f1f582e --- /dev/null +++ b/train/de-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32ed1799c38bf7ede6cb24130048536e1cf71f2eae3a703412c4fbe918717e9f +size 822100689 diff --git a/train/de-en.jsonl b/train/de-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2e621d77a44d686ca474a05afe5747d900169034 --- /dev/null +++ b/train/de-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e59e3f1b0ac9ab233f1463935e55b6a63f73f310f8d6f55cb051ccab4714dee +size 2309270908 diff --git a/train/de-fr.jsonl b/train/de-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c09c3d5f2fef9c8a3faae483f44cf5a838940056 --- /dev/null +++ b/train/de-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c0a0b4ff8db67be76aab98d7d7f0a74bdbe963f1fdeb63279f512550021e6cf +size 1654673585 diff --git a/train/de.jsonl b/train/de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..08ec469a71dbc18be25a134521fba90924448a22 --- /dev/null +++ b/train/de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c4e483dfd666685ab9b2c3a2de618c4f4c7b531854635b6c323f1cbd9132eb2 +size 2484899496 diff --git a/train/de_en.jsonl b/train/de_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..edadad77b0216de3f6a08c7d35fb38b48e093af1 --- /dev/null +++ b/train/de_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29dcdd47d12c8c21eb91b7c2bbf038f95c7353aa5225af3438c9004f9ca492a6 +size 2444256660 diff --git a/train/en-cs.jsonl b/train/en-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2913242f83769f1acfea0877e33e6465f448a8c9 --- /dev/null +++ b/train/en-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88225ec9922f313e64f57b603897e53eff594c69c57f06ae41b125167d80060f +size 1406990510 diff --git a/train/en-de.jsonl b/train/en-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b741ec1b130449b1a918c8da9272e97202e58c58 --- /dev/null +++ b/train/en-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fec5450b539e2a10aa6362648a1e11773e2035a578f44457ae6d7e8cc25254d +size 3335103974 diff --git a/train/en-fr.jsonl b/train/en-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..04e40c5776e60aea3acb98daff85118a1237e78d --- /dev/null +++ b/train/en-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da93d068d45a05f16522039241dae136e7a095315705b1a5dbaacf938522f028 +size 3718395785 diff --git a/train/en.jsonl b/train/en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..117786ef64f8d902ed66a21cbeb7e4b2b770a31d --- /dev/null +++ b/train/en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0c1e61e0285549fffda2be6acb689831737a7edd26a430f7b78a157c31446eb +size 4626463633 diff --git a/train/fr-cs.jsonl b/train/fr-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c15b8fbbf8b2b8d210a5d11bd856c8836daceefe --- /dev/null +++ b/train/fr-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46e735601ba8e18a1133f0e779261220cde58e0d7426129d74de766a1b6ccdce +size 689649998 diff --git a/train/fr-de.jsonl b/train/fr-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..84b3bccabdc08af50151c3d9ce53949a91c6afe2 --- /dev/null +++ b/train/fr-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6840066356282b0d77223ec7881eddd74601a19432a792788e178ba0326234b +size 1416778491 diff --git a/train/fr-en.jsonl b/train/fr-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..97f4d628d02c48d1b34f0bb4a6fd53450cb1906b --- /dev/null +++ b/train/fr-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e02c11010e93e68543f92dd531ad6949eb6f6d0972bb641f484a3e7305e6c70b +size 1953210624 diff --git a/train/fr.jsonl b/train/fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e50e77de0c94cedb19957cd03d0792dd30be8db0 --- /dev/null +++ b/train/fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f70b094dedd58bfbadc4a79a493e15f29d7b8b7b6047d601460049ac24dac8f +size 2119167170 diff --git a/train/fr_en.jsonl b/train/fr_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e814fc95945bffbe820cdcd3d1074918fd9c8fb5 --- /dev/null +++ b/train/fr_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db93dd1f8f285ba73c25966127a528c1f3e7171d0b6a29414e0a6252e21e523b +size 2106413961 diff --git a/valid/cs-de.jsonl b/valid/cs-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..80f5d306e92709549edaf3757d1c50ff3976adaf --- /dev/null +++ b/valid/cs-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35f50a98a0a05dc09d3aceeb0f58fecce65f3e0d3278dba25af6237a4694ab86 +size 33207193 diff --git a/valid/cs-en.jsonl b/valid/cs-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0ac4ed5c60f8918c9fd5dd60249b49b8b8a3f819 --- /dev/null +++ b/valid/cs-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:001fc02574c0e2459457fc2d3dee2c0dc6f9a4a44aa5ba87906b2a745c397e4b +size 17143325 diff --git a/valid/cs-fr.jsonl b/valid/cs-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0c13fa53df7a366573faa743786cbc78a9c2bfde --- /dev/null +++ b/valid/cs-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ab5eb98c5f1caeb22ade4ac45e43440aa6015ca69f4637302682ba3390ceed7 +size 34023779 diff --git a/valid/cs.jsonl b/valid/cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e9f84f7c324168c4ecc048b93f7113a6656646e7 --- /dev/null +++ b/valid/cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27415a6bb7d96b26eb73eb5346e322ef230f0ea67525acf4621d499baeb7a2e5 +size 6305037 diff --git a/valid/cs_en.jsonl b/valid/cs_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..16123a92706db8b2c53bcbb4993b1ad48ddfffc2 --- /dev/null +++ b/valid/cs_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bf218f8a75529251ec45914a47ece04c93647b7c9c6d492507e60f06f0ba473 +size 18912754 diff --git a/valid/de-cs.jsonl b/valid/de-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d0aa422aa904f5f074dba88d4a3b76d18bc9b3df --- /dev/null +++ b/valid/de-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bf1843099fb17cb95c23302055bdeca53f20564fd5562057888d5f6079fa809 +size 44476616 diff --git a/valid/de-en.jsonl b/valid/de-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ad5b96df26663c774cbfc8cdc5a32e0bcc195c2f --- /dev/null +++ b/valid/de-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b47d3f140772034e0fe6e868073bbd9901e0aa89a664666563cf018c3aa8c6cd +size 120281193 diff --git a/valid/de-fr.jsonl b/valid/de-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..ddf9e9dd083e62bbdef7319ea1a30174aeb100c7 --- /dev/null +++ b/valid/de-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc9cf78dc307adc2f6218afdedf62fa86d6146deb801e87bbdd25d733dd14cb8 +size 69954488 diff --git a/valid/de.jsonl b/valid/de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e22476c46e0b0cd8479888f38c5f51358b04c289 --- /dev/null +++ b/valid/de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52bb55c1dd6e7e57d0de9c0e01c6c185f28b33abd6714d8c91e4c92bed200e88 +size 46479607 diff --git a/valid/de_en.jsonl b/valid/de_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..fff6d70b5b3229ba50d2639a7c4e0c4dfd2e516c --- /dev/null +++ b/valid/de_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e82a7dbf2740a36cd514155b801204cb96d2e6651069eae7596487c10dd4102b +size 127368829 diff --git a/valid/en-cs.jsonl b/valid/en-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..60e738ef0b8d60f2ef7c06eb2ec4d4cebc97a499 --- /dev/null +++ b/valid/en-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8e3a704e72f7d71f7da811fa3bef58cc5663a61dd326f18414cfaadac264038 +size 74355018 diff --git a/valid/en-de.jsonl b/valid/en-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b316e6572b83cb56c9ea3b9eb6acc31a447dd99d --- /dev/null +++ b/valid/en-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:522241ab416aaab9f67717504a784b8110f84ecd3deb9e5e1ee70872ddba3836 +size 81825420 diff --git a/valid/en-fr.jsonl b/valid/en-fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3c178ade8fbe8f712d349d9d3ccb4fc4002ad3d3 --- /dev/null +++ b/valid/en-fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b17f2d2a573722e7be641b4c5bebe083a923d13421c6ee196d0282d7696e0157 +size 81563655 diff --git a/valid/en.jsonl b/valid/en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..1e8b6f7cb5b301644dbd8e5ab677710c1c726046 --- /dev/null +++ b/valid/en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66ab9aabbe1a5f9b87e20a0649cd705b4b0c0a8651d209a0748135ecfef82e53 +size 50377914 diff --git a/valid/fr-cs.jsonl b/valid/fr-cs.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6a271798643f4d42155c4ed0c3a72a0d54a08b2d --- /dev/null +++ b/valid/fr-cs.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9320d8f5983e4d08889efa7252464f04dd4465dfc24ef6ccd5e55356750719f +size 43299086 diff --git a/valid/fr-de.jsonl b/valid/fr-de.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..0110796482de6147197f8e25071eda33b3a925d4 --- /dev/null +++ b/valid/fr-de.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07c1b42b192d9c2c2380a8697c8cca37e96ada932ca661a49acb6a1dfeb9315a +size 71621697 diff --git a/valid/fr-en.jsonl b/valid/fr-en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4b1d4278956ccc4e4b10d0d3f71d1264c3bbca20 --- /dev/null +++ b/valid/fr-en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:497fa76a9a4bb4e544f2da6182173bc4348032e7df2f78c6a19715600c5847fd +size 102419406 diff --git a/valid/fr.jsonl b/valid/fr.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..f73c8ba0248bb4eef814f7bb06a43a46398541a9 --- /dev/null +++ b/valid/fr.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9515ceb67410d2a2eb346157b8818e0934e2f582a9a516da3a69b45b1981f661 +size 42901926 diff --git a/valid/fr_en.jsonl b/valid/fr_en.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..4ef455198fb6f4b2bf463cfc0e056153a6d7129d --- /dev/null +++ b/valid/fr_en.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16401db62ff6bc11f014d345601c41c3b4f920a52fb4885f8b59c3d701266797 +size 110155518 diff --git a/xwikis.json b/xwikis.json new file mode 100644 index 0000000000000000000000000000000000000000..b77541a5d68db074504d476368b75139938d1d12 --- /dev/null +++ b/xwikis.json @@ -0,0 +1,153 @@ +{ + "overview": { + "what": { + "dataset": "The XWikis Corpus provides datasets with different language pairs and directions for cross-lingual and multi-lingual abstractive document summarisation. " + }, + "where": { + "has-leaderboard": "no", + "leaderboard-url": "N/A", + "leaderboard-description": "N/A", + "website": "[Github](https://github.com/lauhaide/clads)", + "paper-bibtext": "```\n@InProceedings{clads-emnlp,\n author = \"Laura Perez-Beltrachini and Mirella Lapata\",\n title = \"Models and Datasets for Cross-Lingual Summarisation\",\n booktitle = \"Proceedings of The 2021 Conference on Empirical Methods in Natural Language Processing \",\n year = \"2021\",\n address = \"Punta Cana, Dominican Republic\",\n}\n```", + "paper-url": "https://arxiv.org/abs/2202.09583", + "contact-name": "Laura Perez-Beltrachini", + "contact-email": "lperez@ed.ac.uk" + }, + "languages": { + "is-multilingual": "yes", + "license": "cc-by-sa-4.0: Creative Commons Attribution Share Alike 4.0 International", + "task-other": "N/A", + "language-names": [ + "German", + "English", + "French", + "Czech" + ], + "intended-use": "Cross-lingual and Multi-lingual single long input document abstractive summarisation.", + "license-other": "N/A", + "task": "Summarization", + "communicative": "Entity descriptive summarisation, that is, generate a summary that conveys the most salient facts of a document related to a given entity." + }, + "credit": { + "organization-type": [ + "academic" + ], + "creators": "Laura Perez-Beltrachini (University of Edinburgh)", + "gem-added-by": "Laura Perez-Beltrachini (University of Edinburgh) and Ronald Cardenas (University of Edinburgh)" + }, + "structure": { + "structure-splits": "For each language pair and direction there exists a train/valid/test split. \nThe test split is a sample of size 7k from the intersection of titles existing in the four languages (cs,fr,en,de).\nTrain/valid are randomly split." + } + }, + "curation": { + "original": { + "is-aggregated": "no", + "aggregated-sources": "N/A" + }, + "language": { + "found": [ + "Single website" + ], + "crowdsourced": [], + "created": "N/A", + "machine-generated": "N/A", + "validated": "other", + "is-filtered": "not filtered", + "filtered-criteria": "N/A", + "obtained": [ + "Found" + ] + }, + "annotations": { + "origin": "found", + "rater-number": "N/A", + "rater-qualifications": "N/A", + "rater-training-num": "N/A", + "rater-test-num": "N/A", + "rater-annotation-service-bool": "no", + "rater-annotation-service": [], + "values": "The input documents have section structure information.", + "quality-control": "validated by another rater", + "quality-control-details": "Bilingual annotators assessed the content overlap of source document and target summaries." + }, + "consent": { + "has-consent": "no", + "consent-policy": "N/A", + "consent-other": "N/A" + }, + "pii": { + "has-pii": "no PII", + "no-pii-justification": "N/A", + "is-pii-identified": "N/A", + "pii-identified-method": "N/A", + "is-pii-replaced": "N/A", + "pii-replaced-method": "N/A", + "pii-categories": [] + }, + "maintenance": { + "has-maintenance": "no", + "description": "N/A", + "contact": "N/A", + "contestation-mechanism": "N/A", + "contestation-link": "N/A", + "contestation-description": "N/A" + } + }, + "gem": { + "rationale": { + "sole-task-dataset": "no", + "sole-language-task-dataset": "N/A", + "distinction-description": "N/A" + }, + "curation": { + "has-additional-curation": "no", + "modification-types": [], + "modification-description": "N/A", + "has-additional-splits": "no", + "additional-splits-description": "N/A", + "additional-splits-capacicites": "N/A" + }, + "starting": {} + }, + "results": { + "results": { + "other-metrics-definitions": "N/A", + "has-previous-results": "yes", + "current-evaluation": "ROUGE-1/2/L", + "previous-results": "N/A", + "model-abilities": "- identification of entity salient information\n- translation\n- multi-linguality\n- cross-lingual transfer, zero-shot, few-shot", + "metrics": [ + "ROUGE" + ] + } + }, + "considerations": { + "pii": {}, + "licenses": { + "dataset-restrictions-other": "N/A", + "data-copyright-other": "N/A", + "dataset-restrictions": [ + "public domain" + ], + "data-copyright": [ + "public domain" + ] + }, + "limitations": {} + }, + "context": { + "previous": { + "is-deployed": "no", + "described-risks": "N/A", + "changes-from-observation": "N/A" + }, + "underserved": { + "helps-underserved": "no", + "underserved-description": "N/A" + }, + "biases": { + "has-biases": "no", + "bias-analyses": "N/A" + } + } +} \ No newline at end of file diff --git a/xwikis.py b/xwikis.py new file mode 100644 index 0000000000000000000000000000000000000000..37603d9728acaa1d246413360ce9680fc2199519 --- /dev/null +++ b/xwikis.py @@ -0,0 +1,225 @@ +# coding=utf-8 +# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +"""TODO: Add a description here.""" + + +import csv +import json +import os + +import datasets + + +# TODO: Add BibTeX citation +# Find for instance the citation on arxiv or on the dataset repo/website +_CITATION = """\ +@inproceedings{perez2021models, + title={Models and Datasets for Cross-Lingual Summarisation}, + author={Perez-Beltrachini, Laura and Lapata, Mirella}, + booktitle={Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing}, + pages={9408--9423}, + year={2021} +} +""" + +# TODO: Add description of the dataset here +# You can copy an official description +_DESCRIPTION = """\ +The XWikis Corpus (Perez-Beltrachini and Lapata, 2021) provides datasets with different language pairs and directions for cross-lingual abstractive document summarisation. This current version includes four languages: English, German, French, and Czech. The dataset is derived from Wikipedia. It is based on the observation that for a Wikipedia title, the lead section provides an overview conveying salient information, while the body provides detailed information. It thus assumes the body and lead paragraph as a document-summary pair. Furthermore, as a Wikipedia title can be associated with Wikipedia articles in various languages, 1) Wikipedia’s Interlanguage Links are used to find titles across languages and 2) given any two related Wikipedia titles, e.g., Huile d’Olive (French) and Olive Oil (English), the lead paragraph from one title is paired with the body of the other to derive cross-lingual pairs. +""" + +# TODO: Add a link to an official homepage for the dataset here +_HOMEPAGE = "https://datashare.ed.ac.uk/handle/10283/4188" + +# TODO: Add the licence for the dataset here if you can find it +_LICENSE = "CC BY-SA 4.0" + +VERSION = datasets.Version("0.1.0") + +# TODO: Add link to the official dataset URLs here +# The HuggingFace dataset library don't host the datasets but only point to the original files +# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method) + +LPAIRS = [ + f"{x}-{y}" for x in ["en","fr","cs","de"] for y in ["en","fr","cs","de"] if x!=y +] + +_URLs = { + "train": [ f"./train/{xy}.jsonl" for xy in LPAIRS], + # "./train/en-fr.jsonl", + # "./train/fr-en.jsonl", + # "./train/en-de.jsonl", + # "./train/de-en.jsonl", + # "./train/en-cs.jsonl", + # "./train/cs-en.jsonl", + # "./train/fr-de.jsonl", + # "./train/de-fr.jsonl", + # "./train/fr-cs.jsonl", + # "./train/cs-fr.jsonl", + # "./train/de-cs.jsonl", + # "./train/cs-de.jsonl", + # ], + "validation": [ f"./valid/{xy}.jsonl" for xy in LPAIRS], + # "validation": [ + # "./valid/en-fr.jsonl", + # "./valid/fr-en.jsonl", + # "./valid/en-de.jsonl", + # "./valid/de-en.jsonl", + # "./valid/en-cs.jsonl", + # "./valid/cs-en.jsonl", + # "./valid/fr-de.jsonl", + # "./valid/de-fr.jsonl", + # "./valid/fr-cs.jsonl", + # "./valid/cs-fr.jsonl", + # "./valid/de-cs.jsonl", + # "./valid/cs-de.jsonl", + # ], + "test": [ f"./test/{xy}.jsonl" for xy in LPAIRS if "-en" in xy], + # "test": [ + # "./test/fr-en.jsonl", + # "./test/de-en.jsonl", + # "./test/cs-en.jsonl", + # ], +} + + + +# TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case +class XWikis(datasets.GeneratorBasedBuilder): + """TODO: Short description of my dataset.""" + + + # If you need to make complex sub-parts in the datasets with configurable options + # You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig + # BUILDER_CONFIG_CLASS = MyBuilderConfig + + # You will be able to load one or the other configurations in the following list with + # data = datasets.load_dataset('my_dataset', 'first_domain') + # data = datasets.load_dataset('my_dataset', 'second_domain') + BUILDER_CONFIGS = [datasets.BuilderConfig(name=xy , version=VERSION, description=f"XWikis. Language pair: {xy}") for xy in LPAIRS] + + DEFAULT_CONFIG_NAME = "fr-en" # It's not mandatory to have a default configuration. Just use one if it make sense. + + def _info(self): + # TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset + features = datasets.Features( + { + "gem_id": datasets.Value("string"), + "gem_parent_id": datasets.Value("string"), + "id": datasets.Value("string"), + "src_title": datasets.Value("string"), + "tgt_title": datasets.Value("string"), + "src_document": datasets.features.Sequence( + { + "title": datasets.Value("string"), + "section_level": datasets.Value("string"), + "content": datasets.Value("string"), + }), + "src_summary": datasets.Value("string"), + "tgt_summary": datasets.Value("string") + + # These are the features of your dataset like images, labels ... + } + ) + return datasets.DatasetInfo( + # This is the description that will appear on the datasets page. + description=_DESCRIPTION, + # This defines the different columns of the dataset and their types + features=features, # Here we define them above because they are different between the two configurations + # If there's a common (input, target) tuple from the features, + # specify them here. They'll be used if as_supervised=True in + # builder.as_dataset. + supervised_keys=None, + # Homepage of the dataset for documentation + homepage=_HOMEPAGE, + # License for the dataset if available + license=_LICENSE, + # Citation for the dataset + citation=_CITATION, + ) + + def _split_generators(self, dl_manager): + """Returns SplitGenerators.""" + # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration + # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name + + # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs + # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files. + # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive + my_urls = {sp:f"./{sp[:5]}/{self.config.name}.jsonl" for sp in ["train","validation","test"] } + d_conf = dl_manager.download_and_extract(my_urls) + ### TODO + challenge_sets = [] + # challenge_sets = [ + # ("challenge_test_abstractivity_%d" % (lvl), fname) \ + # for lvl,fname in enumerate(d_conf["cs_abs"]) + # ] + [ + # ("challenge_test_topic_diversity_%d" % (lvl), fname) \ + # for lvl,fname in enumerate(d_conf["cs_abs"]) + # ] + + + return [ + datasets.SplitGenerator( + name=datasets.Split.TRAIN, + # These kwargs will be passed to _generate_examples + gen_kwargs={ + "filepath": d_conf["train"], + "split": "train", + }, + ), + datasets.SplitGenerator( + name=datasets.Split.VALIDATION, + # These kwargs will be passed to _generate_examples + gen_kwargs={ + "filepath": d_conf["validation"], + "split": "validation" + }, + ), + datasets.SplitGenerator( + name=datasets.Split.TEST, + # These kwargs will be passed to _generate_examples + gen_kwargs={ + "filepath": d_conf["test"], + "split": "test", + }, + ), + ] + [ + datasets.SplitGenerator( + name=challenge_split, + gen_kwargs={ + "filepath": filename, + "split": challenge_split, + }, + ) + for challenge_split, filename in challenge_sets + ] + + def _generate_examples( + self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators` + ): + """ Yields examples as (key, example) tuples. """ + # This method handles input defined in _split_generators to yield (key, example) tuples from the dataset. + # The `key` is here for legacy reason (tfds) and is not important in itself. + + with open(filepath, encoding="utf-8") as f: + for row in f: + data = json.loads(row) + id_ = data["id"] + # data["gem_parent_id"] = "GEM-wiki_cat_sum-%s-%d" % (split,data["id"]+1) + # data["gem_id"] = "GEM-wiki_cat_sum-%s-%d" % (split,data["id"]+1) + data["gem_parent_id"] = f"{self.config.name}-{split}-{id_}" + data["gem_id"] = f"{self.config.name}-{split}-{id_}" + yield id_,data