Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10M<n<100M
Language Creators:
found
Annotations Creators:
machine-generated
Source Datasets:
original
ArXiv:
Tags:
sentence-fusion
License:
albertvillanova HF staff commited on
Commit
62abc43
1 Parent(s): 0a4a73c

Convert dataset to Parquet (#4)

Browse files

- Convert dataset to Parquet (8539110e6f1adefe5f3325a47bdbb1d2d5b5a485)
- Add discofuse-wikipedia data files (f4a7713cd46f6331636d0f817a448e6e1ac2c487)
- Delete loading script (22d781962d6a36c07f4e4f04a5e1c4733d8b8873)
- Delete legacy dataset_infos.json (f2319c388343f2a1d75aa75313ae5493464a4334)

Files changed (50) hide show
  1. README.md +30 -13
  2. dataset_infos.json +0 -1
  3. discofuse-sport/test-00000-of-00001.parquet +3 -0
  4. discofuse-sport/train-00000-of-00030.parquet +3 -0
  5. discofuse-sport/train-00001-of-00030.parquet +3 -0
  6. discofuse-sport/train-00002-of-00030.parquet +3 -0
  7. discofuse-sport/train-00003-of-00030.parquet +3 -0
  8. discofuse-sport/train-00004-of-00030.parquet +3 -0
  9. discofuse-sport/train-00005-of-00030.parquet +3 -0
  10. discofuse-sport/train-00006-of-00030.parquet +3 -0
  11. discofuse-sport/train-00007-of-00030.parquet +3 -0
  12. discofuse-sport/train-00008-of-00030.parquet +3 -0
  13. discofuse-sport/train-00009-of-00030.parquet +3 -0
  14. discofuse-sport/train-00010-of-00030.parquet +3 -0
  15. discofuse-sport/train-00011-of-00030.parquet +3 -0
  16. discofuse-sport/train-00012-of-00030.parquet +3 -0
  17. discofuse-sport/train-00013-of-00030.parquet +3 -0
  18. discofuse-sport/train-00014-of-00030.parquet +3 -0
  19. discofuse-sport/train-00015-of-00030.parquet +3 -0
  20. discofuse-sport/train-00016-of-00030.parquet +3 -0
  21. discofuse-sport/train-00017-of-00030.parquet +3 -0
  22. discofuse-sport/train-00018-of-00030.parquet +3 -0
  23. discofuse-sport/train-00019-of-00030.parquet +3 -0
  24. discofuse-sport/train-00020-of-00030.parquet +3 -0
  25. discofuse-sport/train-00021-of-00030.parquet +3 -0
  26. discofuse-sport/train-00022-of-00030.parquet +3 -0
  27. discofuse-sport/train-00023-of-00030.parquet +3 -0
  28. discofuse-sport/train-00024-of-00030.parquet +3 -0
  29. discofuse-sport/train-00025-of-00030.parquet +3 -0
  30. discofuse-sport/train-00026-of-00030.parquet +3 -0
  31. discofuse-sport/train-00027-of-00030.parquet +3 -0
  32. discofuse-sport/train-00028-of-00030.parquet +3 -0
  33. discofuse-sport/train-00029-of-00030.parquet +3 -0
  34. discofuse-sport/validation-00000-of-00001.parquet +3 -0
  35. discofuse-wikipedia/test-00000-of-00001.parquet +3 -0
  36. discofuse-wikipedia/train-00000-of-00013.parquet +3 -0
  37. discofuse-wikipedia/train-00001-of-00013.parquet +3 -0
  38. discofuse-wikipedia/train-00002-of-00013.parquet +3 -0
  39. discofuse-wikipedia/train-00003-of-00013.parquet +3 -0
  40. discofuse-wikipedia/train-00004-of-00013.parquet +3 -0
  41. discofuse-wikipedia/train-00005-of-00013.parquet +3 -0
  42. discofuse-wikipedia/train-00006-of-00013.parquet +3 -0
  43. discofuse-wikipedia/train-00007-of-00013.parquet +3 -0
  44. discofuse-wikipedia/train-00008-of-00013.parquet +3 -0
  45. discofuse-wikipedia/train-00009-of-00013.parquet +3 -0
  46. discofuse-wikipedia/train-00010-of-00013.parquet +3 -0
  47. discofuse-wikipedia/train-00011-of-00013.parquet +3 -0
  48. discofuse-wikipedia/train-00012-of-00013.parquet +3 -0
  49. discofuse-wikipedia/validation-00000-of-00001.parquet +3 -0
  50. discofuse.py +0 -194
README.md CHANGED
@@ -1,15 +1,14 @@
1
  ---
2
  annotations_creators:
3
  - machine-generated
4
- language:
5
- - en
6
  language_creators:
7
  - found
 
 
8
  license:
9
  - cc-by-sa-3.0
10
  multilinguality:
11
  - monolingual
12
- pretty_name: DiscoFuse
13
  size_categories:
14
  - 10M<n<100M
15
  source_datasets:
@@ -18,6 +17,7 @@ task_categories:
18
  - text2text-generation
19
  task_ids: []
20
  paperswithcode_id: discofuse
 
21
  tags:
22
  - sentence-fusion
23
  dataset_info:
@@ -41,16 +41,16 @@ dataset_info:
41
  dtype: string
42
  splits:
43
  - name: train
44
- num_bytes: 14736279993
45
  num_examples: 43291020
46
  - name: test
47
- num_bytes: 151656323
48
  num_examples: 445521
49
  - name: validation
50
- num_bytes: 150207737
51
  num_examples: 440902
52
- download_size: 4326637746
53
- dataset_size: 15038144053
54
  - config_name: discofuse-wikipedia
55
  features:
56
  - name: connective_string
@@ -71,16 +71,33 @@ dataset_info:
71
  dtype: string
72
  splits:
73
  - name: train
74
- num_bytes: 6377924196
75
  num_examples: 16310585
76
  - name: test
77
- num_bytes: 64008158
78
  num_examples: 163657
79
  - name: validation
80
- num_bytes: 65682035
81
  num_examples: 168081
82
- download_size: 1717422334
83
- dataset_size: 6507614389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  ---
85
 
86
  # Dataset Card for "discofuse"
1
  ---
2
  annotations_creators:
3
  - machine-generated
 
 
4
  language_creators:
5
  - found
6
+ language:
7
+ - en
8
  license:
9
  - cc-by-sa-3.0
10
  multilinguality:
11
  - monolingual
 
12
  size_categories:
13
  - 10M<n<100M
14
  source_datasets:
17
  - text2text-generation
18
  task_ids: []
19
  paperswithcode_id: discofuse
20
+ pretty_name: DiscoFuse
21
  tags:
22
  - sentence-fusion
23
  dataset_info:
41
  dtype: string
42
  splits:
43
  - name: train
44
+ num_bytes: 14736176073
45
  num_examples: 43291020
46
  - name: test
47
+ num_bytes: 151655243
48
  num_examples: 445521
49
  - name: validation
50
+ num_bytes: 150206657
51
  num_examples: 440902
52
+ download_size: 9422142544
53
+ dataset_size: 15038037973
54
  - config_name: discofuse-wikipedia
55
  features:
56
  - name: connective_string
71
  dtype: string
72
  splits:
73
  - name: train
74
+ num_bytes: 6377885028
75
  num_examples: 16310585
76
  - name: test
77
+ num_bytes: 64007750
78
  num_examples: 163657
79
  - name: validation
80
+ num_bytes: 65681627
81
  num_examples: 168081
82
+ download_size: 3929336540
83
+ dataset_size: 6507574405
84
+ configs:
85
+ - config_name: discofuse-sport
86
+ data_files:
87
+ - split: train
88
+ path: discofuse-sport/train-*
89
+ - split: test
90
+ path: discofuse-sport/test-*
91
+ - split: validation
92
+ path: discofuse-sport/validation-*
93
+ - config_name: discofuse-wikipedia
94
+ data_files:
95
+ - split: train
96
+ path: discofuse-wikipedia/train-*
97
+ - split: test
98
+ path: discofuse-wikipedia/test-*
99
+ - split: validation
100
+ path: discofuse-wikipedia/validation-*
101
  ---
102
 
103
  # Dataset Card for "discofuse"
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"discofuse-sport": {"description": " DISCOFUSE is a large scale dataset for discourse-based sentence fusion.\n", "citation": "@InProceedings{GevaEtAl2019,\n title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},\n author = {Geva, Mor and Malmi, Eric and Szpektor, Idan and Berant, Jonathan},\n booktitle = {Proceedings of the 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics},\n note = {arXiv preprint arXiv:1902.10526},\n year = {2019}\n}\n\n", "homepage": "https://github.com/google-research-datasets/discofuse", "license": "", "features": {"connective_string": {"dtype": "string", "id": null, "_type": "Value"}, "discourse_type": {"dtype": "string", "id": null, "_type": "Value"}, "coherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_pronoun": {"dtype": "float32", "id": null, "_type": "Value"}, "incoherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "incoherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_nominal": {"dtype": "float32", "id": null, "_type": "Value"}, "coherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "discofuse", "config_name": "discofuse-sport", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 14736279993, "num_examples": 43291020, "dataset_name": "discofuse"}, "test": {"name": "test", "num_bytes": 151656323, "num_examples": 445521, "dataset_name": "discofuse"}, "validation": {"name": "validation", "num_bytes": 150207737, "num_examples": 440902, "dataset_name": "discofuse"}}, "download_checksums": {"https://storage.googleapis.com/gresearch/discofuse/discofuse_v1_sports.zip": {"num_bytes": 4326637746, "checksum": "a390083c7923e11efeeea04a9a79074149e5ef9be614466f50aec28f1a5eec41"}}, "download_size": 4326637746, "post_processing_size": null, "dataset_size": 15038144053, "size_in_bytes": 19364781799}, "discofuse-wikipedia": {"description": " DISCOFUSE is a large scale dataset for discourse-based sentence fusion.\n", "citation": "@InProceedings{GevaEtAl2019,\n title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},\n author = {Geva, Mor and Malmi, Eric and Szpektor, Idan and Berant, Jonathan},\n booktitle = {Proceedings of the 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics},\n note = {arXiv preprint arXiv:1902.10526},\n year = {2019}\n}\n\n", "homepage": "https://github.com/google-research-datasets/discofuse", "license": "", "features": {"connective_string": {"dtype": "string", "id": null, "_type": "Value"}, "discourse_type": {"dtype": "string", "id": null, "_type": "Value"}, "coherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_pronoun": {"dtype": "float32", "id": null, "_type": "Value"}, "incoherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "incoherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_nominal": {"dtype": "float32", "id": null, "_type": "Value"}, "coherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "discofuse", "config_name": "discofuse-wikipedia", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6377924196, "num_examples": 16310585, "dataset_name": "discofuse"}, "test": {"name": "test", "num_bytes": 64008158, "num_examples": 163657, "dataset_name": "discofuse"}, "validation": {"name": "validation", "num_bytes": 65682035, "num_examples": 168081, "dataset_name": "discofuse"}}, "download_checksums": {"https://storage.googleapis.com/gresearch/discofuse/discofuse_v1_wikipedia.zip": {"num_bytes": 1717422334, "checksum": "e8a5ec52cdd9820ce9b410b47c3a57a49a300470c976202cd7caab613658ebfe"}}, "download_size": 1717422334, "post_processing_size": null, "dataset_size": 6507614389, "size_in_bytes": 8225036723}}
 
