system HF staff commited on
Commit
2634ddb
1 Parent(s): 2e2986c

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 (3) hide show
  1. README.md +2 -0
  2. dataset_infos.json +1 -1
  3. sem_eval_2010_task_8.py +2 -0
README.md CHANGED
@@ -1,4 +1,6 @@
1
  ---
 
 
2
  paperswithcode_id: semeval-2010-task-8
3
  ---
4
 
1
  ---
2
+ languages:
3
+ - en
4
  paperswithcode_id: semeval-2010-task-8
5
  ---
6
 
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "The SemEval-2010 Task 8 focuses on Multi-way classification of semantic relations between pairs of nominals.\nThe task was designed to compare different approaches to semantic relation classification\nand to provide a standard testbed for future research.\n", "citation": "@inproceedings{hendrickx-etal-2010-semeval,\n title = \"{S}em{E}val-2010 Task 8: Multi-Way Classification of Semantic Relations between Pairs of Nominals\",\n author = \"Hendrickx, Iris and\n Kim, Su Nam and\n Kozareva, Zornitsa and\n Nakov, Preslav and\n {'O} S{'e}aghdha, Diarmuid and\n Pad{'o}, Sebastian and\n Pennacchiotti, Marco and\n Romano, Lorenza and\n Szpakowicz, Stan\",\n booktitle = \"Proceedings of the 5th International Workshop on Semantic Evaluation\",\n month = jul,\n year = \"2010\",\n address = \"Uppsala, Sweden\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/S10-1006\",\n pages = \"33--38\",\n}\n", "homepage": "https://semeval2.fbk.eu/semeval2.php?location=tasks&taskid=11", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"num_classes": 19, "names": ["Cause-Effect(e1,e2)", "Cause-Effect(e2,e1)", "Component-Whole(e1,e2)", "Component-Whole(e2,e1)", "Content-Container(e1,e2)", "Content-Container(e2,e1)", "Entity-Destination(e1,e2)", "Entity-Destination(e2,e1)", "Entity-Origin(e1,e2)", "Entity-Origin(e2,e1)", "Instrument-Agency(e1,e2)", "Instrument-Agency(e2,e1)", "Member-Collection(e1,e2)", "Member-Collection(e2,e1)", "Message-Topic(e1,e2)", "Message-Topic(e2,e1)", "Product-Producer(e1,e2)", "Product-Producer(e2,e1)", "Other"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "sentence", "output": "relation"}, "builder_name": "sem_eval2010_task8", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1054352, "num_examples": 8000, "dataset_name": "sem_eval2010_task8"}, "test": {"name": "test", "num_bytes": 357075, "num_examples": 2717, "dataset_name": "sem_eval2010_task8"}}, "download_checksums": {"https://github.com/JoelNiklaus/SemEval2010Task8/raw/main/SemEval2010_task8_all_data.zip": {"num_bytes": 1964087, "checksum": "3bfd3ed634d844c9f95d1e4a1bb042b1c6d498ed7b4182dcadecde9bb95a8e71"}}, "download_size": 1964087, "post_processing_size": null, "dataset_size": 1411427, "size_in_bytes": 3375514}}
1
+ {"default": {"description": "The SemEval-2010 Task 8 focuses on Multi-way classification of semantic relations between pairs of nominals.\nThe task was designed to compare different approaches to semantic relation classification\nand to provide a standard testbed for future research.\n", "citation": "@inproceedings{hendrickx-etal-2010-semeval,\n title = \"{S}em{E}val-2010 Task 8: Multi-Way Classification of Semantic Relations between Pairs of Nominals\",\n author = \"Hendrickx, Iris and\n Kim, Su Nam and\n Kozareva, Zornitsa and\n Nakov, Preslav and\n {'O} S{'e}aghdha, Diarmuid and\n Pad{'o}, Sebastian and\n Pennacchiotti, Marco and\n Romano, Lorenza and\n Szpakowicz, Stan\",\n booktitle = \"Proceedings of the 5th International Workshop on Semantic Evaluation\",\n month = jul,\n year = \"2010\",\n address = \"Uppsala, Sweden\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/S10-1006\",\n pages = \"33--38\",\n}\n", "homepage": "https://semeval2.fbk.eu/semeval2.php?location=tasks&taskid=11", "license": "", "features": {"sentence": {"dtype": "string", "id": null, "_type": "Value"}, "relation": {"num_classes": 19, "names": ["Cause-Effect(e1,e2)", "Cause-Effect(e2,e1)", "Component-Whole(e1,e2)", "Component-Whole(e2,e1)", "Content-Container(e1,e2)", "Content-Container(e2,e1)", "Entity-Destination(e1,e2)", "Entity-Destination(e2,e1)", "Entity-Origin(e1,e2)", "Entity-Origin(e2,e1)", "Instrument-Agency(e1,e2)", "Instrument-Agency(e2,e1)", "Member-Collection(e1,e2)", "Member-Collection(e2,e1)", "Message-Topic(e1,e2)", "Message-Topic(e2,e1)", "Product-Producer(e1,e2)", "Product-Producer(e2,e1)", "Other"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "sentence", "output": "relation"}, "task_templates": [{"task": "text-classification", "text_column": "sentence", "label_column": "relation", "labels": ["Cause-Effect(e1,e2)", "Cause-Effect(e2,e1)", "Component-Whole(e1,e2)", "Component-Whole(e2,e1)", "Content-Container(e1,e2)", "Content-Container(e2,e1)", "Entity-Destination(e1,e2)", "Entity-Destination(e2,e1)", "Entity-Origin(e1,e2)", "Entity-Origin(e2,e1)", "Instrument-Agency(e1,e2)", "Instrument-Agency(e2,e1)", "Member-Collection(e1,e2)", "Member-Collection(e2,e1)", "Message-Topic(e1,e2)", "Message-Topic(e2,e1)", "Other", "Product-Producer(e1,e2)", "Product-Producer(e2,e1)"]}], "builder_name": "sem_eval2010_task8", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1054352, "num_examples": 8000, "dataset_name": "sem_eval2010_task8"}, "test": {"name": "test", "num_bytes": 357075, "num_examples": 2717, "dataset_name": "sem_eval2010_task8"}}, "download_checksums": {"https://github.com/JoelNiklaus/SemEval2010Task8/raw/main/SemEval2010_task8_all_data.zip": {"num_bytes": 1964087, "checksum": "3bfd3ed634d844c9f95d1e4a1bb042b1c6d498ed7b4182dcadecde9bb95a8e71"}}, "download_size": 1964087, "post_processing_size": null, "dataset_size": 1411427, "size_in_bytes": 3375514}}
sem_eval_2010_task_8.py CHANGED
@@ -18,6 +18,7 @@
18
  import os
19
 
20
  import datasets
 
21
 
22
 
23
  _CITATION = """\
@@ -98,6 +99,7 @@ class SemEval2010Task8(datasets.GeneratorBasedBuilder):
98
  # Homepage of the dataset for documentation
99
  homepage="https://semeval2.fbk.eu/semeval2.php?location=tasks&taskid=11",
100
  citation=_CITATION,
 
101
  )
102
 
103
  def _split_generators(self, dl_manager):
18
  import os
19
 
20
  import datasets
21
+ from datasets.tasks import TextClassification
22
 
23
 
24
  _CITATION = """\
99
  # Homepage of the dataset for documentation
100
  homepage="https://semeval2.fbk.eu/semeval2.php?location=tasks&taskid=11",
101
  citation=_CITATION,
102
+ task_templates=[TextClassification(text_column="sentence", label_column="relation")],
103
  )
104
 
105
  def _split_generators(self, dl_manager):