parquet-converter commited on
Commit
20bb444
·
1 Parent(s): 1997dd1

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,236 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - found
6
- language:
7
- - fr
8
- license:
9
- - mit
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - 100K<n<1M
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - text-classification
18
- task_ids:
19
- - sentiment-classification
20
- paperswithcode_id: allocine
21
- pretty_name: Allociné
22
- train-eval-index:
23
- - config: allocine
24
- task: text-classification
25
- task_id: multi_class_classification
26
- splits:
27
- train_split: train
28
- eval_split: test
29
- col_mapping:
30
- review: text
31
- label: target
32
- metrics:
33
- - type: accuracy
34
- name: Accuracy
35
- - type: f1
36
- name: F1 macro
37
- args:
38
- average: macro
39
- - type: f1
40
- name: F1 micro
41
- args:
42
- average: micro
43
- - type: f1
44
- name: F1 weighted
45
- args:
46
- average: weighted
47
- - type: precision
48
- name: Precision macro
49
- args:
50
- average: macro
51
- - type: precision
52
- name: Precision micro
53
- args:
54
- average: micro
55
- - type: precision
56
- name: Precision weighted
57
- args:
58
- average: weighted
59
- - type: recall
60
- name: Recall macro
61
- args:
62
- average: macro
63
- - type: recall
64
- name: Recall micro
65
- args:
66
- average: micro
67
- - type: recall
68
- name: Recall weighted
69
- args:
70
- average: weighted
71
- dataset_info:
72
- features:
73
- - name: review
74
- dtype: string
75
- - name: label
76
- dtype:
77
- class_label:
78
- names:
79
- 0: neg
80
- 1: pos
81
- config_name: allocine
82
- splits:
83
- - name: train
84
- num_bytes: 91330696
85
- num_examples: 160000
86
- - name: validation
87
- num_bytes: 11546250
88
- num_examples: 20000
89
- - name: test
90
- num_bytes: 11547697
91
- num_examples: 20000
92
- download_size: 66625305
93
- dataset_size: 114424643
94
- ---
95
-
96
- # Dataset Card for Allociné
97
-
98
- ## Table of Contents
99
- - [Dataset Description](#dataset-description)
100
- - [Dataset Summary](#dataset-summary)
101
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
102
- - [Languages](#languages)
103
- - [Dataset Structure](#dataset-structure)
104
- - [Data Instances](#data-instances)
105
- - [Data Fields](#data-fields)
106
- - [Data Splits](#data-splits)
107
- - [Dataset Creation](#dataset-creation)
108
- - [Curation Rationale](#curation-rationale)
109
- - [Source Data](#source-data)
110
- - [Annotations](#annotations)
111
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
112
- - [Considerations for Using the Data](#considerations-for-using-the-data)
113
- - [Social Impact of Dataset](#social-impact-of-dataset)
114
- - [Discussion of Biases](#discussion-of-biases)
115
- - [Other Known Limitations](#other-known-limitations)
116
- - [Additional Information](#additional-information)
117
- - [Dataset Curators](#dataset-curators)
118
- - [Licensing Information](#licensing-information)
119
- - [Citation Information](#citation-information)
120
- - [Contributions](#contributions)
121
-
122
- ## Dataset Description
123
-
124
- - **Homepage:**
125
- - **Repository:** [Allociné dataset repository](https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/tree/master/allocine_dataset)
126
- - **Paper:**
127
- - **Leaderboard:**
128
- - **Point of Contact:** [Théophile Blard](mailto:theophile.blard@gmail.com)
129
-
130
- ### Dataset Summary
131
-
132
- The Allociné dataset is a French-language dataset for sentiment analysis. The texts are movie reviews written between 2006 and 2020 by members of the [Allociné.fr](https://www.allocine.fr/) community for various films. It contains 100k positive and 100k negative reviews divided into train (160k), validation (20k), and test (20k).
133
-
134
- ### Supported Tasks and Leaderboards
135
-
136
- - `text-classification`, `sentiment-classification`: The dataset can be used to train a model for sentiment classification. The model performance is evaluated based on the accuracy of the predicted labels as compared to the given labels in the dataset. A BERT-based model, [tf-allociné](https://huggingface.co/tblard/tf-allocine), achieves 97.44% accuracy on the test set.
137
-
138
- ### Languages
139
-
140
- The text is in French, as spoken by users of the [Allociné.fr](https://www.allocine.fr/) website. The BCP-47 code for French is fr.
141
-
142
- ## Dataset Structure
143
-
144
- ### Data Instances
145
-
146
- Each data instance contains the following features: _review_ and _label_. In the Hugging Face distribution of the dataset, the _label_ has 2 possible values, _0_ and _1_, which correspond to _negative_ and _positive_ respectively. See the [Allociné corpus viewer](https://huggingface.co/datasets/viewer/?dataset=allocine) to explore more examples.
147
-
148
- An example from the Allociné train set looks like the following:
149
- ```
150
- {'review': 'Premier film de la saga Kozure Okami, "Le Sabre de la vengeance" est un très bon film qui mêle drame et action, et qui, en 40 ans, n'a pas pris une ride.',
151
- 'label': 1}
152
-
153
- ```
154
-
155
- ### Data Fields
156
-
157
- - 'review': a string containing the review text
158
- - 'label': an integer, either _0_ or _1_, indicating a _negative_ or _positive_ review, respectively
159
-
160
- ### Data Splits
161
-
162
- The Allociné dataset has 3 splits: _train_, _validation_, and _test_. The splits contain disjoint sets of movies. The following table contains the number of reviews in each split and the percentage of positive and negative reviews.
163
-
164
- | Dataset Split | Number of Instances in Split | Percent Negative Reviews | Percent Positive Reviews |
165
- | ------------- | ---------------------------- | ------------------------ | ------------------------ |
166
- | Train | 160,000 | 49.6% | 50.4% |
167
- | Validation | 20,000 | 51.0% | 49.0% |
168
- | Test | 20,000 | 52.0% | 48.0% |
169
-
170
- ## Dataset Creation
171
-
172
- ### Curation Rationale
173
-
174
- The Allociné dataset was developed to support large-scale sentiment analysis in French. It was released alongside the [tf-allociné](https://huggingface.co/tblard/tf-allocine) model and used to compare the performance of several language models on this task.
175
-
176
- ### Source Data
177
-
178
- #### Initial Data Collection and Normalization
179
-
180
- The reviews and ratings were collected using a list of [film page urls](https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/blob/master/allocine_dataset/allocine_films_urls.txt) and the [allocine_scraper.py](https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/blob/master/allocine_dataset/allocine_scraper.py) tool. Up to 30 reviews were collected for each film.
181
-
182
- The reviews were originally labeled with a rating from 0.5 to 5.0 with a step of 0.5 between each rating. Ratings less than or equal to 2 are labeled as negative and ratings greater than or equal to 4 are labeled as positive. Only reviews with less than 2000 characters are included in the dataset.
183
-
184
- #### Who are the source language producers?
185
-
186
- The dataset contains movie reviews produced by the online community of the [Allociné.fr](https://www.allocine.fr/) website.
187
-
188
- ### Annotations
189
-
190
- The dataset does not contain any additional annotations.
191
-
192
- #### Annotation process
193
-
194
- [N/A]
195
-
196
- #### Who are the annotators?
197
-
198
- [N/A]
199
-
200
- ### Personal and Sensitive Information
201
-
202
- Reviewer usernames or personal information were not collected with the reviews, but could potentially be recovered. The content of each review may include information and opinions about the film's actors, film crew, and plot.
203
-
204
- ## Considerations for Using the Data
205
-
206
- ### Social Impact of Dataset
207
-
208
- Sentiment classification is a complex task which requires sophisticated language understanding skills. Successful models can support decision-making based on the outcome of the sentiment analysis, though such models currently require a high degree of domain specificity.
209
-
210
- It should be noted that the community represented in the dataset may not represent any downstream application's potential users, and the observed behavior of a model trained on this dataset may vary based on the domain and use case.
211
-
212
- ### Discussion of Biases
213
-
214
- The Allociné website lists a number of topics which violate their [terms of service](https://www.allocine.fr/service/conditions.html#charte). Further analysis is needed to determine the extent to which moderators have successfully removed such content.
215
-
216
- ### Other Known Limitations
217
-
218
- The limitations of the Allociné dataset have not yet been investigated, however [Staliūnaitė and Bonfil (2017)](https://www.aclweb.org/anthology/W17-5410.pdf) detail linguistic phenomena that are generally present in sentiment analysis but difficult for models to accurately label, such as negation, adverbial modifiers, and reviewer pragmatics.
219
-
220
- ## Additional Information
221
-
222
- ### Dataset Curators
223
-
224
- The Allociné dataset was collected by Théophile Blard.
225
-
226
- ### Licensing Information
227
-
228
- The Allociné dataset is licensed under the [MIT License](https://opensource.org/licenses/MIT).
229
-
230
- ### Citation Information
231
-
232
- > Théophile Blard, French sentiment analysis with BERT, (2020), GitHub repository, <https://github.com/TheophileBlard/french-sentiment-analysis-with-bert>
233
-
234
- ### Contributions
235
-
236
- Thanks to [@thomwolf](https://github.com/thomwolf), [@TheophileBlard](https://github.com/TheophileBlard), [@lewtun](https://github.com/lewtun) and [@mcmillanmajora](https://github.com/mcmillanmajora) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
allocine.py DELETED
@@ -1,106 +0,0 @@
1
- """Allocine Dataset: A Large-Scale French Movie Reviews Dataset."""
2
-
3
-
4
- import json
5
-
6
- import datasets
7
- from datasets.tasks import TextClassification
8
-
9
-
10
- _CITATION = """\
11
- @misc{blard2019allocine,
12
- author = {Blard, Theophile},
13
- title = {french-sentiment-analysis-with-bert},
14
- year = {2020},
15
- publisher = {GitHub},
16
- journal = {GitHub repository},
17
- howpublished={\\url{https://github.com/TheophileBlard/french-sentiment-analysis-with-bert}},
18
- }
19
- """
20
-
21
- _DESCRIPTION = """\
22
- Allocine Dataset: A Large-Scale French Movie Reviews Dataset.
23
- This is a dataset for binary sentiment classification, made of user reviews scraped from Allocine.fr.
24
- It contains 100k positive and 100k negative reviews divided into 3 balanced splits: train (160k reviews), val (20k) and test (20k).
25
- """
26
-
27
-
28
- class AllocineConfig(datasets.BuilderConfig):
29
- """BuilderConfig for Allocine."""
30
-
31
- def __init__(self, **kwargs):
32
- """BuilderConfig for Allocine.
33
-
34
- Args:
35
- **kwargs: keyword arguments forwarded to super.
36
- """
37
- super(AllocineConfig, self).__init__(**kwargs)
38
-
39
-
40
- class AllocineDataset(datasets.GeneratorBasedBuilder):
41
- """Allocine Dataset: A Large-Scale French Movie Reviews Dataset."""
42
-
43
- _DOWNLOAD_URL = "https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/raw/master/allocine_dataset/data.tar.bz2"
44
- _TRAIN_FILE = "train.jsonl"
45
- _VAL_FILE = "val.jsonl"
46
- _TEST_FILE = "test.jsonl"
47
-
48
- BUILDER_CONFIGS = [
49
- AllocineConfig(
50
- name="allocine",
51
- version=datasets.Version("1.0.0"),
52
- description="Allocine Dataset: A Large-Scale French Movie Reviews Dataset",
53
- ),
54
- ]
55
-
56
- def _info(self):
57
- return datasets.DatasetInfo(
58
- description=_DESCRIPTION,
59
- features=datasets.Features(
60
- {
61
- "review": datasets.Value("string"),
62
- "label": datasets.features.ClassLabel(names=["neg", "pos"]),
63
- }
64
- ),
65
- supervised_keys=None,
66
- homepage="https://github.com/TheophileBlard/french-sentiment-analysis-with-bert",
67
- citation=_CITATION,
68
- task_templates=[TextClassification(text_column="review", label_column="label")],
69
- )
70
-
71
- def _split_generators(self, dl_manager):
72
- archive_path = dl_manager.download(self._DOWNLOAD_URL)
73
- data_dir = "data"
74
- return [
75
- datasets.SplitGenerator(
76
- name=datasets.Split.TRAIN,
77
- gen_kwargs={
78
- "filepath": f"{data_dir}/{self._TRAIN_FILE}",
79
- "files": dl_manager.iter_archive(archive_path),
80
- },
81
- ),
82
- datasets.SplitGenerator(
83
- name=datasets.Split.VALIDATION,
84
- gen_kwargs={
85
- "filepath": f"{data_dir}/{self._VAL_FILE}",
86
- "files": dl_manager.iter_archive(archive_path),
87
- },
88
- ),
89
- datasets.SplitGenerator(
90
- name=datasets.Split.TEST,
91
- gen_kwargs={
92
- "filepath": f"{data_dir}/{self._TEST_FILE}",
93
- "files": dl_manager.iter_archive(archive_path),
94
- },
95
- ),
96
- ]
97
-
98
- def _generate_examples(self, filepath, files):
99
- """Generate Allocine examples."""
100
- for path, file in files:
101
- if path == filepath:
102
- for id_, row in enumerate(file):
103
- data = json.loads(row.decode("utf-8"))
104
- review = data["review"]
105
- label = "neg" if data["polarity"] == 0 else "pos"
106
- yield id_, {"review": review, "label": label}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
allocine/allocine-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3ab0c7320e7d4185e9470ac56cfd51d2a059be0c952b33bcb144510a8b5eb13
3
+ size 7580548
allocine/allocine-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b12c84ef44871d599c27e1e1644bd961d0e5030779de9ece99e60b995b2b3769
3
+ size 59970146
allocine/allocine-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0d9b9cfe77622b6b11e178f987e9592d5371c301d3234c297fb2fdd06fd2b65
3
+ size 7575257
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"allocine": {"description": " Allocine Dataset: A Large-Scale French Movie Reviews Dataset.\n This is a dataset for binary sentiment classification, made of user reviews scraped from Allocine.fr.\n It contains 100k positive and 100k negative reviews divided into 3 balanced splits: train (160k reviews), val (20k) and test (20k).\n", "citation": "@misc{blard2019allocine,\n author = {Blard, Theophile},\n title = {french-sentiment-analysis-with-bert},\n year = {2020},\n publisher = {GitHub},\n journal = {GitHub repository},\n howpublished={\\url{https://github.com/TheophileBlard/french-sentiment-analysis-with-bert}},\n}\n", "homepage": "https://github.com/TheophileBlard/french-sentiment-analysis-with-bert", "license": "", "features": {"review": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["neg", "pos"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": [{"task": "text-classification", "text_column": "review", "label_column": "label", "labels": ["neg", "pos"]}], "builder_name": "allocine_dataset", "config_name": "allocine", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 91330696, "num_examples": 160000, "dataset_name": "allocine_dataset"}, "validation": {"name": "validation", "num_bytes": 11546250, "num_examples": 20000, "dataset_name": "allocine_dataset"}, "test": {"name": "test", "num_bytes": 11547697, "num_examples": 20000, "dataset_name": "allocine_dataset"}}, "download_checksums": {"https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/raw/master/allocine_dataset/data.tar.bz2": {"num_bytes": 66625305, "checksum": "8c49a8cac783da201697ed1a91b36d2f6618222b3b7ea1c2996f2a3fbc37dfb4"}}, "download_size": 66625305, "post_processing_size": null, "dataset_size": 114424643, "size_in_bytes": 181049948}}