system HF staff commited on
Commit
2570080
1 Parent(s): 3d5c2b0

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. kor_sarcasm.py +2 -0
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "This is a dataset designed to detect sarcasm in Korean because it distorts the literal meaning of a sentence\nand is highly related to sentiment classification.\n", "citation": "", "homepage": "https://github.com/SpellOnYou/korean-sarcasm", "license": "MIT License", "features": {"tokens": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["no_sarcasm", "sarcasm"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "kor_sarcasm", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1012030, "num_examples": 9000, "dataset_name": "kor_sarcasm"}, "test": {"name": "test", "num_bytes": 32480, "num_examples": 301, "dataset_name": "kor_sarcasm"}}, "download_checksums": {"https://raw.githubusercontent.com/SpellOnYou/korean-sarcasm/master/data/jiwon/train.csv": {"num_bytes": 977993, "checksum": "af62a58789ae591733f81820fb3fc955bb0c6abdfc3bc1390c3293623bc5bfa4"}, "https://raw.githubusercontent.com/SpellOnYou/korean-sarcasm/master/data/jiwon/test.csv": {"num_bytes": 30962, "checksum": "e0879f7f86923eb5b46f0154e8eace0137224cbd021dfdb1d0d44427be16bda9"}}, "download_size": 1008955, "post_processing_size": null, "dataset_size": 1044510, "size_in_bytes": 2053465}}
1
+ {"default": {"description": "This is a dataset designed to detect sarcasm in Korean because it distorts the literal meaning of a sentence\nand is highly related to sentiment classification.\n", "citation": "", "homepage": "https://github.com/SpellOnYou/korean-sarcasm", "license": "MIT License", "features": {"tokens": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["no_sarcasm", "sarcasm"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "tokens", "label_column": "label", "labels": ["no_sarcasm", "sarcasm"]}], "builder_name": "kor_sarcasm", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1012030, "num_examples": 9000, "dataset_name": "kor_sarcasm"}, "test": {"name": "test", "num_bytes": 32480, "num_examples": 301, "dataset_name": "kor_sarcasm"}}, "download_checksums": {"https://raw.githubusercontent.com/SpellOnYou/korean-sarcasm/master/data/jiwon/train.csv": {"num_bytes": 977993, "checksum": "af62a58789ae591733f81820fb3fc955bb0c6abdfc3bc1390c3293623bc5bfa4"}, "https://raw.githubusercontent.com/SpellOnYou/korean-sarcasm/master/data/jiwon/test.csv": {"num_bytes": 30962, "checksum": "e0879f7f86923eb5b46f0154e8eace0137224cbd021dfdb1d0d44427be16bda9"}}, "download_size": 1008955, "post_processing_size": null, "dataset_size": 1044510, "size_in_bytes": 2053465}}
kor_sarcasm.py CHANGED
@@ -18,6 +18,7 @@
18
  import csv
19
 
20
  import datasets
 
21
 
22
 
23
  _DESCRIPTION = """\
@@ -51,6 +52,7 @@ class KorSarcasm(datasets.GeneratorBasedBuilder):
51
  supervised_keys=None,
52
  homepage=_HOMEPAGE,
53
  license=_LICENSE,
 
54
  )
55
 
56
  def _split_generators(self, dl_manager):
18
  import csv
19
 
20
  import datasets
21
+ from datasets.tasks import TextClassification
22
 
23
 
24
  _DESCRIPTION = """\
52
  supervised_keys=None,
53
  homepage=_HOMEPAGE,
54
  license=_LICENSE,
55
+ task_templates=[TextClassification(text_column="tokens", label_column="label")],
56
  )
57
 
58
  def _split_generators(self, dl_manager):