tyqiangz commited on
Commit
958b0a8
1 Parent(s): 56d092c

added 'all' split comprising all languages' data

Browse files
Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. multilingual-sentiments.py +35 -36
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"id": {"description": "This sentence-level sentiment analysis dataset (Purwarianti and Crisdayanti, 2019)\nis a collection of comments and reviews in Indonesian obtained from multiple online\nplatforms. The text was crawled and then annotated by several Indonesian linguists\nto construct this dataset. There are three possible sentiments on the SmSA\ndataset: positive, negative, and neutral.", "citation": "@inproceedings{purwarianti2019improving,\n title={Improving Bi-LSTM Performance for Indonesian Sentiment Analysis Using Paragraph Vector},\n author={Ayu Purwarianti and Ida Ayu Putu Ari Crisdayanti},\n booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},\n pages={1--5},\n year={2019},\n organization={IEEE}\n}", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "id", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2209866, "num_examples": 11000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 249625, "num_examples": 1260, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 77037, "num_examples": 500, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/train_preprocess.tsv": {"num_bytes": 2186718, "checksum": "50f38ceed9b31521bf1581e126620532cc9b790712938159a2cdcf6906977a9b"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/valid_preprocess.tsv": {"num_bytes": 246974, "checksum": "6ab41ddc9d58a35086f05ebd2e209c74cb03d87d4f51d6abdfba674eafbefa74"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/test_preprocess_masked_label.tsv": {"num_bytes": 75537, "checksum": "ecc239ad7a069774954843da50eba266398bab70d0370f74684bf1c107b64e70"}}, "download_size": 2509229, "post_processing_size": null, "dataset_size": 2536528, "size_in_bytes": 5045757}, "en": {"description": "English dataset", "citation": "", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "en", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/train.tsv": {"num_bytes": 217706, "checksum": "e25dfcb4d3f5fc87caa0e39e0410638dadb1f96f5923b17faea81a0cf5fe66bc"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/valid.tsv": {"num_bytes": 38316, "checksum": "84a25a7fe69a000acfd3adbc4aa19da735eeb448970f7f34c9066d298e7ce077"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/test.tsv": {"num_bytes": 91275, "checksum": "07514cbb73a28c029e4d7a41fc61f3d9a6d1060412ab392e9ef696ba0a215bb0"}}, "download_size": 347297, "post_processing_size": null, "dataset_size": 0, "size_in_bytes": 347297}, "malay": {"description": "malay dataset.", "citation": "malay citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "malay", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 604050, "num_examples": 4687, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 131107, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 131107, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/train.tsv": {"num_bytes": 593973, "checksum": "1d71efe33aacbf55c27f7e6f27dd943e8e1e5e1b500c9820bf98c26747dd5951"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/valid.tsv": {"num_bytes": 128955, "checksum": "b97d8fd3d2825104e986e968ca5f4044967c450209747308618a445249533204"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/test.tsv": {"num_bytes": 128955, "checksum": "b97d8fd3d2825104e986e968ca5f4044967c450209747308618a445249533204"}}, "download_size": 851883, "post_processing_size": null, "dataset_size": 866264, "size_in_bytes": 1718147}, "hindi": {"description": "hindi dataset.", "citation": "hindi citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "hindi", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 164190, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 30186, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 72822, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/train.tsv": {"num_bytes": 159910, "checksum": "93fa1fdb9f65e60421edb7c52043a70a496f0dbc7ed19dbc333bc2306ddec360"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/valid.tsv": {"num_bytes": 29441, "checksum": "103811ef3d05c2f4a7c8d8bbbbe73f94c2b34981cb0ebba591122f849c5e873b"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/test.tsv": {"num_bytes": 70803, "checksum": "2f7aa25ef06262c1f3dde8fee8050f70e21e9ed3b20e04e4f82f57181d11e066"}}, "download_size": 260154, "post_processing_size": null, "dataset_size": 267198, "size_in_bytes": 527352}, "japanese": {"description": "japanese dataset.", "citation": "japanese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "japanese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 35732514, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 872487, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 885078, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/train.tsv": {"num_bytes": 35452525, "checksum": "4854bc15d62eaf9bb1d96a1987c88ba02062ab67d1abe6445cc02f14a3539d09"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/valid.tsv": {"num_bytes": 865498, "checksum": "e77e4e909ae73e94a0f6700244ff08a91e8ac69cd5a5d62dd0d5de04a1829b72"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/test.tsv": {"num_bytes": 878089, "checksum": "416b046ffaed3d3ad19d13cca479743e221f670c747665e3beeea53abdca08c2"}}, "download_size": 37196112, "post_processing_size": null, "dataset_size": 37490079, "size_in_bytes": 74686191}, "german": {"description": "german dataset.", "citation": "german citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "german", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 161744, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 26975, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 75922, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/train.tsv": {"num_bytes": 157464, "checksum": "fb3559a88cf702c3957cc761d8b1ebd38e791f9645c7eac1f07c7f542b995b29"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/valid.tsv": {"num_bytes": 26230, "checksum": "fd556c9da9e7dc7208818e85f08bd022ef29e4b7c91a5f186278528c8e15c146"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/test.tsv": {"num_bytes": 73903, "checksum": "c20f8263bfb7c84548e826a561f3e8c0adcc91398be35829a770287ecc194584"}}, "download_size": 257597, "post_processing_size": null, "dataset_size": 264641, "size_in_bytes": 522238}, "italian": {"description": "italian dataset.", "citation": "italian citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "italian", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 189632, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 33777, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 92335, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/train.tsv": {"num_bytes": 185352, "checksum": "93ff2ce957f9ff93691fa61544d22aae08f1ce8c3875c7de26b3b8ffaa8bf4f7"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/valid.tsv": {"num_bytes": 33032, "checksum": "1f35d390b3eded36ea2cb7443ff79356333fb3e72e461d503af90cae1afed66e"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/test.tsv": {"num_bytes": 90316, "checksum": "3d6a5a2edc9357c6786c628983b9b1938fdd2425b816c5d373380ae484436400"}}, "download_size": 308700, "post_processing_size": null, "dataset_size": 315744, "size_in_bytes": 624444}, "english": {"description": "english dataset.", "citation": "english citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "english", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 225695, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 39698, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 92288, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/train.tsv": {"num_bytes": 221415, "checksum": "8a16a02ce468727afa68fc8a153e93937383d10fbc25d71326f2498c722701ed"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/valid.tsv": {"num_bytes": 38953, "checksum": "f35cff2177d08acbd221a5e3713e71bf0dc6cb1a5e5303c24152f45bbe018dad"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/test.tsv": {"num_bytes": 90269, "checksum": "4afbdc2def40eb9fbe9e4ee6e915e103b8c02609dea6572f4a25a6af564f3a8f"}}, "download_size": 350637, "post_processing_size": null, "dataset_size": 357681, "size_in_bytes": 708318}, "portuguese": {"description": "portuguese dataset.", "citation": "portuguese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "portuguese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 163243, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 27571, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 76392, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/train.tsv": {"num_bytes": 158963, "checksum": "7263cbd24af277d95a3fe592b288a0ca74e94d058bd0f0faf2678af06d413cc1"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/valid.tsv": {"num_bytes": 26826, "checksum": "608166be623a421f7501af5585b234cf90021b7a24a9cab0b2e2c7d40751eef2"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/test.tsv": {"num_bytes": 74373, "checksum": "8d9383184b26082dfcf29a0f94ec07b2857caa80b2ca74842fec6e07450636b4"}}, "download_size": 260162, "post_processing_size": null, "dataset_size": 267206, "size_in_bytes": 527368}, "french": {"description": "french dataset.", "citation": "french citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "french", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 206711, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 36077, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 95574, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/train.tsv": {"num_bytes": 202431, "checksum": "29a7e8735b868542e3b176fe984baf4f97551952e023f24de986da5539a81cef"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/valid.tsv": {"num_bytes": 35332, "checksum": "8d66ace183ee66f7f19e57f091f6472b8a903fa23bc804314099d8d26742ffc4"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/test.tsv": {"num_bytes": 93555, "checksum": "10410cfa3f5a9e03ff55b2b1d47f6f2bbf669fa25c3c4564ce85fde99b39ac90"}}, "download_size": 331318, "post_processing_size": null, "dataset_size": 338362, "size_in_bytes": 669680}, "spanish": {"description": "spanish dataset.", "citation": "spanish citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "spanish", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 178252, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 31817, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 85388, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/train.tsv": {"num_bytes": 173972, "checksum": "de6e3858732bf7f0173727969ab61d2ba8b2bc2820a1facf76d30b175629b78b"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/valid.tsv": {"num_bytes": 31072, "checksum": "35602c9df8e8b7dbb073ddf02e101d1fd744c8e0f0e96363af8a6801fc484097"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/test.tsv": {"num_bytes": 83369, "checksum": "f36830a7d16f0ae4bf96b5449cebc0dae2f3379548e1d30f4ca5b79f41fa3480"}}, "download_size": 288413, "post_processing_size": null, "dataset_size": 295457, "size_in_bytes": 583870}, "chinese": {"description": "chinese dataset.", "citation": "chinese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "chinese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 19594504, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 483801, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 491534, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/train.tsv": {"num_bytes": 19314515, "checksum": "8bd13f91cdd43c9d891e30c0da2af394743b1bc765ea189433fc3fed4b6fd424"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/valid.tsv": {"num_bytes": 476812, "checksum": "a14199d22523ff4ff16c318a44543134dc8147d57ad01b7cd8314b3f37007fb5"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/test.tsv": {"num_bytes": 484545, "checksum": "9a1833bacfcbcd240256f71f405eae2ec07193380c62cf8b1042e55b3bd1d4e0"}}, "download_size": 20275872, "post_processing_size": null, "dataset_size": 20569839, "size_in_bytes": 40845711}}
 
1
+ {"id": {"description": "This sentence-level sentiment analysis dataset (Purwarianti and Crisdayanti, 2019)\nis a collection of comments and reviews in Indonesian obtained from multiple online\nplatforms. The text was crawled and then annotated by several Indonesian linguists\nto construct this dataset. There are three possible sentiments on the SmSA\ndataset: positive, negative, and neutral.", "citation": "@inproceedings{purwarianti2019improving,\n title={Improving Bi-LSTM Performance for Indonesian Sentiment Analysis Using Paragraph Vector},\n author={Ayu Purwarianti and Ida Ayu Putu Ari Crisdayanti},\n booktitle={Proceedings of the 2019 International Conference of Advanced Informatics: Concepts, Theory and Applications (ICAICTA)},\n pages={1--5},\n year={2019},\n organization={IEEE}\n}", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "id", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2209866, "num_examples": 11000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 249625, "num_examples": 1260, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 77037, "num_examples": 500, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/train_preprocess.tsv": {"num_bytes": 2186718, "checksum": "50f38ceed9b31521bf1581e126620532cc9b790712938159a2cdcf6906977a9b"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/valid_preprocess.tsv": {"num_bytes": 246974, "checksum": "6ab41ddc9d58a35086f05ebd2e209c74cb03d87d4f51d6abdfba674eafbefa74"}, "https://raw.githubusercontent.com/indobenchmark/indonlu/master/dataset/smsa_doc-sentiment-prosa/test_preprocess_masked_label.tsv": {"num_bytes": 75537, "checksum": "ecc239ad7a069774954843da50eba266398bab70d0370f74684bf1c107b64e70"}}, "download_size": 2509229, "post_processing_size": null, "dataset_size": 2536528, "size_in_bytes": 5045757}, "en": {"description": "English dataset", "citation": "", "homepage": "https://www.indobenchmark.com/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "en", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 0, "num_examples": 0, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/train.tsv": {"num_bytes": 217706, "checksum": "e25dfcb4d3f5fc87caa0e39e0410638dadb1f96f5923b17faea81a0cf5fe66bc"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/valid.tsv": {"num_bytes": 38316, "checksum": "84a25a7fe69a000acfd3adbc4aa19da735eeb448970f7f34c9066d298e7ce077"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/test.tsv": {"num_bytes": 91275, "checksum": "07514cbb73a28c029e4d7a41fc61f3d9a6d1060412ab392e9ef696ba0a215bb0"}}, "download_size": 347297, "post_processing_size": null, "dataset_size": 0, "size_in_bytes": 347297}, "malay": {"description": "malay dataset.", "citation": "malay citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "malay", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 603900, "num_examples": 4687, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 131081, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 131373, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/train.csv": {"num_bytes": 597373, "checksum": "ccc7b0935e93e16d1520e4bb0fbe7dd5d6d6818f0952f535d22e9fa9af45facc"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/valid.csv": {"num_bytes": 129713, "checksum": "76a8a5a450dd2c539601f6c6d967b5b297b73d21c4919d0f8866e14e4ba788d0"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/test.csv": {"num_bytes": 129973, "checksum": "778d62f63321b90b2e3a02e0899fca6fa1495498b7a70fd97fd7575ac632e685"}}, "download_size": 857059, "post_processing_size": null, "dataset_size": 866354, "size_in_bytes": 1723413}, "hindi": {"description": "hindi dataset.", "citation": "hindi citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "hindi", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 163994, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 30140, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 72746, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/train.csv": {"num_bytes": 160376, "checksum": "c6c5923d01e4239a22444846d582456f7befc387437bc111e98124ad88b17341"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/valid.csv": {"num_bytes": 29529, "checksum": "0176eb3434a6deaea84435e6ad3944850368bd28d0f7a5ef9ba15ce86fd3db63"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/test.csv": {"num_bytes": 71019, "checksum": "91951e32164269c9d0edbadb636339c2e0de86da48a8df4ff7207df9353ce4d7"}}, "download_size": 260924, "post_processing_size": null, "dataset_size": 266880, "size_in_bytes": 527804}, "japanese": {"description": "japanese dataset.", "citation": "japanese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "japanese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 35731796, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 872465, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 885070, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/train.csv": {"num_bytes": 35453709, "checksum": "5ef7dd4e8579542a5fd1ae9c9ea491e176d9f4abe75abb4b705824e16d94101b"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/valid.csv": {"num_bytes": 865524, "checksum": "80dc6d595d421aae821bfd250f3c95b94ded6f8f3fa31b8754191688ccdf4913"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/test.csv": {"num_bytes": 878117, "checksum": "5b3ccd3804ff96dcca40ae0cb97b2d1684fa22ee5ea196e84bfcc7ad913e42a9"}}, "download_size": 37197350, "post_processing_size": null, "dataset_size": 37489331, "size_in_bytes": 74686681}, "german": {"description": "german dataset.", "citation": "german citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "german", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 161249, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 26920, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 75683, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/train.csv": {"num_bytes": 158410, "checksum": "94070da6e4b1e715623fa6f11ae05d7f36cf391ec8c4d93e0a1081ca62d5a9b2"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/valid.csv": {"num_bytes": 26380, "checksum": "da5164892730518a0f057669a81ce6028f5eb81462c7b9bcc85576f4073f579d"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/test.csv": {"num_bytes": 74385, "checksum": "12ff6f3101dc29cc235f74376ba9b2c13f275805311e84bd4b65bed3be7c6a1a"}}, "download_size": 259175, "post_processing_size": null, "dataset_size": 263852, "size_in_bytes": 523027}, "italian": {"description": "italian dataset.", "citation": "italian citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "italian", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 189251, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 33708, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 91990, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/train.csv": {"num_bytes": 186422, "checksum": "b1ed0806ab43b55ad8f50dd3d91a7f2de6756c91d7fd66b2c4f1b85fb55aa75d"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/valid.csv": {"num_bytes": 33242, "checksum": "9e0046b91b4ee53adac6482ccf546e5d57f188c892aa9d12b3af714e7aa9e29d"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/test.csv": {"num_bytes": 90316, "checksum": "04f8df3d313761532e06539cc540ea7ace60583cd4e7d8ce3910b8893f83aead"}}, "download_size": 309980, "post_processing_size": null, "dataset_size": 314949, "size_in_bytes": 624929}, "english": {"description": "english dataset.", "citation": "english citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "english", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 223561, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 39283, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 92074, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/train.csv": {"num_bytes": 221597, "checksum": "6a06715f8f437172e57815dcdde70d1547013b12258dcf4e17a30e676a87a4ed"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/valid.csv": {"num_bytes": 38981, "checksum": "32229d119dbd7af4b1b44029f65a4b042279c908435d2c22dc28b548e2f94969"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/test.csv": {"num_bytes": 90639, "checksum": "e6bb6c6d312e529721bfeb1cbcd478521920aacd4761b7aa0ef36c371d38d83a"}}, "download_size": 351217, "post_processing_size": null, "dataset_size": 354918, "size_in_bytes": 706135}, "portuguese": {"description": "portuguese dataset.", "citation": "portuguese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "portuguese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 162877, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 27525, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 76176, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/train.csv": {"num_bytes": 159843, "checksum": "45ca972a55c6e37cfebcddd50d19662d58f1c9c126b2d556213dbdfe4e40f244"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/valid.csv": {"num_bytes": 26958, "checksum": "6220b159ab67b08fc5de8187bbae7dc9b1a2670ea7b452ebab20ce9bd991478e"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/test.csv": {"num_bytes": 74791, "checksum": "39623c2baa83ffbc8c6be765f5c327b021ea27b680e03c11d213b3e0dcb1d385"}}, "download_size": 261592, "post_processing_size": null, "dataset_size": 266578, "size_in_bytes": 528170}, "french": {"description": "french dataset.", "citation": "french citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "french", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 206099, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 35976, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 95286, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/train.csv": {"num_bytes": 203303, "checksum": "a6e8851f19ab22806c1f2f81ba6daba4739d4320e136168d2910d2adbd93fca9"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/valid.csv": {"num_bytes": 35514, "checksum": "46f9daec3eee111c062d8e62d4eb5b3392bfcef77838353841a63b939c763370"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/test.csv": {"num_bytes": 93949, "checksum": "3a74805af25b2388cec73eede423f502a45fcc3b44ce13cc0b9d4b7dbc600082"}}, "download_size": 332766, "post_processing_size": null, "dataset_size": 337361, "size_in_bytes": 670127}, "spanish": {"description": "spanish dataset.", "citation": "spanish citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "spanish", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 178006, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 31785, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 85242, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/train.csv": {"num_bytes": 175316, "checksum": "77cc6d8c7898c14c3779bb19c91a4715491393b8fc9648eb5873491a621fd1d5"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/valid.csv": {"num_bytes": 31340, "checksum": "a1f332556288ee9b3b605fe26bc8f154981bf3d1e990a2e5facfb1c5d61704f8"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/test.csv": {"num_bytes": 83995, "checksum": "a3ce484dfd51c2949763c5715815978fb4761ae4b0958916b2d45e0a2473b997"}}, "download_size": 290651, "post_processing_size": null, "dataset_size": 295033, "size_in_bytes": 585684}, "chinese": {"description": "chinese dataset.", "citation": "chinese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "chinese", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 19594086, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 483785, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 491522, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/train.csv": {"num_bytes": 19319381, "checksum": "d4625b2b637d1c5a18fc57471b9c7a064f1612cb2f79037c1a68d8aa997da0e0"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/valid.csv": {"num_bytes": 476908, "checksum": "2f21d087b384369d6b295d95d1952f2a311e95dcb47317a7b5468a14eada963f"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/test.csv": {"num_bytes": 484667, "checksum": "b6b3722c84182872aa580785fa5b995e287646efa8656bd5d748f0c4437e807b"}}, "download_size": 20280956, "post_processing_size": null, "dataset_size": 20569393, "size_in_bytes": 40850349}, "indonesian": {"description": "indonesian dataset.", "citation": "indonesian citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "indonesian", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2209866, "num_examples": 11000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 249625, "num_examples": 1260, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 77037, "num_examples": 500, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/train.csv": {"num_bytes": 2200101, "checksum": "c94a53dd83bd63f900ad8a61c5be774815112117e8449cfbe600107f49b49cf2"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/valid.csv": {"num_bytes": 248533, "checksum": "341f5e80346fdbeecc6c7ced5f79da4272dce6b470300f9d6b6d27fd0ff15501"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/test.csv": {"num_bytes": 76478, "checksum": "85a0512997522cf821ca74b0cdb113a481efd4ed8579b499562415f5f535cbf3"}}, "download_size": 2525112, "post_processing_size": null, "dataset_size": 2536528, "size_in_bytes": 5061640}, "arabic": {"description": "arabic dataset.", "citation": "arabic citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "arabic", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 306108, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 53276, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 141536, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/train.csv": {"num_bytes": 302424, "checksum": "5e0228ac4720fbc7b17f4a00c7bf127e92823d62e89e889b95db8480eec41e08"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/valid.csv": {"num_bytes": 52614, "checksum": "524707916be5da3536828b5b45466626da471818c931348253c26516f764ebac"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/test.csv": {"num_bytes": 139800, "checksum": "bee9be3dfe95b4ae834d91ba07dbecfe3a4633d3fc33548e2445e9b822245569"}}, "download_size": 494838, "post_processing_size": null, "dataset_size": 500920, "size_in_bytes": 995758}, "all": {"description": "All datasets.", "citation": "All citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "language": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["positive", "neutral", "negative"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "multilingual-sentiments", "config_name": "all", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 62845130, "num_examples": 270399, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 2139118, "num_examples": 10857, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 2475600, "num_examples": 14465, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/train.csv": {"num_bytes": 61441283, "checksum": "7c674d2a4c2f9908c15a5fc6ac56809344a668a7f4ba6b88442c0c4c9f6098c0"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.csv": {"num_bytes": 2086102, "checksum": "76395c8459ec315503bd7424cd9da92a247aed9a0e5883c4ba2e073578044858"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.csv": {"num_bytes": 2404487, "checksum": "fdc1b67622469ac742804333bac847976956260e70a10ab87a3f98330ecc12ca"}}, "download_size": 65931872, "post_processing_size": null, "dataset_size": 67459848, "size_in_bytes": 133391720}}
multilingual-sentiments.py CHANGED
@@ -14,9 +14,9 @@
14
  # limitations under the License.
15
 
16
 
17
- import ast
18
  import csv
19
  import textwrap
 
20
 
21
  import datasets
22
 
@@ -70,25 +70,25 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
70
 
71
  BUILDER_CONFIGS = []
72
 
73
- # BUILDER_CONFIGS.append(
74
- # MultilingualSentimentsConfig(
75
- # name="all",
76
- # description=textwrap.dedent(
77
- # f"""\
78
- # All datasets."""
79
- # ),
80
- # text_features={"text": "text", "language": "language"},
81
- # label_classes=["positive", "neutral", "negative"],
82
- # label_column="label",
83
- # train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/train.tsv",
84
- # valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.tsv",
85
- # test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.tsv",
86
- # citation=textwrap.dedent(
87
- # f"""\
88
- # All citation"""
89
- # ),
90
- # ),
91
- # )
92
 
93
  for lang in LANGUAGES:
94
  BUILDER_CONFIGS.append(
@@ -101,9 +101,9 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
101
  text_features={"text": "text"},
102
  label_classes=["positive", "neutral", "negative"],
103
  label_column="label",
104
- train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/train.tsv",
105
- valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/valid.tsv",
106
- test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/test.tsv",
107
  citation=textwrap.dedent(
108
  f"""\
109
  {lang} citation"""
@@ -140,21 +140,20 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
140
 
141
  def _generate_examples(self, filepath):
142
 
143
- with open(filepath, encoding="utf-8") as f:
144
- reader = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
 
 
 
145
 
146
- next(reader, None) # skip the headers
147
 
148
- for id_, row in enumerate(reader):
149
- if self.config.name != "all":
150
- text = '\t'.join(row[:-1])
151
- label = row[-1]
152
 
153
- yield id_, {"text": text, "label": label}
154
 
155
- else:
156
- text = '\t'.join(row[:-3])
157
- label = row[-2]
158
- language = row[-1]
159
 
160
- yield id_, {"text": text, "label": label, "language": language}
 
14
  # limitations under the License.
15
 
16
 
 
17
  import csv
18
  import textwrap
19
+ import pandas as pd
20
 
21
  import datasets
22
 
 
70
 
71
  BUILDER_CONFIGS = []
72
 
73
+ BUILDER_CONFIGS.append(
74
+ MultilingualSentimentsConfig(
75
+ name="all",
76
+ description=textwrap.dedent(
77
+ f"""\
78
+ All datasets."""
79
+ ),
80
+ text_features={"text": "text", "language": "language"},
81
+ label_classes=["positive", "neutral", "negative"],
82
+ label_column="label",
83
+ train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/train.csv",
84
+ valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.csv",
85
+ test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.csv",
86
+ citation=textwrap.dedent(
87
+ f"""\
88
+ All citation"""
89
+ ),
90
+ ),
91
+ )
92
 
93
  for lang in LANGUAGES:
94
  BUILDER_CONFIGS.append(
 
101
  text_features={"text": "text"},
102
  label_classes=["positive", "neutral", "negative"],
103
  label_column="label",
104
+ train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/train.csv",
105
+ valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/valid.csv",
106
+ test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/test.csv",
107
  citation=textwrap.dedent(
108
  f"""\
109
  {lang} citation"""
 
140
 
141
  def _generate_examples(self, filepath):
142
 
143
+ # with open(filepath, encoding="utf-8") as f:
144
+ # reader = csv.reader(f, quoting=csv.QUOTE_NONE)
145
+ df = pd.read_csv(filepath)
146
+
147
+ # next(reader, None) # skip the headers
148
 
149
+ for id_, row in df.iterrows():
150
 
151
+ if self.config.name != "all":
152
+ text, label = row["text"], row["label"]
 
 
153
 
154
+ yield id_, {"text": text, "label": label}
155
 
156
+ else:
157
+ text, label, language = row["text"], row["label"], row["language"]
 
 
158
 
159
+ yield id_, {"text": text, "label": label, "language": language}