Datasets:

Languages:
Arabic
Multilinguality:
monolingual
Size Categories:
100K<n<1M
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
Tags:
License:
system HF staff commited on
Commit
f580afd
1 Parent(s): 8997821

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. hard.py +2 -0
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"plain_text": {"description": "This dataset contains 93700 hotel reviews in Arabic language.The hotel reviews were collected from Booking.com website during June/July 2016.The reviews are expressed in Modern Standard Arabic as well as dialectal Arabic.The following table summarize some tatistics on the HARD Dataset.\n", "citation": "@incollection{elnagar2018hotel,\n title={Hotel Arabic-reviews dataset construction for sentiment analysis applications},\n author={Elnagar, Ashraf and Khalifa, Yasmin S and Einea, Anas},\n booktitle={Intelligent Natural Language Processing: Trends and Applications},\n pages={35--52},\n year={2018},\n publisher={Springer}\n}\n", "homepage": "https://github.com/elnagara/HARD-Arabic-Dataset", "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": "hard", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 27507085, "num_examples": 105698, "dataset_name": "hard"}}, "download_checksums": {"https://raw.githubusercontent.com/elnagara/HARD-Arabic-Dataset/master/data/balanced-reviews.zip": {"num_bytes": 8508677, "checksum": "1939c1ca59ff50bd3887223b153c7fb5c9fd232b405320244c55791bc8b5d448"}}, "download_size": 8508677, "post_processing_size": null, "dataset_size": 27507085, "size_in_bytes": 36015762}}
1
+ {"plain_text": {"description": "This dataset contains 93700 hotel reviews in Arabic language.The hotel reviews were collected from Booking.com website during June/July 2016.The reviews are expressed in Modern Standard Arabic as well as dialectal Arabic.The following table summarize some tatistics on the HARD Dataset.\n", "citation": "@incollection{elnagar2018hotel,\n title={Hotel Arabic-reviews dataset construction for sentiment analysis applications},\n author={Elnagar, Ashraf and Khalifa, Yasmin S and Einea, Anas},\n booktitle={Intelligent Natural Language Processing: Trends and Applications},\n pages={35--52},\n year={2018},\n publisher={Springer}\n}\n", "homepage": "https://github.com/elnagara/HARD-Arabic-Dataset", "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": "hard", "config_name": "plain_text", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 27507085, "num_examples": 105698, "dataset_name": "hard"}}, "download_checksums": {"https://raw.githubusercontent.com/elnagara/HARD-Arabic-Dataset/master/data/balanced-reviews.zip": {"num_bytes": 8508677, "checksum": "1939c1ca59ff50bd3887223b153c7fb5c9fd232b405320244c55791bc8b5d448"}}, "download_size": 8508677, "post_processing_size": null, "dataset_size": 27507085, "size_in_bytes": 36015762}}
hard.py CHANGED
@@ -20,6 +20,7 @@
20
  import os
21
 
22
  import datasets
 
23
 
24
 
25
  _DESCRIPTION = """\
@@ -85,6 +86,7 @@ class Hard(datasets.GeneratorBasedBuilder):
85
  supervised_keys=None,
86
  homepage="https://github.com/elnagara/HARD-Arabic-Dataset",
87
  citation=_CITATION,
 
88
  )
89
 
90
  def _split_generators(self, dl_manager):
20
  import os
21
 
22
  import datasets
23
+ from datasets.tasks import TextClassification
24
 
25
 
26
  _DESCRIPTION = """\
86
  supervised_keys=None,
87
  homepage="https://github.com/elnagara/HARD-Arabic-Dataset",
88
  citation=_CITATION,
89
+ task_templates=[TextClassification(text_column="text", label_column="label")],
90
  )
91
 
92
  def _split_generators(self, dl_manager):