system HF staff commited on
Commit
8c5a016
1 Parent(s): 6751cb4

Update files from the datasets library (from 1.18.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.18.0

Files changed (3) hide show
  1. README.md +21 -13
  2. dataset_infos.json +1 -1
  3. muchocine.py +7 -2
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
  annotations_creators:
3
- - no-annotation
4
  language_creators:
5
  - found
6
  languages:
7
  - es
8
  licenses:
9
- - cc-by-2-1
10
  multilinguality:
11
  - monolingual
12
  size_categories:
@@ -18,6 +18,7 @@ task_categories:
18
  task_ids:
19
  - sentiment-classification
20
  paperswithcode_id: null
 
21
  ---
22
 
23
  # Dataset Card for Muchocine
@@ -57,29 +58,36 @@ each with a shorter summary review, and a rating on a 1-5 scale.
57
 
58
  ### Supported Tasks and Leaderboards
59
 
60
- [More Information Needed]
61
 
62
  ### Languages
63
 
64
- Spanish
65
 
66
  ## Dataset Structure
67
 
68
  ### Data Instances
69
 
70
- [More Information Needed]
 
 
 
 
 
 
 
71
 
72
  ### Data Fields
73
 
74
- - review_body - longform review
75
- - review_summary - shorter-form review
76
- - star_rating - an integer star rating (1-5)
77
 
78
  The original source also includes part-of-speech tagging for body and summary fields.
79
 
80
  ### Data Splits
81
 
82
- One split (train) with 3,872 reviews
83
 
84
  ## Dataset Creation
85
 
@@ -92,7 +100,7 @@ One split (train) with 3,872 reviews
92
  #### Initial Data Collection and Normalization
93
 
94
  Data was collected from www.muchocine.net and uploaded by Dr. Fermín L. Cruz Mata
95
- of La Universidad de Sevilla
96
 
97
  #### Who are the source language producers?
98
 
@@ -130,11 +138,11 @@ The text reviews and star ratings came directly from users, so no additional ann
130
 
131
  ### Dataset Curators
132
 
133
- - Dr. Fermín L. Cruz Mata
134
 
135
  ### Licensing Information
136
 
137
- CC-BY-2.1
138
 
139
  ### Citation Information
140
 
@@ -142,4 +150,4 @@ See http://www.lsi.us.es/~fermin/index.php/Datasets
142
 
143
  ### Contributions
144
 
145
- Thanks to [@mapmeld](https://github.com/mapmeld) for adding this dataset.
1
  ---
2
  annotations_creators:
3
+ - found
4
  language_creators:
5
  - found
6
  languages:
7
  - es
8
  licenses:
9
+ - unknown
10
  multilinguality:
11
  - monolingual
12
  size_categories:
18
  task_ids:
19
  - sentiment-classification
20
  paperswithcode_id: null
21
+ pretty_name: Muchocine
22
  ---
23
 
24
  # Dataset Card for Muchocine
58
 
59
  ### Supported Tasks and Leaderboards
60
 
61
+ - `text-classification`: This dataset can be used for Text Classification, more precisely Sentiment Classification where the task is to predict the `star_rating` for a `reveiw_body` or a `review summaray`.
62
 
63
  ### Languages
64
 
65
+ Spanish.
66
 
67
  ## Dataset Structure
68
 
69
  ### Data Instances
70
 
71
+ An example from the train split:
72
+
73
+ ```
74
+ {
75
+ 'review_body': 'Zoom nos cuenta la historia de Jack Shepard, anteriormente conocido como el Capitán Zoom, Superhéroe que perdió sus poderes y que actualmente vive en el olvido. La llegada de una amenaza para la Tierra hará que la agencia del gobierno que se ocupa de estos temas acuda a él para que entrene a un grupo de jóvenes con poderes para combatir esta amenaza.Zoom es una comedia familiar, con todo lo que eso implica, es decir, guión flojo y previsible, bromas no salidas de tono, historia amorosa de por medio y un desenlace tópico. La gracia está en que los protagonistas son jóvenes con superpoderes, una producción cargada de efectos especiales y unos cuantos guiños frikis. La película además se pasa volando ya que dura poco mas de ochenta minutos y cabe destacar su prologo en forma de dibujos de comics explicando la historia de la cual partimos en la película.Tim Allen protagoniza la cinta al lado de un envejecido Chevy Chase, que hace de doctor encargado del proyecto, un papel bastante gracioso y ridículo, pero sin duda el mejor papel es el de Courteney Cox, en la piel de una científica amante de los comics y de lo más friki. Del grupito de los cuatro niños sin duda la mas graciosa es la niña pequeña con súper fuerza y la que provocara la mayor parte de los gags debido a su poder.Una comedia entretenida y poca cosa más para ver una tarde de domingo. ',
76
+ 'review_summary': 'Una comedia entretenida y poca cosa más para ver una tarde de domingo ', 'star_rating': 2
77
+ }
78
+ ```
79
 
80
  ### Data Fields
81
 
82
+ - `review_body` - longform review
83
+ - `review_summary` - shorter-form review
84
+ - `star_rating` - an integer star rating (1-5)
85
 
86
  The original source also includes part-of-speech tagging for body and summary fields.
87
 
88
  ### Data Splits
89
 
90
+ One split (train) with 3,872 reviews.
91
 
92
  ## Dataset Creation
93
 
100
  #### Initial Data Collection and Normalization
101
 
102
  Data was collected from www.muchocine.net and uploaded by Dr. Fermín L. Cruz Mata
103
+ of La Universidad de Sevilla.
104
 
105
  #### Who are the source language producers?
106
 
138
 
139
  ### Dataset Curators
140
 
141
+ Dr. Fermín L. Cruz Mata.
142
 
143
  ### Licensing Information
144
 
145
+ [More Information Needed]
146
 
147
  ### Citation Information
148
 
150
 
151
  ### Contributions
152
 
153
+ Thanks to [@mapmeld](https://github.com/mapmeld) for adding this dataset.
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "The Muchocine reviews dataset contains 3,872 longform movie reviews in Spanish language,\neach with a shorter summary review, and a rating on a 1-5 scale.\n", "citation": "", "homepage": "http://www.lsi.us.es/~fermin/index.php/Datasets", "license": "CC-BY-2.1", "features": {"review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_summary": {"dtype": "string", "id": null, "_type": "Value"}, "star_rating": {"dtype": "int32", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "muchocine", "config_name": "default", "version": {"version_str": "1.1.1", "description": null, "major": 1, "minor": 1, "patch": 1}, "splits": {"train": {"name": "train", "num_bytes": 11855607, "num_examples": 3872, "dataset_name": "muchocine"}}, "download_checksums": {"http://www.lsi.us.es/~fermin/corpusCine.zip": {"num_bytes": 55556703, "checksum": "2be1333c903613402effa85ca629a66541093702c92e079c438b6eb5d84260a5"}}, "download_size": 55556703, "post_processing_size": null, "dataset_size": 11855607, "size_in_bytes": 67412310}}
1
+ {"default": {"description": "The Muchocine reviews dataset contains 3,872 longform movie reviews in Spanish language,\neach with a shorter summary review, and a rating on a 1-5 scale.\n", "citation": "", "homepage": "http://www.lsi.us.es/~fermin/index.php/Datasets", "license": "CC-BY-2.1", "features": {"review_body": {"dtype": "string", "id": null, "_type": "Value"}, "review_summary": {"dtype": "string", "id": null, "_type": "Value"}, "star_rating": {"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": "review_body", "label_column": "star_rating"}, {"task": "text-classification", "text_column": "review_summary", "label_column": "star_rating"}], "builder_name": "muchocine", "config_name": "default", "version": {"version_str": "1.1.1", "description": null, "major": 1, "minor": 1, "patch": 1}, "splits": {"train": {"name": "train", "num_bytes": 11871095, "num_examples": 3872, "dataset_name": "muchocine"}}, "download_checksums": {"http://www.lsi.us.es/~fermin/corpusCine.zip": {"num_bytes": 55556703, "checksum": "2be1333c903613402effa85ca629a66541093702c92e079c438b6eb5d84260a5"}}, "download_size": 55556703, "post_processing_size": null, "dataset_size": 11871095, "size_in_bytes": 67427798}}
muchocine.py CHANGED
@@ -20,6 +20,7 @@ import re
20
  from xml.dom.minidom import parseString
21
 
22
  import datasets
 
23
 
24
 
25
  # no BibTeX citation
@@ -43,7 +44,7 @@ class Muchocine(datasets.GeneratorBasedBuilder):
43
  {
44
  "review_body": datasets.Value("string"),
45
  "review_summary": datasets.Value("string"),
46
- "star_rating": datasets.Value("int32"),
47
  }
48
  )
49
  return datasets.DatasetInfo(
@@ -53,6 +54,10 @@ class Muchocine(datasets.GeneratorBasedBuilder):
53
  homepage="http://www.lsi.us.es/~fermin/index.php/Datasets",
54
  license=_LICENSE,
55
  citation=_CITATION,
 
 
 
 
56
  )
57
 
58
  def _split_generators(self, dl_manager):
@@ -102,5 +107,5 @@ class Muchocine(datasets.GeneratorBasedBuilder):
102
  yield id, {
103
  "review_body": btxt,
104
  "review_summary": rtxt,
105
- "star_rating": int(doc.documentElement.attributes["rank"].value),
106
  }
20
  from xml.dom.minidom import parseString
21
 
22
  import datasets
23
+ from datasets.tasks import TextClassification
24
 
25
 
26
  # no BibTeX citation
44
  {
45
  "review_body": datasets.Value("string"),
46
  "review_summary": datasets.Value("string"),
47
+ "star_rating": datasets.ClassLabel(names=[str(i) for i in range(1, 6)]),
48
  }
49
  )
50
  return datasets.DatasetInfo(
54
  homepage="http://www.lsi.us.es/~fermin/index.php/Datasets",
55
  license=_LICENSE,
56
  citation=_CITATION,
57
+ task_templates=[
58
+ TextClassification(text_column="review_body", label_column="star_rating"),
59
+ TextClassification(text_column="review_summary", label_column="star_rating"),
60
+ ],
61
  )
62
 
63
  def _split_generators(self, dl_manager):
107
  yield id, {
108
  "review_body": btxt,
109
  "review_summary": rtxt,
110
+ "star_rating": doc.documentElement.attributes["rank"].value,
111
  }