tyqiangz commited on
Commit
aee47b3
1 Parent(s): 79fc089

added english dataset

Browse files
Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. multilingual-sentiments.py +18 -18
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}\n@inproceedings{wilie2020indonlu,\ntitle = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},\nauthors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},\nbooktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},\nyear={2020}\n}\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}}
 
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}}
multilingual-sentiments.py CHANGED
@@ -21,25 +21,8 @@ import textwrap
21
 
22
  import datasets
23
 
24
-
25
- _INDONLU_CITATION = """\
26
- @inproceedings{wilie2020indonlu,
27
- title = {{IndoNLU}: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding},
28
- authors={Bryan Wilie and Karissa Vincentio and Genta Indra Winata and Samuel Cahyawijaya and X. Li and Zhi Yuan Lim and S. Soleman and R. Mahendra and Pascale Fung and Syafri Bahar and A. Purwarianti},
29
- booktitle={Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing},
30
- year={2020}
31
- }
32
- """
33
-
34
- _INDONLU_DESCRIPTION = """\
35
- The IndoNLU benchmark is a collection of resources for training, evaluating, \
36
- and analyzing natural language understanding systems for Bahasa Indonesia.
37
- """
38
-
39
  _INDONLU_HOMEPAGE = "https://www.indobenchmark.com/"
40
 
41
- _INDONLU_LICENSE = "https://raw.githubusercontent.com/indobenchmark/indonlu/master/LICENSE"
42
-
43
 
44
  class IndonluConfig(datasets.BuilderConfig):
45
  """BuilderConfig for IndoNLU"""
@@ -112,6 +95,23 @@ class Indonlu(datasets.GeneratorBasedBuilder):
112
  organization={IEEE}
113
  }"""
114
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  )
116
  ]
117
 
@@ -126,7 +126,7 @@ class Indonlu(datasets.GeneratorBasedBuilder):
126
  description=self.config.description,
127
  features=datasets.Features(features),
128
  homepage=_INDONLU_HOMEPAGE,
129
- citation=self.config.citation + "\n" + _INDONLU_CITATION,
130
  )
131
 
132
  def _split_generators(self, dl_manager):
 
21
 
22
  import datasets
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  _INDONLU_HOMEPAGE = "https://www.indobenchmark.com/"
25
 
 
 
26
 
27
  class IndonluConfig(datasets.BuilderConfig):
28
  """BuilderConfig for IndoNLU"""
 
95
  organization={IEEE}
96
  }"""
97
  ),
98
+ ),
99
+ IndonluConfig(
100
+ name="en",
101
+ description=textwrap.dedent(
102
+ """\
103
+ English dataset"""
104
+ ),
105
+ text_features={"text": "text"},
106
+ # label classes sorted refer to https://github.com/indobenchmark/indonlu/blob/master/utils/data_utils.py
107
+ label_classes=["positive", "neutral", "negative"],
108
+ label_column="label",
109
+ train_url="https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/train.tsv",
110
+ valid_url="https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/valid.tsv",
111
+ test_url="https://raw.githubusercontent.com/tyqiangz/multilingual-sentiment-datasets/main/en/test.tsv",
112
+ citation=textwrap.dedent(
113
+ """"""
114
+ ),
115
  )
116
  ]
117
 
 
126
  description=self.config.description,
127
  features=datasets.Features(features),
128
  homepage=_INDONLU_HOMEPAGE,
129
+ citation=self.config.citation,
130
  )
131
 
132
  def _split_generators(self, dl_manager):