system HF staff commited on
Commit
f275a06
1 Parent(s): f468661

Update files from the datasets library (from 1.8.0)

Browse files

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

Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. wisesight_sentiment.py +2 -0
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"wisesight_sentiment": {"description": "Wisesight Sentiment Corpus: Social media messages in Thai language with sentiment category (positive, neutral, negative, question)\n* Released to public domain under Creative Commons Zero v1.0 Universal license.\n* Category (Labels): {\"pos\": 0, \"neu\": 1, \"neg\": 2, \"q\": 3}\n* Size: 26,737 messages\n* Language: Central Thai\n* Style: Informal and conversational. With some news headlines and advertisement.\n* Time period: Around 2016 to early 2019. With small amount from other period.\n* Domains: Mixed. Majority are consumer products and services (restaurants, cosmetics, drinks, car, hotels), with some current affairs.\n* Privacy:\n * Only messages that made available to the public on the internet (websites, blogs, social network sites).\n * For Facebook, this means the public comments (everyone can see) that made on a public page.\n * Private/protected messages and messages in groups, chat, and inbox are not included.\n* Alternations and modifications:\n * Keep in mind that this corpus does not statistically represent anything in the language register.\n * Large amount of messages are not in their original form. Personal data are removed or masked.\n * Duplicated, leading, and trailing whitespaces are removed. Other punctuations, symbols, and emojis are kept intact.\n (Mis)spellings are kept intact.\n * Messages longer than 2,000 characters are removed.\n * Long non-Thai messages are removed. Duplicated message (exact match) are removed.\n* More characteristics of the data can be explore: https://github.com/PyThaiNLP/wisesight-sentiment/blob/master/exploration.ipynb\n", "citation": "@software{bact_2019_3457447,\n author = {Suriyawongkul, Arthit and\n Chuangsuwanich, Ekapol and\n Chormai, Pattarawat and\n Polpanumas, Charin},\n title = {PyThaiNLP/wisesight-sentiment: First release},\n month = sep,\n year = 2019,\n publisher = {Zenodo},\n version = {v1.0},\n doi = {10.5281/zenodo.3457447},\n url = {https://doi.org/10.5281/zenodo.3457447}\n}\n", "homepage": "https://github.com/PyThaiNLP/wisesight-sentiment", "license": "", "features": {"texts": {"dtype": "string", "id": null, "_type": "Value"}, "category": {"num_classes": 4, "names": ["pos", "neu", "neg", "q"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "wisesight_sentiment", "config_name": "wisesight_sentiment", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5328819, "num_examples": 21628, "dataset_name": "wisesight_sentiment"}, "validation": {"name": "validation", "num_bytes": 593570, "num_examples": 2404, "dataset_name": "wisesight_sentiment"}, "test": {"name": "test", "num_bytes": 662137, "num_examples": 2671, "dataset_name": "wisesight_sentiment"}}, "download_checksums": {"https://github.com/PyThaiNLP/wisesight-sentiment/raw/master/huggingface/data.zip": {"num_bytes": 2102326, "checksum": "d310a74b2360c61cec815ac918bfece0b6f0182e0144c4d7f7379c9b02feb6b0"}}, "download_size": 2102326, "post_processing_size": null, "dataset_size": 6584526, "size_in_bytes": 8686852}}
 
1
+ {"wisesight_sentiment": {"description": "Wisesight Sentiment Corpus: Social media messages in Thai language with sentiment category (positive, neutral, negative, question)\n* Released to public domain under Creative Commons Zero v1.0 Universal license.\n* Category (Labels): {\"pos\": 0, \"neu\": 1, \"neg\": 2, \"q\": 3}\n* Size: 26,737 messages\n* Language: Central Thai\n* Style: Informal and conversational. With some news headlines and advertisement.\n* Time period: Around 2016 to early 2019. With small amount from other period.\n* Domains: Mixed. Majority are consumer products and services (restaurants, cosmetics, drinks, car, hotels), with some current affairs.\n* Privacy:\n * Only messages that made available to the public on the internet (websites, blogs, social network sites).\n * For Facebook, this means the public comments (everyone can see) that made on a public page.\n * Private/protected messages and messages in groups, chat, and inbox are not included.\n* Alternations and modifications:\n * Keep in mind that this corpus does not statistically represent anything in the language register.\n * Large amount of messages are not in their original form. Personal data are removed or masked.\n * Duplicated, leading, and trailing whitespaces are removed. Other punctuations, symbols, and emojis are kept intact.\n (Mis)spellings are kept intact.\n * Messages longer than 2,000 characters are removed.\n * Long non-Thai messages are removed. Duplicated message (exact match) are removed.\n* More characteristics of the data can be explore: https://github.com/PyThaiNLP/wisesight-sentiment/blob/master/exploration.ipynb\n", "citation": "@software{bact_2019_3457447,\n author = {Suriyawongkul, Arthit and\n Chuangsuwanich, Ekapol and\n Chormai, Pattarawat and\n Polpanumas, Charin},\n title = {PyThaiNLP/wisesight-sentiment: First release},\n month = sep,\n year = 2019,\n publisher = {Zenodo},\n version = {v1.0},\n doi = {10.5281/zenodo.3457447},\n url = {https://doi.org/10.5281/zenodo.3457447}\n}\n", "homepage": "https://github.com/PyThaiNLP/wisesight-sentiment", "license": "", "features": {"texts": {"dtype": "string", "id": null, "_type": "Value"}, "category": {"num_classes": 4, "names": ["pos", "neu", "neg", "q"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "texts", "label_column": "category", "labels": ["neg", "neu", "pos", "q"]}], "builder_name": "wisesight_sentiment", "config_name": "wisesight_sentiment", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 5328819, "num_examples": 21628, "dataset_name": "wisesight_sentiment"}, "validation": {"name": "validation", "num_bytes": 593570, "num_examples": 2404, "dataset_name": "wisesight_sentiment"}, "test": {"name": "test", "num_bytes": 662137, "num_examples": 2671, "dataset_name": "wisesight_sentiment"}}, "download_checksums": {"https://github.com/PyThaiNLP/wisesight-sentiment/raw/master/huggingface/data.zip": {"num_bytes": 2102326, "checksum": "d310a74b2360c61cec815ac918bfece0b6f0182e0144c4d7f7379c9b02feb6b0"}}, "download_size": 2102326, "post_processing_size": null, "dataset_size": 6584526, "size_in_bytes": 8686852}}
wisesight_sentiment.py CHANGED
@@ -5,6 +5,7 @@ import json
5
  import os
6
 
7
  import datasets
 
8
 
9
 
10
  _CITATION = """\
@@ -87,6 +88,7 @@ class WisesightSentiment(datasets.GeneratorBasedBuilder):
87
  supervised_keys=None,
88
  homepage="https://github.com/PyThaiNLP/wisesight-sentiment",
89
  citation=_CITATION,
 
90
  )
91
 
92
  def _split_generators(self, dl_manager):
 
5
  import os
6
 
7
  import datasets
8
+ from datasets.tasks import TextClassification
9
 
10
 
11
  _CITATION = """\
 
88
  supervised_keys=None,
89
  homepage="https://github.com/PyThaiNLP/wisesight-sentiment",
90
  citation=_CITATION,
91
+ task_templates=[TextClassification(text_column="texts", label_column="category")],
92
  )
93
 
94
  def _split_generators(self, dl_manager):