Datasets:

Languages:
English
ArXiv:
License:
system HF staff commited on
Commit
6c600d2
0 Parent(s):

Update files from the datasets library (from 1.0.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.0.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"simple": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "simple", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 801481, "num_examples": 4182, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3224035, "num_examples": 16728, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 4025516, "size_in_bytes": 22706428}, "addprim_jump": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "addprim_jump", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1511337, "num_examples": 7706, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2541119, "num_examples": 14670, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 4052456, "size_in_bytes": 22733368}, "addprim_turn_left": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "addprim_turn_left", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 170516, "num_examples": 1208, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3917086, "num_examples": 21890, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 4087602, "size_in_bytes": 22768514}, "filler_num0": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "filler_num0", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 330528, "num_examples": 1173, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2518738, "num_examples": 15225, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 2849266, "size_in_bytes": 21530178}, "filler_num1": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "filler_num1", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 330528, "num_examples": 1173, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2808968, "num_examples": 16290, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3139496, "size_in_bytes": 21820408}, "filler_num2": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "filler_num2", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 330528, "num_examples": 1173, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3112734, "num_examples": 17391, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3443262, "size_in_bytes": 22124174}, "filler_num3": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "filler_num3", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 330528, "num_examples": 1173, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3419644, "num_examples": 18528, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3750172, "size_in_bytes": 22431084}, "length": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "length", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1346688, "num_examples": 3920, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2678828, "num_examples": 16990, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 4025516, "size_in_bytes": 22706428}, "template_around_right": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "template_around_right", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1231437, "num_examples": 4476, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2518738, "num_examples": 15225, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3750175, "size_in_bytes": 22431087}, "template_jump_around_right": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "template_jump_around_right", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 330528, "num_examples": 1173, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3419644, "num_examples": 18528, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3750172, "size_in_bytes": 22431084}, "template_opposite_right": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "template_opposite_right", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 859623, "num_examples": 4476, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 2950102, "num_examples": 15225, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3809725, "size_in_bytes": 22490637}, "template_right": {"description": "SCAN tasks with various splits.\n\nSCAN is a set of simple language-driven navigation tasks for studying\ncompositional learning and zero-shot generalization.\n\nSee https://github.com/brendenlake/SCAN for a description of the splits.\n\nExample usage:\ndata = datasets.load_dataset('scan/length')\n", "citation": "\n@inproceedings{Lake2018GeneralizationWS,\n title={Generalization without Systematicity: On the Compositional Skills of\n Sequence-to-Sequence Recurrent Networks},\n author={Brenden M. Lake and Marco Baroni},\n booktitle={ICML},\n year={2018},\n url={https://arxiv.org/pdf/1711.00350.pdf},\n}\n", "homepage": "https://github.com/brendenlake/SCAN", "license": "", "features": {"commands": {"dtype": "string", "id": null, "_type": "Value"}, "actions": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "scan", "config_name": "template_right", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 718083, "num_examples": 4476, "dataset_name": "scan"}, "train": {"name": "train", "num_bytes": 3133327, "num_examples": 15225, "dataset_name": "scan"}}, "download_checksums": {"https://github.com/brendenlake/SCAN/archive/master.zip": {"num_bytes": 18680912, "checksum": "ae9038488f880aedf9a5ed9e9693f22f0a3e33d6a4e3aa4d1e8006d9c038594a"}}, "download_size": 18680912, "dataset_size": 3851410, "size_in_bytes": 22532322}}
dummy/addprim_jump/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1be52d3a9cb4ddf4a4778a0fa1457ee23635d5964da18a7159a570754234b6d4
3
+ size 1657
dummy/addprim_turn_left/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2545c10868d645674f67d3fe6805a86a3e8758c563bd6663b6db928889032842
3
+ size 1506
dummy/filler_num0/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b41f468fb00299f21b19968288969dee7ed74908e7487cabb5fa5434f73e453
3
+ size 1379
dummy/filler_num1/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d425c222450a7f82d50205843a5340c257f5e52ab4e6d9b2faf83db2260916d
3
+ size 1379
dummy/filler_num2/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:232b81d6b0b89e2dad318d296b9e95647f62f3b21581b36ea2e3b116b23c505f
3
+ size 1376
dummy/filler_num3/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b25966185239bc483ad5a2484fceba7b9476ca6106562a222835f7aaf746083
3
+ size 1406
dummy/length/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f647a782f62f6a0293468c54e81cddb27a80b120be46edcf101eacb735f5dbf
3
+ size 1273
dummy/simple/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b96fa5d09a5926f27a333e497ff27777ee3e3df66bf76db18e7b09df1247c8a
3
+ size 1139
dummy/template_around_right/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d11c21a04e57a0cd61508b84c1db88bee3f429a7e851631dca89197dd9fd3dd8
3
+ size 1446
dummy/template_jump_around_right/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e5810cbd6cf203d4636ef1582e683417423621aa1d76fb2c06755f67e660349
3
+ size 1448
dummy/template_opposite_right/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4524d0a24d9c6334c2f57f894d96b6491925805eaa04fdad99089cbbdd0dcb94
3
+ size 1459
dummy/template_right/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:482e8ad99572b8d75ae848fb3b1dff2ecb2c78de8e0e8627201e7c50a67cb7be
3
+ size 1399
scan.py ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Lint as: python3
17
+ """SCAN tasks with various different splits."""
18
+
19
+ from __future__ import absolute_import, division, print_function
20
+
21
+ import os
22
+
23
+ import datasets
24
+
25
+
26
+ _CITATION = """
27
+ @inproceedings{Lake2018GeneralizationWS,
28
+ title={Generalization without Systematicity: On the Compositional Skills of
29
+ Sequence-to-Sequence Recurrent Networks},
30
+ author={Brenden M. Lake and Marco Baroni},
31
+ booktitle={ICML},
32
+ year={2018},
33
+ url={https://arxiv.org/pdf/1711.00350.pdf},
34
+ }
35
+ """
36
+
37
+ _DESCRIPTION = """SCAN tasks with various splits.
38
+
39
+ SCAN is a set of simple language-driven navigation tasks for studying
40
+ compositional learning and zero-shot generalization.
41
+
42
+ See https://github.com/brendenlake/SCAN for a description of the splits.
43
+
44
+ Example usage:
45
+ data = datasets.load_dataset('scan/length')
46
+ """
47
+
48
+ _DATA_URL = "https://github.com/brendenlake/SCAN/archive/master.zip"
49
+
50
+
51
+ class ScanConfig(datasets.BuilderConfig):
52
+ """BuilderConfig for SCAN."""
53
+
54
+ def __init__(self, name, directory=None, **kwargs):
55
+ """BuilderConfig for SCAN.
56
+
57
+ Args:
58
+ name: Unique name of the split.
59
+ directory: Which subdirectory to read the split from.
60
+ **kwargs: keyword arguments forwarded to super.
61
+ """
62
+ # Version history:
63
+ super(ScanConfig, self).__init__(
64
+ name=name, version=datasets.Version("1.0.0"), description=_DESCRIPTION, **kwargs
65
+ )
66
+ if directory is None:
67
+ self.directory = name + "_split"
68
+ else:
69
+ self.directory = directory
70
+
71
+
72
+ _COMMANDS = "commands"
73
+ _ACTIONS = "actions"
74
+
75
+
76
+ class Scan(datasets.GeneratorBasedBuilder):
77
+ """SCAN task / splits as proposed by Brenden M. Lake and Marco Baroni."""
78
+
79
+ BUILDER_CONFIGS = [
80
+ ScanConfig(name="simple"),
81
+ ScanConfig(name="addprim_jump", directory="add_prim_split"),
82
+ ScanConfig(name="addprim_turn_left", directory="add_prim_split"),
83
+ ScanConfig(name="filler_num0", directory="filler_split"),
84
+ ScanConfig(name="filler_num1", directory="filler_split"),
85
+ ScanConfig(name="filler_num2", directory="filler_split"),
86
+ ScanConfig(name="filler_num3", directory="filler_split"),
87
+ ScanConfig(name="length"),
88
+ ScanConfig(name="template_around_right", directory="template_split"),
89
+ ScanConfig(name="template_jump_around_right", directory="template_split"),
90
+ ScanConfig(name="template_opposite_right", directory="template_split"),
91
+ ScanConfig(name="template_right", directory="template_split"),
92
+ ]
93
+
94
+ def _info(self):
95
+ return datasets.DatasetInfo(
96
+ description=_DESCRIPTION,
97
+ features=datasets.Features(
98
+ {
99
+ _COMMANDS: datasets.Value("string"),
100
+ _ACTIONS: datasets.Value("string"),
101
+ }
102
+ ),
103
+ supervised_keys=None,
104
+ homepage="https://github.com/brendenlake/SCAN",
105
+ citation=_CITATION,
106
+ )
107
+
108
+ def _split_generators(self, dl_manager):
109
+ """Returns SplitGenerators."""
110
+ data_dir = dl_manager.download_and_extract(_DATA_URL)
111
+ data_dir = os.path.join(data_dir, "SCAN-master", self.config.directory)
112
+ split = self.config.name
113
+ return [
114
+ datasets.SplitGenerator(
115
+ name=datasets.Split.TRAIN,
116
+ gen_kwargs={"filepath": os.path.join(data_dir, "tasks_train_" + split + ".txt")},
117
+ ),
118
+ datasets.SplitGenerator(
119
+ name=datasets.Split.TEST,
120
+ gen_kwargs={"filepath": os.path.join(data_dir, "tasks_test_" + split + ".txt")},
121
+ ),
122
+ ]
123
+
124
+ def _generate_examples(self, filepath):
125
+ """Yields examples."""
126
+ with open(filepath, encoding="utf-8") as infile:
127
+ for i, line in enumerate(infile):
128
+ if not line.startswith("IN: "):
129
+ continue
130
+ # Chop the prefix and split string between input and output
131
+ commands, actions = line[len("IN: ") :].strip().split(" OUT: ", 1)
132
+ yield i, {_COMMANDS: commands, _ACTIONS: actions}