mkon commited on
Commit
aec05e6
1 Parent(s): 2c055fc

validation done

Browse files
Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. rumoureval_2019.py +6 -3
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"train": {"description": "This new dataset is designed to solve this great NLP task and is crafted with a lot of care.\n", "citation": "@InProceedings{huggingface:dataset,\ntitle = {A great new dataset},\nauthor={huggingface, Inc.\n},\nyear={2020}\n}\n", "homepage": "", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "source_text": {"dtype": "string", "id": null, "_type": "Value"}, "reply_text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 4, "names": ["support", "query", "deny", "comment"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "rumour_eval2019", "config_name": "train", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1242200, "num_examples": 4879, "dataset_name": "rumour_eval2019"}}, "download_checksums": {"rumoureval2019_train.csv": {"num_bytes": 1203917, "checksum": "134c036e34da708f0edb22b3cc688054d6395d1669eef78e4afa0fd9a4ed4c43"}}, "download_size": 1203917, "post_processing_size": null, "dataset_size": 1242200, "size_in_bytes": 2446117}}
 
1
+ {"train": {"description": "This new dataset is designed to solve this great NLP task and is crafted with a lot of care.\n", "citation": "@InProceedings{huggingface:dataset,\ntitle = {A great new dataset},\nauthor={huggingface, Inc.\n},\nyear={2020}\n}\n", "homepage": "", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "source_text": {"dtype": "string", "id": null, "_type": "Value"}, "reply_text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 4, "names": ["support", "query", "deny", "comment"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "rumour_eval2019", "config_name": "train", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1242200, "num_examples": 4879, "dataset_name": "rumour_eval2019"}}, "download_checksums": {"rumoureval2019_train.csv": {"num_bytes": 1203917, "checksum": "134c036e34da708f0edb22b3cc688054d6395d1669eef78e4afa0fd9a4ed4c43"}}, "download_size": 1203917, "post_processing_size": null, "dataset_size": 1242200, "size_in_bytes": 2446117}, "RumourEval2019": {"description": "This new dataset is designed to solve this great NLP task and is crafted with a lot of care.\n", "citation": "@InProceedings{huggingface:dataset,\ntitle = {A great new dataset},\nauthor={huggingface, Inc.\n},\nyear={2020}\n}\n", "homepage": "", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "source_text": {"dtype": "string", "id": null, "_type": "Value"}, "reply_text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 4, "names": ["support", "query", "deny", "comment"], "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "rumour_eval2019", "config_name": "RumourEval2019", "version": {"version_str": "0.9.0", "description": null, "major": 0, "minor": 9, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1242200, "num_examples": 4879, "dataset_name": "rumour_eval2019"}, "validation": {"name": "validation", "num_bytes": 412707, "num_examples": 1440, "dataset_name": "rumour_eval2019"}}, "download_checksums": {"rumoureval2019_train.csv": {"num_bytes": 1203917, "checksum": "134c036e34da708f0edb22b3cc688054d6395d1669eef78e4afa0fd9a4ed4c43"}, "rumoureval2019_val.csv": {"num_bytes": 402303, "checksum": "6cc859c2eff320ba002866e0b78f7e956b78d58e9e3a7843798b2dd9c23de201"}}, "download_size": 1606220, "post_processing_size": null, "dataset_size": 1654907, "size_in_bytes": 3261127}}
rumoureval_2019.py CHANGED
@@ -45,15 +45,18 @@ _HOMEPAGE = ""
45
  # TODO: Add the licence for the dataset here if you can find it
46
  _LICENSE = ""
47
 
 
 
 
 
 
48
  class RumourEval2019(datasets.GeneratorBasedBuilder):
49
  """TODO: Short description of my dataset."""
50
 
51
  VERSION = datasets.Version("0.9.0")
52
 
53
  BUILDER_CONFIGS = [
54
- datasets.BuilderConfig(name="train", version=VERSION, description="Training data for RumourEval 2019"),
55
- datasets.BuilderConfig(name="validation", version=VERSION, description="Validation data for RumourEval 2019"),
56
- datasets.BuilderConfig(name="test", version=VERSION, description="Testing data for RumourEval 2019")
57
  ]
58
 
59
  def _info(self):
 
45
  # TODO: Add the licence for the dataset here if you can find it
46
  _LICENSE = ""
47
 
48
+ class RumourEval2019Config(datasets.BuilderConfig):
49
+
50
+ def __init__(self, **kwargs):
51
+ super(RumourEval2019Config, self).__init__(**kwargs)
52
+
53
  class RumourEval2019(datasets.GeneratorBasedBuilder):
54
  """TODO: Short description of my dataset."""
55
 
56
  VERSION = datasets.Version("0.9.0")
57
 
58
  BUILDER_CONFIGS = [
59
+ RumourEval2019Config(name="RumourEval2019", version=VERSION, description="Stance Detection texts"),
 
 
60
  ]
61
 
62
  def _info(self):