system HF staff commited on
Commit
f0954ff
1 Parent(s): 9f8f6bf

Update files from the datasets library (from 1.4.0)

Browse files

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

Files changed (1) hide show
  1. README.md +99 -58
README.md CHANGED
@@ -22,106 +22,147 @@ task_ids:
22
  # Dataset Card for Allociné
23
 
24
  ## Table of Contents
25
- - [Tasks Supported](#tasks-supported)
26
- - [Purpose](#purpose)
27
- - [Languages](#languages)
28
- - [People Involved](#who-iswas-involved-in-the-dataset-use-and-creation)
29
- - [Data Characteristics](#data-characteristics)
30
- - [Dataset Structure](#dataset-structure)
31
- - [Known Limitations](#known-limitations)
32
- - [Licensing information](#licensing-information)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- ## Tasks supported:
35
- ### Task categorization / tags
36
 
37
- Text to binary text classification
38
 
39
- ## Purpose
40
 
41
- The Allociné dataset was developed for large-scale sentiment analysis in French.
 
 
 
42
 
43
- ## Languages
44
- ### Per language:
45
 
46
- The BCP-47 code for French is fr. Dialect information is unknown (see Speaker section for further details).
47
 
48
- ## Who is/was involved in the dataset use and creation?
49
- ### Who are the dataset curators?
50
 
51
- The Allociné dataset was collected by Théophile Blard.
52
 
53
- ### Who are the language producers (who wrote the text / created the base content)?
54
 
55
- The dataset contains movie reviews collected from [Allociné.fr](https://www.allocine.fr/). The content of each review may include information and opinions about the film's actors, film crew, and plot.
 
 
 
 
56
 
57
- ### Who are the annotators?
58
 
59
- No annotations were included in this dataset.
60
 
61
- ## Data characteristics
62
 
63
- The texts are movie reviews written by members of the [Allociné.fr](https://www.allocine.fr/) community for various films. The reviews were written between 2006 and 2020. Further information on the kinds of films included in the dataset has not been documented.
64
 
65
- ### How was the data collected?
66
 
67
  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.
68
 
69
- ### Normalization information
70
-
71
  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.
72
 
73
- ### Annotation process
74
-
75
- No annotations were included in this dataset.
76
 
77
- ## Dataset Structure
78
- ### Splits, features, and labels
79
 
80
- 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.
81
- Dataset Split | Number of Instances in Split | Percent Negative Reviews | Percent Positive Reviews
82
- --------------|------------------------------|--------------------------|-------------------------
83
- Train | 160,000 | 49.6% | 50.4%
84
- Validation | 20,000 | 51.0% | 49.0%
85
- Test | 20,000 | 52.0% | 48.0%
86
 
87
- 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.
88
 
89
- ### Span indices
90
 
91
- No span indices are included in this dataset.
92
 
93
- ### Example ID
94
 
95
- The ID is an integer starting from 0. It has no inherent meaning.
96
 
97
- ### Free text description for context (e.g. describe difference between title / selftext / body in Reddit data) and example
98
 
99
- For each ID, there is a string for the review and an integer for the label. See the [Allociné corpus viewer](https://huggingface.co/datasets/viewer/?dataset=allocine) to explore more examples.
100
 
101
- ID | Review | Label
102
- ---|--------|-------
103
- 4 | 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. | 1
104
- 5 | L'amnésie est un thème en or pour susciter le mystère. Encore faut-il être capable de construire un scénario qui se tienne. Celui-ci est boursouflé et accumule incohérences et invraisemblances. Notons aussi la stupidité du titre français, sans lien avec l'histoire. | 0
105
 
 
106
 
107
- ### Suggested metrics / models:
108
 
109
- [tf-allociné](https://huggingface.co/tblard/tf-allocine) achieves 97.44% accuracy on the test set.
110
 
111
- ## Known Limitations
112
- ### Known social biases
113
 
114
- The social biases of this dataset have not yet been investigated.
115
 
116
- ### Other known limitations
117
 
118
  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.
119
 
120
- ## Licensing information
 
 
 
 
 
 
121
 
122
  The Allociné dataset is licensed under the [MIT License](https://opensource.org/licenses/MIT).
123
 
 
 
 
124
 
125
  ### Contributions
126
 
127
- Thanks to [@thomwolf](https://github.com/thomwolf), [@TheophileBlard](https://github.com/TheophileBlard), [@lewtun](https://github.com/lewtun) for adding this dataset.
 
22
  # Dataset Card for Allociné
23
 
24
  ## Table of Contents
25
+ - [Dataset Card for Allociné](#dataset-card-for-allociné)
26
+ - [Table of Contents](#table-of-contents)
27
+ - [Dataset Description](#dataset-description)
28
+ - [Dataset Summary](#dataset-summary)
29
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
30
+ - [Languages](#languages)
31
+ - [Dataset Structure](#dataset-structure)
32
+ - [Data Instances](#data-instances)
33
+ - [Data Fields](#data-fields)
34
+ - [Data Splits](#data-splits)
35
+ - [Dataset Creation](#dataset-creation)
36
+ - [Curation Rationale](#curation-rationale)
37
+ - [Source Data](#source-data)
38
+ - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
39
+ - [Who are the source language producers?](#who-are-the-source-language-producers)
40
+ - [Annotations](#annotations)
41
+ - [Annotation process](#annotation-process)
42
+ - [Who are the annotators?](#who-are-the-annotators)
43
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
44
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
45
+ - [Social Impact of Dataset](#social-impact-of-dataset)
46
+ - [Discussion of Biases](#discussion-of-biases)
47
+ - [Other Known Limitations](#other-known-limitations)
48
+ - [Additional Information](#additional-information)
49
+ - [Dataset Curators](#dataset-curators)
50
+ - [Licensing Information](#licensing-information)
51
+ - [Citation Information](#citation-information)
52
+ - [Contributions](#contributions)
53
+
54
+ ## Dataset Description
55
+
56
+ - **Homepage:**
57
+ - **Repository:** [Allociné dataset repository](https://github.com/TheophileBlard/french-sentiment-analysis-with-bert/tree/master/allocine_dataset)
58
+ - **Paper:**
59
+ - **Leaderboard:**
60
+ - **Point of Contact:** [Théophile Blard](mailto:theophile.blard@gmail.com)
61
+
62
+ ### Dataset Summary
63
+
64
+ 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).
65
+
66
+ ### Supported Tasks and Leaderboards
67
+
68
+ - `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.
69
+
70
+ ### Languages
71
+
72
+ 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.
73
 
74
+ ## Dataset Structure
 
75
 
76
+ ### Data Instances
77
 
78
+ 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.
79
 
80
+ An example from the Allociné train set looks like the following:
81
+ ```
82
+ {'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.',
83
+ 'label': 1}
84
 
85
+ ```
 
86
 
87
+ ### Data Fields
88
 
89
+ - 'review': a string containing the review text
90
+ - 'label': an integer, either _0_ or _1_, indicating a _negative_ or _positive_ review, respectively
91
 
92
+ ### Data Splits
93
 
94
+ 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.
95
 
96
+ | Dataset Split | Number of Instances in Split | Percent Negative Reviews | Percent Positive Reviews |
97
+ | ------------- | ---------------------------- | ------------------------ | ------------------------ |
98
+ | Train | 160,000 | 49.6% | 50.4% |
99
+ | Validation | 20,000 | 51.0% | 49.0% |
100
+ | Test | 20,000 | 52.0% | 48.0% |
101
 
102
+ ## Dataset Creation
103
 
104
+ ### Curation Rationale
105
 
106
+ 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.
107
 
108
+ ### Source Data
109
 
110
+ #### Initial Data Collection and Normalization
111
 
112
  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.
113
 
 
 
114
  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.
115
 
116
+ #### Who are the source language producers?
 
 
117
 
118
+ The dataset contains movie reviews produced by the online community of the [Allociné.fr](https://www.allocine.fr/) website.
 
119
 
120
+ ### Annotations
 
 
 
 
 
121
 
122
+ The dataset does not contain any additional annotations.
123
 
124
+ #### Annotation process
125
 
126
+ [N/A]
127
 
128
+ #### Who are the annotators?
129
 
130
+ [N/A]
131
 
132
+ ### Personal and Sensitive Information
133
 
134
+ 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.
135
 
136
+ ## Considerations for Using the Data
 
 
 
137
 
138
+ ### Social Impact of Dataset
139
 
140
+ 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.
141
 
142
+ 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.
143
 
144
+ ### Discussion of Biases
 
145
 
146
+ 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.
147
 
148
+ ### Other Known Limitations
149
 
150
  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.
151
 
152
+ ## Additional Information
153
+
154
+ ### Dataset Curators
155
+
156
+ The Allociné dataset was collected by Théophile Blard.
157
+
158
+ ### Licensing Information
159
 
160
  The Allociné dataset is licensed under the [MIT License](https://opensource.org/licenses/MIT).
161
 
162
+ ### Citation Information
163
+
164
+ > Théophile Blard, French sentiment analysis with BERT, (2020), GitHub repository, <https://github.com/TheophileBlard/french-sentiment-analysis-with-bert>
165
 
166
  ### Contributions
167
 
168
+ 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.