discofuse-sport/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9183aace3727027a6d75eefc16a0704e91e2619c7c6d60d0b9266d1a793682c8
3
+ size 94994467
discofuse-sport/train-00000-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a3d5f441e1e9440a600b01ac9fed6feda0ccaeb34f246c1e530eca5ee714427
3
+ size 308126690
discofuse-sport/train-00001-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:832f1d483369a59516fbf97476bad6bfc63c7f063a6052236025b103a2e4e003
3
+ size 305566158
discofuse-sport/train-00002-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f8aea2580843459fdcf70887b3cd35e32eaef98998a7dcbd4b664aaeb63202a
3
+ size 307084313
discofuse-sport/train-00003-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d1c04bba7f326d4aca45a617166efc5857c5c26fafd14f06ee6b831c561e4ca
3
+ size 308411269
discofuse-sport/train-00004-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e57430725c783061534001a1053bde61a30c3d9a75ca516fbeb7c56f3ff1acbe
3
+ size 308394219
discofuse-sport/train-00005-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8116e965a5d4e61251a93089246eaad07844e8d4584278135236dd5514bba6e
3
+ size 307987875
discofuse-sport/train-00006-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74707a3c885f618f1f4e7ba2b6b2bef599a6dd2cf6cd99fdd0b19d27a3bfb95a
3
+ size 307391357
discofuse-sport/train-00007-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2adeb83ddff793dea972cc8c151c8ac1cee328fd9a95da57fab6856d49b7fd9
3
+ size 308073498
discofuse-sport/train-00008-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cfdfeb3c16c5682b60d672f901b05c87ea37f7c96b9c7015f332564a76e5ad1
3
+ size 306444351
discofuse-sport/train-00009-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b6949ea9968bb292fb7a17d763c5f937816def0ca9f18d9db1342d2a3962ae7
3
+ size 307844633
discofuse-sport/train-00010-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9bab2c216f601574da432e86be46ee54a6f2d0cce10c5dfa28c8f3d7c8cdab6
3
+ size 307660360
discofuse-sport/train-00011-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d62754e6d50c6dbde00b0e874de3546c27c94b115ab0e49abc63506795ce158
3
+ size 308278823
discofuse-sport/train-00012-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:726a39396b069281847c234b7271bc96ca7481942547f1cbc4b6c198d6451414
3
+ size 308139806
discofuse-sport/train-00013-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f82faad524098b7a9ed94cc259a0caa5be5f00868597e481a74f8b12b28f5afb
3
+ size 308261508
discofuse-sport/train-00014-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd44e9b92af8c408c10c030c35db0cbf7da00b3a1bb15935b2652cc3b715cb34
3
+ size 308180069
discofuse-sport/train-00015-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:792aabdd3730c4e715ba017188105b6f8697e65c33ffb68349b0a10ff90c5284
3
+ size 308447385
discofuse-sport/train-00016-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fcdbd380e210e88d156071d65da4ac1d3c33ea0d25124f70915d9525c1ac43e
3
+ size 307069435
discofuse-sport/train-00017-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3434df004d78eff99187032253287cb924d6b224b08021ac9beaa6960f06cefd
3
+ size 306007238
discofuse-sport/train-00018-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dacc26d267b5dc1a178f9d83c27dcc72fc5f552b6a2dd821b8d9a04dc21c2d06
3
+ size 308332171
discofuse-sport/train-00019-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9f694d0a92998a933b5bdf10dade891d2be026a416996a75fd123b367e384c2
3
+ size 307019513
discofuse-sport/train-00020-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cdfdabae8e3d33cd23bae749deb8b7a561cb65ff6bb2bad5648a20432647f34
3
+ size 305922155
discofuse-sport/train-00021-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f5bff73bc9a14122d20f888454636ab73f4c904e6175e1d6f6dbab74e4782b9
3
+ size 308234126
discofuse-sport/train-00022-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9afccf8fdbd9ccdb597df65ef2a2aaa3850de254a3f2794a4f5c1d318d1644dc
3
+ size 307969671
discofuse-sport/train-00023-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dd21930dfbcab6283bfca2ebd34edc106a5173484b25e6488ef51557cb63807
3
+ size 308966119
discofuse-sport/train-00024-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab8ce0ae3b3893060a21ccf6cc4693ceac478d6227c6a613695ce09a9e939167
3
+ size 308541880
discofuse-sport/train-00025-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82c84b9b9bd6bcdcd551b3943e9e59ed584a28d7681d436cc17f58354d347711
3
+ size 308077997
discofuse-sport/train-00026-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c4a1df4097b8633f3b9ef267ab032757aa3e689194f362a45c7e4c1324c557b
3
+ size 307562119
discofuse-sport/train-00027-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd759434a653d98043a1418ea4a81446f79611245ed63b3b79f5c262ce37f9d3
3
+ size 307174197
discofuse-sport/train-00028-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09f812e111fa4ea491bd0ed93539d35ef88601daa653dec3108cf68a188f8588
3
+ size 309604147
discofuse-sport/train-00029-of-00030.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82f4c5a98311f03652293d5abaa72f19dad0891c2986e46503c4c20ce6f3cef5
3
+ size 308296941
discofuse-sport/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9892b7e1f60bb45e84633a9c123204a778b86a9698a2349561654fc7cd6321b6
3
+ size 94078054
discofuse-wikipedia/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11be05ef93d439377e80d7045ea7e49e948c9b5db6e573018d7d694d81bba77f
3
+ size 38687474
discofuse-wikipedia/train-00000-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b30021c5c812644ed42c21dd5d972510cbd1a2f2d5d30c96deb00e5f38b100fe
3
+ size 294960063
discofuse-wikipedia/train-00001-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fe8882c85203c079411692407ae42c54ede9e7ff3f6d51c3f66441c2decfc47
3
+ size 296884678
discofuse-wikipedia/train-00002-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a222cea4f9b13e34a508d83da4a64cfe1b8c080b5f23b1627701fd86e0b1e12
3
+ size 295549696
discofuse-wikipedia/train-00003-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efc2501b52c9915acf8c646f1bf21b205647f66adeb464eae0855f574638da3f
3
+ size 296199956
discofuse-wikipedia/train-00004-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01bb21e87f6b1011984398261450874d0f013c83fa065c0666bf74c5b2bce966
3
+ size 296117061
discofuse-wikipedia/train-00005-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb84f132785f2ca2163a60d1322f47a1947a0f696bdadfece22cf46b1cb3670e
3
+ size 296435505
discofuse-wikipedia/train-00006-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d52c46977eefd77c9643b1a1d4eabd091f1f56b54a6489ae4491e0604ac9a6b
3
+ size 296311233
discofuse-wikipedia/train-00007-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0878b60331a698c4941053e5b3fc67762a417372b0c31e0993144526be0d7405
3
+ size 296702371
discofuse-wikipedia/train-00008-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:007ec0ee669a9ca7f00ebfcdf5ea0d8701e4ffed853992de8b78278892aaddde
3
+ size 296235227
discofuse-wikipedia/train-00009-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6d932ca26b06fcbb8c95a1e60c6de5530772f88f50cee9e918926e4177793d
3
+ size 296701954
discofuse-wikipedia/train-00010-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab8bf951b7170599d0a7de5f617e46e67542a2b35e0258b63f452ca774923c1
3
+ size 296434475
discofuse-wikipedia/train-00011-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea7cfa0f61672b6d7818a1110058984a041ad11dd31ca9894d16253f7947eb82
3
+ size 296323688
discofuse-wikipedia/train-00012-of-00013.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98175d6c67d0afb7a993337c2dbb122f3a3ca2e21a89b1d32b64c35b82b900fa
3
+ size 296146432
discofuse-wikipedia/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07a2b6756c20327b202e58bb1a7975bfd4be4907d86f7b3c066f03b2bdca728a
3
+ size 39646727
discofuse.py DELETED
@@ -1,194 +0,0 @@
1
- """TODO(discofuse): Add a description here."""
2
-
3
-
4
- import csv
5
- import os
6
-
7
- import datasets
8
-
9
-
10
- _URL_ = "https://storage.googleapis.com/gresearch/discofuse/"
11
- _CITATION = """\
12
- @InProceedings{GevaEtAl2019,
13
- title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},
14
- author = {Geva, Mor and Malmi, Eric and Szpektor, Idan and Berant, Jonathan},
15
- booktitle = {Proceedings of the 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics},
16
- note = {arXiv preprint arXiv:1902.10526},
17
- year = {2019}
18
- }
19
-
20
- """
21
-
22
- # TODO(discofuse):
23
- _DESCRIPTION = """\
24
- DISCOFUSE is a large scale dataset for discourse-based sentence fusion.
25
- """
26
-
27
-
28
- class DiscofuseConfig(datasets.BuilderConfig):
29
-
30
- """BuilderConfig for Discofuse"""
31
-
32
- def __init__(self, data_url, balanced=False, **kwargs):
33
- """
34
-
35
- Args:
36
- balanced: to specify if we want to load the balanced file or the full file
37
- **kwargs: keyword arguments forwarded to super.
38
- """
39
- super(DiscofuseConfig, self).__init__(version=datasets.Version("1.0.0", ""), **kwargs)
40
- self.balanced = balanced
41
- self.data_url = data_url
42
-
43
-
44
- class Discofuse(datasets.GeneratorBasedBuilder):
45
- """TODO(discofuse): Short description of my dataset."""
46
-
47
- # TODO(discofuse): Set up version.
48
- VERSION = datasets.Version("1.0.0")
49
- BUILDER_CONFIGS = [
50
- DiscofuseConfig(
51
- name="discofuse-sport", description="sentence fusion", data_url=_URL_ + "discofuse_v1_sports.zip"
52
- ),
53
- DiscofuseConfig(
54
- name="discofuse-wikipedia", description="sentence fusion", data_url=_URL_ + "discofuse_v1_wikipedia.zip"
55
- ),
56
- ]
57
-
58
- def _info(self):
59
- # TODO(discofuse): Specifies the datasets.DatasetInfo object
60
- return datasets.DatasetInfo(
61
- # This is the description that will appear on the datasets page.
62
- description=_DESCRIPTION,
63
- # datasets.features.FeatureConnectors
64
- features=datasets.Features(
65
- {
66
- "connective_string": datasets.Value("string"),
67
- "discourse_type": datasets.Value("string"),
68
- "coherent_second_sentence": datasets.Value("string"),
69
- "has_coref_type_pronoun": datasets.Value("float32"),
70
- "incoherent_first_sentence": datasets.Value("string"),
71
- "incoherent_second_sentence": datasets.Value("string"),
72
- "has_coref_type_nominal": datasets.Value("float32"),
73
- "coherent_first_sentence": datasets.Value("string"),
74
- # These are the features of your dataset like images, labels ...
75
- }
76
- ),
77
- # If there's a common (input, target) tuple from the features,
78
- # specify them here. They'll be used if as_supervised=True in
79
- # builder.as_dataset.
80
- supervised_keys=None,
81
- # Homepage of the dataset for documentation
82
- homepage="https://github.com/google-research-datasets/discofuse",
83
- citation=_CITATION,
84
- )
85
-
86
- def _split_generators(self, dl_manager):
87
- """Returns SplitGenerators."""
88
- # TODO(discofuse): Downloads the data and defines the splits
89
- # dl_manager is a datasets.download.DownloadManager that can be used to
90
- # download and extract URLs
91
- if self.config.name == "discofuse-sport":
92
- dl_dir = dl_manager.download_and_extract(self.config.data_url)
93
- data_dir = os.path.join(dl_dir, "discofuse_v1/sports")
94
- if self.config.balanced:
95
- return [
96
- datasets.SplitGenerator(
97
- name=datasets.Split.TRAIN,
98
- # These kwargs will be passed to _generate_examples
99
- gen_kwargs={"filepath": os.path.join(data_dir, "train_balanced.tsv")},
100
- ),
101
- datasets.SplitGenerator(
102
- name=datasets.Split.TEST,
103
- # These kwargs will be passed to _generate_examples
104
- gen_kwargs={"filepath": os.path.join(data_dir, "test_balanced.tsv")},
105
- ),
106
- datasets.SplitGenerator(
107
- name=datasets.Split.VALIDATION,
108
- # These kwargs will be passed to _generate_examples
109
- gen_kwargs={"filepath": os.path.join(data_dir, "dev_balanced.tsv")},
110
- ),
111
- ]
112
- else:
113
- return [
114
- datasets.SplitGenerator(
115
- name=datasets.Split.TRAIN,
116
- # These kwargs will be passed to _generate_examples
117
- gen_kwargs={"filepath": os.path.join(data_dir, "train.tsv")},
118
- ),
119
- datasets.SplitGenerator(
120
- name=datasets.Split.TEST,
121
- # These kwargs will be passed to _generate_examples
122
- gen_kwargs={"filepath": os.path.join(data_dir, "test.tsv")},
123
- ),
124
- datasets.SplitGenerator(
125
- name=datasets.Split.VALIDATION,
126
- # These kwargs will be passed to _generate_examples
127
- gen_kwargs={"filepath": os.path.join(data_dir, "dev.tsv")},
128
- ),
129
- ]
130
- else:
131
- if self.config.name == "discofuse-wikipedia":
132
- dl_dir = dl_manager.download_and_extract(self.config.data_url)
133
- data_dir = os.path.join(dl_dir, "discofuse_v1/wikipedia")
134
- if self.config.balanced:
135
- return [
136
- datasets.SplitGenerator(
137
- name=datasets.Split.TRAIN,
138
- # These kwargs will be passed to _generate_examples
139
- gen_kwargs={"filepath": os.path.join(data_dir, "train_balanced.tsv")},
140
- ),
141
- datasets.SplitGenerator(
142
- name=datasets.Split.TEST,
143
- # These kwargs will be passed to _generate_examples
144
- gen_kwargs={"filepath": os.path.join(data_dir, "test_balanced.tsv")},
145
- ),
146
- datasets.SplitGenerator(
147
- name=datasets.Split.VALIDATION,
148
- # These kwargs will be passed to _generate_examples
149
- gen_kwargs={"filepath": os.path.join(data_dir, "dev_balanced.tsv")},
150
- ),
151
- ]
152
- else:
153
- return [
154
- datasets.SplitGenerator(
155
- name=datasets.Split.TRAIN,
156
- # These kwargs will be passed to _generate_examples
157
- gen_kwargs={"filepath": os.path.join(data_dir, "train.tsv")},
158
- ),
159
- datasets.SplitGenerator(
160
- name=datasets.Split.TEST,
161
- # These kwargs will be passed to _generate_examples
162
- gen_kwargs={"filepath": os.path.join(data_dir, "test.tsv")},
163
- ),
164
- datasets.SplitGenerator(
165
- name=datasets.Split.VALIDATION,
166
- # These kwargs will be passed to _generate_examples
167
- gen_kwargs={"filepath": os.path.join(data_dir, "dev.tsv")},
168
- ),
169
- ]
170
-
171
- def _generate_examples(self, filepath):
172
- """Yields examples."""
173
- # TODO(discofuse): Yields (key, example) tuples from the dataset
174
- with open(filepath, encoding="utf-8") as f:
175
- data = csv.DictReader(f, delimiter="\t")
176
- for id_, row in enumerate(data):
177
- co_first_sent = row["coherent_first_sentence"]
178
- co_second_sent = row["coherent_second_sentence"]
179
- connect_str = row["connective_string"]
180
- discourse_type = row["discourse_type"]
181
- has_coref_pronoun = row["has_coref_type_pronoun"]
182
- has_coref_nominal = row["has_coref_type_nominal"]
183
- inco_first_sent = row["incoherent_first_sentence"]
184
- inco_second_sent = row["incoherent_second_sentence"]
185
- yield id_, {
186
- "connective_string": connect_str,
187
- "discourse_type": discourse_type,
188
- "coherent_second_sentence": co_second_sent,
189
- "has_coref_type_pronoun": has_coref_pronoun,
190
- "incoherent_first_sentence": inco_first_sent,
191
- "incoherent_second_sentence": inco_second_sent,
192
- "has_coref_type_nominal": has_coref_nominal,
193
- "coherent_first_sentence": co_first_sent,
194
- }