DLTBryan commited on
Commit
6152500
·
1 Parent(s): 146f37e

ReadMe updated

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md CHANGED
@@ -128,3 +128,122 @@ dataset_info:
128
  download_size: 1890439
129
  dataset_size: 1201600
130
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  download_size: 1890439
129
  dataset_size: 1201600
130
  ---
131
+
132
+ # Dataset Card for TROPICAL
133
+
134
+ ## Table of Contents
135
+ - [Dataset Description](#dataset-description)
136
+ - [Dataset Summary](#dataset-summary)
137
+ - [Languages](#languages)
138
+ - [Dataset Structure](#dataset-structure)
139
+ - [Data Instances](#data-instances)
140
+ - [Data Fields](#data-fields)
141
+ - [Data Configurations](#data-configurations)
142
+ - [Use this Dataset](#use-this-dataset)
143
+ - [Dataset Creation](#dataset-creation)
144
+ - [Source Data](#source-data)
145
+ - [Additional Information](#additional-information)
146
+ - [Dataset Curators](#dataset-curators)
147
+ - [Licensing Information](#licensing-information)
148
+ - [Citation Information](#citation-information)
149
+ - [Contributions](#contributions)
150
+
151
+ ## Dataset Description
152
+
153
+ - **Homepage:**
154
+ - **Repository:** [TROPICAL dataset repository](https://github.com/GePaSud/TROPICAL)
155
+ - **Paper:**
156
+ - **Point of Contact:**
157
+
158
+ ### Dataset Summary
159
+
160
+ The TROPICAL dataset is a French-language dataset for sentiment analysis. The dataset contains comments left by French-speaking tourists' on TripAdvisor after their visit to French Polynesia, each review either concern a hotel or a guesthouse. The format is JSON.
161
+ The comments spanning from January 2001 to April 2023, the dataset contain 1592 comments along with 10729 ASTE triplets (aspect, opinion, sentiment).
162
+ The unsplitted dataset is available in our Github repository.
163
+
164
+ ### Languages
165
+
166
+ The text in the dataset is in French as it was written by French speakers.
167
+
168
+ ## Dataset Structure
169
+
170
+ ### Data Instances
171
+ Normaly the polarity of the triplets are either "POS", "NEG" or "NEU", due to using [ClassLabel](https://huggingface.co/docs/datasets/v2.13.0/en/package_reference/main_classes#datasets.ClassLabel) the polarity is represented by 0, 1 or 2.
172
+
173
+ | String label | Int label |
174
+ | ------------ | --------- |
175
+ | POS | 0 |
176
+ | NEG | 1 |
177
+ | NEU | 2 |
178
+
179
+ An example from the TROPICAL original dataset looks like the following:
180
+ ```json
181
+ {
182
+ "id_comment": "16752",
183
+ "words": ["Nous", "avons", "passé", "4", "nuits", "dans", "cet", "établissement", "Ce", "fut", "un", "très", "bon", "moment", "Le", "personnel", "très", "aimable", "et", "serviable", "Nous", "avons", "visité", "les", "plantations", "d'ananas", "en", "4/4", "et", "ce", "fut", "un", "agréable", "moment", "nous", "avons", "fait", "le", "tour", "de", "l'île", "et", "c't", "une", "splendeur", "Nous", "sommes", "revenus", "enchantés"],
184
+ "triplets": [
185
+ {"aspect_term": ["Aspect inexistant"], "opinion_term": ["revenus", "enchantés"], "aspect_position": [-1], "opinion_position": [47, 48], "polarity": "POS"},
186
+ {"aspect_term": ["tour", "de", "l'île"], "opinion_term": ["une", "splendeur"], "aspect_position": [38, 39, 40], "opinion_position": [43, 44], "polarity": "POS"},
187
+ {"aspect_term": ["moment"], "opinion_term": ["agréable"], "aspect_position": [33], "opinion_position": [32], "polarity": "POS"},
188
+ {"aspect_term": ["personnel"], "opinion_term": ["serviable"], "aspect_position": [15], "opinion_position": [19], "polarity": "POS"},
189
+ {"aspect_term": ["personnel"], "opinion_term": ["très", "aimable"], "aspect_position": [15], "opinion_position": [16, 17], "polarity": "POS"},
190
+ {"aspect_term": ["moment"], "opinion_term": ["très", "bon"], "aspect_position": [13], "opinion_position": [11, 12], "polarity": "POS"}
191
+ ],
192
+ "general_polarity": "POS"
193
+ }
194
+ ```
195
+ ### Data Fields
196
+
197
+ - 'id_comment': a string containing the review id
198
+ - 'words': an array of strings composing the comment
199
+ - 'triplets': a list of dictionnaries containing the following informations
200
+ - 'aspect_term': an array of strings composing the aspect term (can be a single word or a multi-word expression)
201
+ - 'opinion_term': an array of strings composing the opinion term (can be a single word or a multi-word expression)
202
+ - 'aspect_position': an array of integers indicating the position of the aspect term in the words array (can be a single integer list or a list of integers)
203
+ - 'opinion_position': an array of integers indicating the position of the opinion term in the review (can be a single integer list or a list of integers)
204
+ - 'polartiy': an integer, either _0_, _1_, or _2_, indicating a _positive_, _negative_, or _neutral_ sentiment, respectively
205
+ - 'general_polarity': an integer, either _0_, _1_, or _2_, indicating a _positive_, _negative_, or _neutral_ sentiment, respectively
206
+
207
+ ### Data configurations
208
+
209
+ The TROPICO dataset has 3 configurations: _original_, _no overlapping_, and _overlapping_.The first one contains the 1592 comments. The overlapping dataset contains the comments that have at least one overlapping triplet. The no overlapping dataset contains the comments that have no overlapping triplet.
210
+
211
+ | Dataset Configuration | Number of comments | Number of triplets | Positive triplets | Negative triplets | Neutral triplets |
212
+ | --------------------- | ------------------ | ------------------ | ----------------- | ----------------- | -----------------|
213
+ | original | 1,592 | 10,729 | 9,889 | 734 | 106 |
214
+ | no_overlapping | 467 | 2,235 | 2,032 | 184 | 19 |
215
+ | overlapping | 1,125 | 8,494 | 7,857 | 550 | 87 |
216
+
217
+ The following table show the splits of the dataset for all configurations:
218
+
219
+ | Dataset Configuration | Train | Test | Val |
220
+ | --------------------- | ----- | ---- | --- |
221
+ | original | 1,114 | 239 | 249 |
222
+ | no_overlapping | 326 | 70 | 71 |
223
+ | overlapping | 787 | 169 | 169 |
224
+
225
+ The split values for train, test, validation are 70%, 15%, 15% respectively. The seed used is 42.
226
+
227
+ ## Use this dataset
228
+
229
+ ```python
230
+ from datasets import load_dataset
231
+ dataset = load_dataset("TROPICAL", "original") # or "no_overlapping" or "overlapping"
232
+ ```
233
+
234
+ ## Dataset Creation
235
+ ### Source Data
236
+ All the comments were collected from the TripAdvisor website. The comments range from January 2001 to April 2023. The dataset contain 1592 comments along with 10729 ASTE triplets (aspect, opinion, sentiment).
237
+
238
+ ### Who are the source language producers?
239
+ The dataset contains tourists' comments about French Polynesia stored on the [TripAdvisor platform](https://www.tripadvisor.com/) website.
240
+ ### Known limitations
241
+ The dataset contains only comments about French Polynesia. Moreover, the dataset is not balanced, the number of positive triplets is much higher than the number of negative and neutral triplets.
242
+ ## Additional Information
243
+ ### Licensing Information
244
+
245
+ The TROPICAL dataset is licensed under the [MIT License](https://opensource.org/licenses/MIT).
246
+
247
+ ### Citation Information
248
+
249
+ > To be added...