system HF staff commited on
Commit
a687453
1 Parent(s): f268737

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. onestop_english.py +2 -0
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "This dataset is a compilation of the OneStopEnglish corpus of texts written at three reading levels into one file.\nText documents are classified into three reading levels - ele, int, adv (Elementary, Intermediate and Advance).\nThis dataset demonstrates its usefulness for through two applica-tions - automatic readability assessment and automatic text simplification.\nThe corpus consists of 189 texts, each in three versions/reading levels (567 in total).\n", "citation": "@inproceedings{vajjala-lucic-2018-onestopenglish,\n title = {OneStopEnglish corpus: A new corpus for automatic readability assessment and text simplification},\n author = {Sowmya Vajjala and Ivana Lu\u010di\u0107},\n booktitle = {Proceedings of the Thirteenth Workshop on Innovative Use of NLP for Building Educational Applications},\n year = {2018}\n}\n", "homepage": "https://github.com/nishkalavallabhi/OneStopEnglishCorpus", "license": "Creative Commons Attribution-ShareAlike 4.0 International License", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["ele", "int", "adv"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "", "output": ""}, "builder_name": "onestop_english", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2278043, "num_examples": 567, "dataset_name": "onestop_english"}}, "download_checksums": {"https://github.com/purvimisal/OneStopCorpus-Compiled/raw/main/Texts-SeparatedByReadingLevel.zip": {"num_bytes": 1228804, "checksum": "05a99e6647eea8111f98a4df491e81e4863ed2004353091959198966bc41d3d8"}}, "download_size": 1228804, "post_processing_size": null, "dataset_size": 2278043, "size_in_bytes": 3506847}}
1
+ {"default": {"description": "This dataset is a compilation of the OneStopEnglish corpus of texts written at three reading levels into one file.\nText documents are classified into three reading levels - ele, int, adv (Elementary, Intermediate and Advance).\nThis dataset demonstrates its usefulness for through two applica-tions - automatic readability assessment and automatic text simplification.\nThe corpus consists of 189 texts, each in three versions/reading levels (567 in total).\n", "citation": "@inproceedings{vajjala-lucic-2018-onestopenglish,\n title = {OneStopEnglish corpus: A new corpus for automatic readability assessment and text simplification},\n author = {Sowmya Vajjala and Ivana Lu\u010di\u0107},\n booktitle = {Proceedings of the Thirteenth Workshop on Innovative Use of NLP for Building Educational Applications},\n year = {2018}\n}\n", "homepage": "https://github.com/nishkalavallabhi/OneStopEnglishCorpus", "license": "Creative Commons Attribution-ShareAlike 4.0 International License", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 3, "names": ["ele", "int", "adv"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": {"input": "", "output": ""}, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label", "labels": ["adv", "ele", "int"]}], "builder_name": "onestop_english", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2278043, "num_examples": 567, "dataset_name": "onestop_english"}}, "download_checksums": {"https://github.com/purvimisal/OneStopCorpus-Compiled/raw/main/Texts-SeparatedByReadingLevel.zip": {"num_bytes": 1228804, "checksum": "05a99e6647eea8111f98a4df491e81e4863ed2004353091959198966bc41d3d8"}}, "download_size": 1228804, "post_processing_size": null, "dataset_size": 2278043, "size_in_bytes": 3506847}}
onestop_english.py CHANGED
@@ -18,6 +18,7 @@
18
  import os
19
 
20
  import datasets
 
21
 
22
 
23
  logger = datasets.logging.get_logger(__name__)
@@ -63,6 +64,7 @@ class OnestopEnglish(datasets.GeneratorBasedBuilder):
63
  homepage=_HOMEPAGE,
64
  license=_LICENSE,
65
  citation=_CITATION,
 
66
  )
67
 
68
  def _vocab_text_gen(self, train_file):
18
  import os
19
 
20
  import datasets
21
+ from datasets.tasks import TextClassification
22
 
23
 
24
  logger = datasets.logging.get_logger(__name__)
64
  homepage=_HOMEPAGE,
65
  license=_LICENSE,
66
  citation=_CITATION,
67
+ task_templates=[TextClassification(text_column="text", label_column="label")],
68
  )
69
 
70
  def _vocab_text_gen(self, train_file):