Datasets:
added data source column to all dataset splits
Browse files- .vscode/launch.json +16 -0
- dataset_infos.json +1 -1
- multilingual-sentiments.py +23 -23
.vscode/launch.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
// Use IntelliSense to learn about possible attributes.
|
3 |
+
// Hover to view descriptions of existing attributes.
|
4 |
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5 |
+
"version": "0.2.0",
|
6 |
+
"configurations": [
|
7 |
+
{
|
8 |
+
"name": "Python: Current File",
|
9 |
+
"type": "python",
|
10 |
+
"request": "launch",
|
11 |
+
"program": "${file}",
|
12 |
+
"console": "integratedTerminal",
|
13 |
+
"justMyCode": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
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"}, "source": {"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": 650770, "num_examples": 4687, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 141131, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 141423, "num_examples": 1005, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/train.csv": {"num_bytes": 630189, "checksum": "bd27eaaa2b014119fea0ffb90bcb3138b456d4047664724fc65ac74426615721"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/valid.csv": {"num_bytes": 136755, "checksum": "ee885dcd773f6eed7894519a6af355b40f0928dd2895ef7d95ea9e2a5b5cf403"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/malay/test.csv": {"num_bytes": 137015, "checksum": "32ad79fc03f957c7d8ae0253a5a3df8b59c7c2d92b5d529cd8fec192c10a79f6"}}, "download_size": 903959, "post_processing_size": null, "dataset_size": 933324, "size_in_bytes": 1837283}, "hindi": {"description": "hindi dataset.", "citation": "hindi citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 187901, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 34352, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 84056, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/train.csv": {"num_bytes": 178773, "checksum": "b4a6bc117a89851c8367408edb0400a1405df0c246de070f99005f8bcaaa8fd0"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/valid.csv": {"num_bytes": 32776, "checksum": "cf56ec1c0a9a1e7d55dcc60170f4ab873bbb8b856dd4e8466e9a7f9c4dfc429c"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/hindi/test.csv": {"num_bytes": 79726, "checksum": "16be62d7f2b57f396637aabda7db50a63c7cea90571c331035a30d8e927ee480"}}, "download_size": 291275, "post_processing_size": null, "dataset_size": 306309, "size_in_bytes": 597584}, "japanese": {"description": "japanese dataset.", "citation": "japanese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 38611796, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 944465, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 957070, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/train.csv": {"num_bytes": 37973716, "checksum": "399be7d47ddcf732804d0a03a1ecce9b7fabf82cc70355f2b3873314b4acc79b"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/valid.csv": {"num_bytes": 928531, "checksum": "174892a3a91d55314044d85a56a5d6becc48138d4d74cacd4c5f20606b9b7c01"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/japanese/test.csv": {"num_bytes": 941124, "checksum": "2e219b35caa16d82b6e27bd6ec5660b9ffb70c6d4996606286c0fb10b1259501"}}, "download_size": 39843371, "post_processing_size": null, "dataset_size": 40513331, "size_in_bytes": 80356702}, "german": {"description": "german dataset.", "citation": "german citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 179639, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 30160, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 84383, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/train.csv": {"num_bytes": 171290, "checksum": "4c1a9f9c0454fc081ddd41fbac6bc883cf181bca7100d008591bdf2f2a82636c"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/valid.csv": {"num_bytes": 28655, "checksum": "346f76a36ea1bcc7342a91599bc245d42f162c14874bc2adf332e4a866ba8fde"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/german/test.csv": {"num_bytes": 80482, "checksum": "9310082f16b14849db4c1515c3d07760bf7b2d8e9fe2199783aeaf5ec50e63aa"}}, "download_size": 280427, "post_processing_size": null, "dataset_size": 294182, "size_in_bytes": 574609}, "italian": {"description": "italian dataset.", "citation": "italian citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 222353, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 39540, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 107650, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/train.csv": {"num_bytes": 214014, "checksum": "99fd4f68ab487cf642667f80f45bc9278923f633556deea27bcffdfb1448d107"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/valid.csv": {"num_bytes": 38109, "checksum": "6e786c68de7bad9d1a39d7270c003ceedc76a764ca9e26f3ac8fd166dc6972e6"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/italian/test.csv": {"num_bytes": 103373, "checksum": "30c8b7a76a918e32e1bf616914f858e0c50810e8eb40da80cdf89f116fa8df8b"}}, "download_size": 355496, "post_processing_size": null, "dataset_size": 369543, "size_in_bytes": 725039}, "english": {"description": "english dataset.", "citation": "english citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 254824, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 44791, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 106864, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/train.csv": {"num_bytes": 247350, "checksum": "08abf3a6995d732dc1af70892fdcd6728fb27cac00e0dbdde7aa1ac015ff6056"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/valid.csv": {"num_bytes": 43524, "checksum": "32a36e15fed9d7bf8b857e6a48217715d9e38b001ab8c34824ce2dfc6709617c"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/english/test.csv": {"num_bytes": 102826, "checksum": "a7db671f797205d15a0570091e967f9a04c1fc071cb53b4c4197b79b287f8f37"}}, "download_size": 393700, "post_processing_size": null, "dataset_size": 406479, "size_in_bytes": 800179}, "portuguese": {"description": "portuguese dataset.", "citation": "portuguese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 192301, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 32709, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 90096, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/train.csv": {"num_bytes": 183757, "checksum": "0bc3fbbe0533275a57a3b00a451aecd43ddc04d81f061445bc4cfd86739c4881"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/valid.csv": {"num_bytes": 31177, "checksum": "7b84b6e1f51e3f91b5c37b9624969afe5142bc72c7e2c3623bb3112747749516"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/portuguese/test.csv": {"num_bytes": 86108, "checksum": "07b93e2157fcc96085ac8dde11b1a16d2968627b4002ec2513a4ba25897cf864"}}, "download_size": 301042, "post_processing_size": null, "dataset_size": 315106, "size_in_bytes": 616148}, "french": {"description": "french dataset.", "citation": "french citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 230006, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 40188, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 106596, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/train.csv": {"num_bytes": 221700, "checksum": "b05f8c635217bb53d12307437c2430e0dcbbf77080fb142a9c7c82bef001d695"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/valid.csv": {"num_bytes": 38761, "checksum": "f0603e275ecdeea2b272334b26eb2950a5d7f0a178567278ea95f8c65fb5e0e3"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/french/test.csv": {"num_bytes": 102656, "checksum": "6bee140ec5d006b64df9b9b435024f59aa30aeb6873b722d0044b28baa431fef"}}, "download_size": 363117, "post_processing_size": null, "dataset_size": 376790, "size_in_bytes": 739907}, "spanish": {"description": "spanish dataset.", "citation": "spanish citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 211108, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 37617, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 100902, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/train.csv": {"num_bytes": 202908, "checksum": "25ae7837279100e20f113a8f1c3ea64299a264dbeecc53611e80d1db48238269"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/valid.csv": {"num_bytes": 36207, "checksum": "83e85b71571dcec666c5c085fb751ea7882a42e3478a4fe8f48223fce120a357"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/spanish/test.csv": {"num_bytes": 97052, "checksum": "ab50d69bf7fc6e7b32d30f692a0b72edec6a5a6cc4553634ff1d9e993b1bf79d"}}, "download_size": 336167, "post_processing_size": null, "dataset_size": 349627, "size_in_bytes": 685794}, "chinese": {"description": "chinese dataset.", "citation": "chinese citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 22474086, "num_examples": 120000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 555785, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 563522, "num_examples": 3000, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/train.csv": {"num_bytes": 21839388, "checksum": "4d847b1d300e52c3a67cc863727dfe24d7fc7c35350aa21767a9b5536af51911"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/valid.csv": {"num_bytes": 539915, "checksum": "c1b20e7b276ce73f9f477e5c0b0359aed101373098bbb9464e2dfe7ae514903f"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/chinese/test.csv": {"num_bytes": 547674, "checksum": "5e44c1335c36d5694dc50bff125d0a0c0d4b869968c06fa54ef43606767acce3"}}, "download_size": 22926977, "post_processing_size": null, "dataset_size": 23593393, "size_in_bytes": 46520370}, "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.tsv": {"num_bytes": 61412701, "checksum": "657a33dc0b549128ffc0d5a487686d9b6bef7f6d112e496f8098a6f74e286d71"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.tsv": {"num_bytes": 2082616, "checksum": "edfa21eeb95b863405f324d403763649638fd6edd759546d91a5c56da87b088c"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.tsv": {"num_bytes": 2400597, "checksum": "47ad148e1bf1784d655c81bf008b11ca0fc35cfca927effcafc14819232434ef"}}, "download_size": 65895914, "post_processing_size": null, "dataset_size": 67459848, "size_in_bytes": 133355762}, "indonesian": {"description": "indonesian dataset.", "citation": "indonesian citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 2396866, "num_examples": 11000, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 271045, "num_examples": 1260, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 85537, "num_examples": 500, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/train.csv": {"num_bytes": 2354108, "checksum": "6a8af2355d9e03f262602308328106e9e04b77b7fe345adfe73093805a39e1f5"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/valid.csv": {"num_bytes": 266180, "checksum": "092675412a96d4411401078b124fb31a415b7ce17e94b0abe6357e70c4bf3306"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/indonesian/test.csv": {"num_bytes": 83485, "checksum": "4bb9b30cb0d8a288809e1b33065a78d7543f8d38377cd8d9812503ca087d9726"}}, "download_size": 2703773, "post_processing_size": null, "dataset_size": 2753448, "size_in_bytes": 5457221}, "arabic": {"description": "arabic dataset.", "citation": "arabic citation", "homepage": "", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "source": {"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": 337371, "num_examples": 1839, "dataset_name": "multilingual-sentiments"}, "validation": {"name": "validation", "num_bytes": 58784, "num_examples": 324, "dataset_name": "multilingual-sentiments"}, "test": {"name": "test", "num_bytes": 156326, "num_examples": 870, "dataset_name": "multilingual-sentiments"}}, "download_checksums": {"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/train.csv": {"num_bytes": 328177, "checksum": "de04c3f30a250a1eea2b099a38b47950ffdb497de48505720979128cdafdcb87"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/valid.csv": {"num_bytes": 57157, "checksum": "aa2bfcacc2bb628e86fa637a2322f2b716558a9d03731a3ebbcd304333025a38"}, "https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/arabic/test.csv": {"num_bytes": 151987, "checksum": "aadb117e75f886b99edcdcd4bfaad9ace433bbe758700038dc7806596c889373"}}, "download_size": 537321, "post_processing_size": null, "dataset_size": 552481, "size_in_bytes": 1089802}}
|
multilingual-sentiments.py
CHANGED
@@ -14,12 +14,13 @@
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
|
17 |
-
import ast
|
18 |
import csv
|
19 |
import textwrap
|
20 |
|
21 |
import datasets
|
22 |
|
|
|
|
|
23 |
LANGUAGES = ['malay', 'hindi', 'japanese', 'german',
|
24 |
'italian', 'english', 'portuguese', 'french',
|
25 |
'spanish', 'chinese', 'indonesian', 'arabic'
|
@@ -77,12 +78,12 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
|
|
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.
|
84 |
-
# valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.
|
85 |
-
# test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.
|
86 |
# citation=textwrap.dedent(
|
87 |
# f"""\
|
88 |
# All citation"""
|
@@ -98,12 +99,12 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
|
|
98 |
f"""\
|
99 |
{lang} dataset."""
|
100 |
),
|
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.
|
105 |
-
valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/valid.
|
106 |
-
test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/test.
|
107 |
citation=textwrap.dedent(
|
108 |
f"""\
|
109 |
{lang} citation"""
|
@@ -140,21 +141,20 @@ class MultilingualSentiments(datasets.GeneratorBasedBuilder):
|
|
140 |
|
141 |
def _generate_examples(self, filepath):
|
142 |
|
143 |
-
|
144 |
-
reader = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
|
145 |
-
|
146 |
-
next(reader, None) # skip the headers
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
|
|
152 |
|
153 |
-
|
154 |
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
|
|
159 |
|
160 |
-
|
|
|
14 |
# limitations under the License.
|
15 |
|
16 |
|
|
|
17 |
import csv
|
18 |
import textwrap
|
19 |
|
20 |
import datasets
|
21 |
|
22 |
+
import pandas as pd
|
23 |
+
|
24 |
LANGUAGES = ['malay', 'hindi', 'japanese', 'german',
|
25 |
'italian', 'english', 'portuguese', 'french',
|
26 |
'spanish', 'chinese', 'indonesian', 'arabic'
|
|
|
78 |
# f"""\
|
79 |
# All datasets."""
|
80 |
# ),
|
81 |
+
# text_features={"text": "text", "source": "source", "language": "language"},
|
82 |
# label_classes=["positive", "neutral", "negative"],
|
83 |
# label_column="label",
|
84 |
+
# train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/train.csv",
|
85 |
+
# valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/valid.csv",
|
86 |
+
# test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/all/test.csv",
|
87 |
# citation=textwrap.dedent(
|
88 |
# f"""\
|
89 |
# All citation"""
|
|
|
99 |
f"""\
|
100 |
{lang} dataset."""
|
101 |
),
|
102 |
+
text_features={"text": "text", "source": "source"},
|
103 |
label_classes=["positive", "neutral", "negative"],
|
104 |
label_column="label",
|
105 |
+
train_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/train.csv",
|
106 |
+
valid_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/valid.csv",
|
107 |
+
test_url=f"https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/data/{lang}/test.csv",
|
108 |
citation=textwrap.dedent(
|
109 |
f"""\
|
110 |
{lang} citation"""
|
|
|
141 |
|
142 |
def _generate_examples(self, filepath):
|
143 |
|
144 |
+
df = pd.read_csv(filepath)
|
|
|
|
|
|
|
145 |
|
146 |
+
for id_, row in df.iterrows():
|
147 |
+
if self.config.name != "all":
|
148 |
+
text = row["text"]
|
149 |
+
label = row["label"]
|
150 |
+
source = row["source"]
|
151 |
|
152 |
+
yield id_, {"text": text, "label": label, "source": source}
|
153 |
|
154 |
+
else:
|
155 |
+
text = row["text"]
|
156 |
+
label = row["label"]
|
157 |
+
source = row["source"]
|
158 |
+
language = row["language"]
|
159 |
|
160 |
+
yield id_, {"text": text, "label": label, "source": source, "language": language}
|