Datasets:

Languages:
Arabic
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
0be15e7
1 Parent(s): 438f099

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. labr.py +2 -0
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"plain_text": {"description": "This dataset contains over 63,000 book reviews in Arabic.It is the largest sentiment analysis dataset for Arabic to-date.The book reviews were harvested from the website Goodreads during the month or March 2013.Each book review comes with the goodreads review id, the user id, the book id, the rating (1 to 5) and the text of the review.\n", "citation": "@inproceedings{aly2013labr,\n title={Labr: A large scale arabic book reviews dataset},\n author={Aly, Mohamed and Atiya, Amir},\n booktitle={Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},\n pages={494--498},\n year={2013}\n}\n", "homepage": "https://github.com/mohamedadaly/LABR", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 5, "names": ["1", "2", "3", "4", "5"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "builder_name": "labr", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 7051103, "num_examples": 11760, "dataset_name": "labr"}, "test": {"name": "test", "num_bytes": 1703399, "num_examples": 2935, "dataset_name": "labr"}}, "download_checksums": {"https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/5class-balanced-train.txt": {"num_bytes": 80515, "checksum": "389473fb7e673f60b42d0a8f1c6478f0930a61ae0a069f7b83c6ea670fe8171d"}, "https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/5class-balanced-test.txt": {"num_bytes": 20067, "checksum": "0ca1ef7d5c286514defe6d45d1d72696bfdd169364b0d69d1f02beb9fbfe89cf"}, "https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/reviews.tsv": {"num_bytes": 39853130, "checksum": "a72f1b8ece766c918dfdb3c31c2a2da4f408dd2f69a24aef5187c85f313edb04"}}, "download_size": 39953712, "post_processing_size": null, "dataset_size": 8754502, "size_in_bytes": 48708214}}
 
1
+ {"plain_text": {"description": "This dataset contains over 63,000 book reviews in Arabic.It is the largest sentiment analysis dataset for Arabic to-date.The book reviews were harvested from the website Goodreads during the month or March 2013.Each book review comes with the goodreads review id, the user id, the book id, the rating (1 to 5) and the text of the review.\n", "citation": "@inproceedings{aly2013labr,\n title={Labr: A large scale arabic book reviews dataset},\n author={Aly, Mohamed and Atiya, Amir},\n booktitle={Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},\n pages={494--498},\n year={2013}\n}\n", "homepage": "https://github.com/mohamedadaly/LABR", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 5, "names": ["1", "2", "3", "4", "5"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "text", "label_column": "label", "labels": ["1", "2", "3", "4", "5"]}], "builder_name": "labr", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 7051103, "num_examples": 11760, "dataset_name": "labr"}, "test": {"name": "test", "num_bytes": 1703399, "num_examples": 2935, "dataset_name": "labr"}}, "download_checksums": {"https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/5class-balanced-train.txt": {"num_bytes": 80515, "checksum": "389473fb7e673f60b42d0a8f1c6478f0930a61ae0a069f7b83c6ea670fe8171d"}, "https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/5class-balanced-test.txt": {"num_bytes": 20067, "checksum": "0ca1ef7d5c286514defe6d45d1d72696bfdd169364b0d69d1f02beb9fbfe89cf"}, "https://raw.githubusercontent.com/mohamedadaly/LABR/master/data/reviews.tsv": {"num_bytes": 39853130, "checksum": "a72f1b8ece766c918dfdb3c31c2a2da4f408dd2f69a24aef5187c85f313edb04"}}, "download_size": 39953712, "post_processing_size": null, "dataset_size": 8754502, "size_in_bytes": 48708214}}
labr.py CHANGED
@@ -20,6 +20,7 @@
20
  import csv
21
 
22
  import datasets
 
23
 
24
 
25
  _DESCRIPTION = """\
@@ -89,6 +90,7 @@ class Labr(datasets.GeneratorBasedBuilder):
89
  supervised_keys=None,
90
  homepage="https://github.com/mohamedadaly/LABR",
91
  citation=_CITATION,
 
92
  )
93
 
94
  def _split_generators(self, dl_manager):
 
20
  import csv
21
 
22
  import datasets
23
+ from datasets.tasks import TextClassification
24
 
25
 
26
  _DESCRIPTION = """\
 
90
  supervised_keys=None,
91
  homepage="https://github.com/mohamedadaly/LABR",
92
  citation=_CITATION,
93
+ task_templates=[TextClassification(text_column="text", label_column="label")],
94
  )
95
 
96
  def _split_generators(self, dl_manager):