araoye01 parquet-converter commited on
Commit
e4080bf
·
verified ·
0 Parent(s):

Duplicate from SemEvalWorkshop/sem_eval_2018_task_1

Browse files

Co-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>

Files changed (3) hide show
  1. .gitattributes +27 -0
  2. README.md +340 -0
  3. sem_eval_2018_task_1.py +165 -0
.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - ar
8
+ - en
9
+ - es
10
+ license:
11
+ - unknown
12
+ multilinguality:
13
+ - multilingual
14
+ pretty_name: 'SemEval-2018 Task 1: Affect in Tweets'
15
+ size_categories:
16
+ - 1K<n<10K
17
+ source_datasets:
18
+ - original
19
+ task_categories:
20
+ - text-classification
21
+ task_ids:
22
+ - multi-label-classification
23
+ tags:
24
+ - emotion-classification
25
+ dataset_info:
26
+ - config_name: subtask5.english
27
+ features:
28
+ - name: ID
29
+ dtype: string
30
+ - name: Tweet
31
+ dtype: string
32
+ - name: anger
33
+ dtype: bool
34
+ - name: anticipation
35
+ dtype: bool
36
+ - name: disgust
37
+ dtype: bool
38
+ - name: fear
39
+ dtype: bool
40
+ - name: joy
41
+ dtype: bool
42
+ - name: love
43
+ dtype: bool
44
+ - name: optimism
45
+ dtype: bool
46
+ - name: pessimism
47
+ dtype: bool
48
+ - name: sadness
49
+ dtype: bool
50
+ - name: surprise
51
+ dtype: bool
52
+ - name: trust
53
+ dtype: bool
54
+ splits:
55
+ - name: train
56
+ num_bytes: 809768
57
+ num_examples: 6838
58
+ - name: test
59
+ num_bytes: 384519
60
+ num_examples: 3259
61
+ - name: validation
62
+ num_bytes: 104660
63
+ num_examples: 886
64
+ download_size: 5975590
65
+ dataset_size: 1298947
66
+ - config_name: subtask5.spanish
67
+ features:
68
+ - name: ID
69
+ dtype: string
70
+ - name: Tweet
71
+ dtype: string
72
+ - name: anger
73
+ dtype: bool
74
+ - name: anticipation
75
+ dtype: bool
76
+ - name: disgust
77
+ dtype: bool
78
+ - name: fear
79
+ dtype: bool
80
+ - name: joy
81
+ dtype: bool
82
+ - name: love
83
+ dtype: bool
84
+ - name: optimism
85
+ dtype: bool
86
+ - name: pessimism
87
+ dtype: bool
88
+ - name: sadness
89
+ dtype: bool
90
+ - name: surprise
91
+ dtype: bool
92
+ - name: trust
93
+ dtype: bool
94
+ splits:
95
+ - name: train
96
+ num_bytes: 362549
97
+ num_examples: 3561
98
+ - name: test
99
+ num_bytes: 288692
100
+ num_examples: 2854
101
+ - name: validation
102
+ num_bytes: 67259
103
+ num_examples: 679
104
+ download_size: 5975590
105
+ dataset_size: 718500
106
+ - config_name: subtask5.arabic
107
+ features:
108
+ - name: ID
109
+ dtype: string
110
+ - name: Tweet
111
+ dtype: string
112
+ - name: anger
113
+ dtype: bool
114
+ - name: anticipation
115
+ dtype: bool
116
+ - name: disgust
117
+ dtype: bool
118
+ - name: fear
119
+ dtype: bool
120
+ - name: joy
121
+ dtype: bool
122
+ - name: love
123
+ dtype: bool
124
+ - name: optimism
125
+ dtype: bool
126
+ - name: pessimism
127
+ dtype: bool
128
+ - name: sadness
129
+ dtype: bool
130
+ - name: surprise
131
+ dtype: bool
132
+ - name: trust
133
+ dtype: bool
134
+ splits:
135
+ - name: train
136
+ num_bytes: 414458
137
+ num_examples: 2278
138
+ - name: test
139
+ num_bytes: 278715
140
+ num_examples: 1518
141
+ - name: validation
142
+ num_bytes: 105452
143
+ num_examples: 585
144
+ download_size: 5975590
145
+ dataset_size: 798625
146
+ ---
147
+
148
+ # Dataset Card for SemEval-2018 Task 1: Affect in Tweets
149
+
150
+ ## Table of Contents
151
+ - [Table of Contents](#table-of-contents)
152
+ - [Dataset Description](#dataset-description)
153
+ - [Dataset Summary](#dataset-summary)
154
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
155
+ - [Languages](#languages)
156
+ - [Dataset Structure](#dataset-structure)
157
+ - [Data Instances](#data-instances)
158
+ - [Data Fields](#data-fields)
159
+ - [Data Splits](#data-splits)
160
+ - [Dataset Creation](#dataset-creation)
161
+ - [Curation Rationale](#curation-rationale)
162
+ - [Source Data](#source-data)
163
+ - [Annotations](#annotations)
164
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
165
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
166
+ - [Social Impact of Dataset](#social-impact-of-dataset)
167
+ - [Discussion of Biases](#discussion-of-biases)
168
+ - [Other Known Limitations](#other-known-limitations)
169
+ - [Additional Information](#additional-information)
170
+ - [Dataset Curators](#dataset-curators)
171
+ - [Licensing Information](#licensing-information)
172
+ - [Citation Information](#citation-information)
173
+ - [Contributions](#contributions)
174
+
175
+ ## Dataset Description
176
+
177
+ - **Homepage:** https://competitions.codalab.org/competitions/17751
178
+ - **Repository:**
179
+ - **Paper:** http://saifmohammad.com/WebDocs/semeval2018-task1.pdf
180
+ - **Leaderboard:**
181
+ - **Point of Contact:** https://www.saifmohammad.com/
182
+
183
+ ### Dataset Summary
184
+
185
+ Tasks: We present an array of tasks where systems have to automatically determine the intensity of emotions (E) and intensity of sentiment (aka valence V) of the tweeters from their tweets. (The term tweeter refers to the person who has posted the tweet.) We also include a multi-label emotion classification task for tweets. For each task, we provide separate training and test datasets for English, Arabic, and Spanish tweets. The individual tasks are described below:
186
+
187
+ 1. EI-reg (an emotion intensity regression task): Given a tweet and an emotion E, determine the intensity of E that best represents the mental state of the tweeter—a real-valued score between 0 (least E) and 1 (most E).
188
+ Separate datasets are provided for anger, fear, joy, and sadness.
189
+
190
+ 2. EI-oc (an emotion intensity ordinal classification task): Given a tweet and an emotion E, classify the tweet into one of four ordinal classes of intensity of E that best represents the mental state of the tweeter.
191
+ Separate datasets are provided for anger, fear, joy, and sadness.
192
+
193
+ 3. V-reg (a sentiment intensity regression task): Given a tweet, determine the intensity of sentiment or valence (V) that best represents the mental state of the tweeter—a real-valued score between 0 (most negative) and 1 (most positive).
194
+
195
+ 4. V-oc (a sentiment analysis, ordinal classification, task): Given a tweet, classify it into one of seven ordinal classes, corresponding to various levels of positive and negative sentiment intensity, that best represents the mental state of the tweeter.
196
+
197
+ 5. E-c (an emotion classification task): Given a tweet, classify it as 'neutral or no emotion' or as one, or more, of eleven given emotions that best represent the mental state of the tweeter.
198
+ Here, E refers to emotion, EI refers to emotion intensity, V refers to valence or sentiment intensity, reg refers to regression, oc refers to ordinal classification, c refers to classification.
199
+
200
+ Together, these tasks encompass various emotion and sentiment analysis tasks. You are free to participate in any number of tasks and on any of the datasets.
201
+
202
+ **Currently only the subtask 5 (E-c) is available on the Hugging Face Dataset Hub.**
203
+
204
+ ### Supported Tasks and Leaderboards
205
+
206
+ ### Languages
207
+
208
+ English, Arabic and Spanish
209
+
210
+ ## Dataset Structure
211
+
212
+ ### Data Instances
213
+
214
+ An example from the `subtask5.english` config is:
215
+
216
+ ```
217
+ {'ID': '2017-En-21441',
218
+ 'Tweet': "“Worry is a down payment on a problem you may never have'. \xa0Joyce Meyer. #motivation #leadership #worry",
219
+ 'anger': False,
220
+ 'anticipation': True,
221
+ 'disgust': False,
222
+ 'fear': False,
223
+ 'joy': False,
224
+ 'love': False,
225
+ 'optimism': True,
226
+ 'pessimism': False,
227
+ 'sadness': False,
228
+ 'surprise': False,
229
+ 'trust': True}
230
+ ```
231
+
232
+ ### Data Fields
233
+
234
+ For any config of the subtask 5:
235
+ - ID: string id of the tweet
236
+ - Tweet: text content of the tweet as a string
237
+ - anger: boolean, True if anger represents the mental state of the tweeter
238
+ - anticipation: boolean, True if anticipation represents the mental state of the tweeter
239
+ - disgust: boolean, True if disgust represents the mental state of the tweeter
240
+ - fear: boolean, True if fear represents the mental state of the tweeter
241
+ - joy: boolean, True if joy represents the mental state of the tweeter
242
+ - love: boolean, True if love represents the mental state of the tweeter
243
+ - optimism: boolean, True if optimism represents the mental state of the tweeter
244
+ - pessimism: boolean, True if pessimism represents the mental state of the tweeter
245
+ - sadness: boolean, True if sadness represents the mental state of the tweeter
246
+ - surprise: boolean, True if surprise represents the mental state of the tweeter
247
+ - trust: boolean, True if trust represents the mental state of the tweeter
248
+
249
+ Note that the test set has no labels, and therefore all labels are set to False.
250
+
251
+ ### Data Splits
252
+
253
+ | | train | validation | test |
254
+ |---------|------:|-----------:|------:|
255
+ | English | 6,838 | 886 | 3,259 |
256
+ | Arabic | 2,278 | 585 | 1,518 |
257
+ | Spanish | 3,561 | 679 | 2,854 |
258
+
259
+ ## Dataset Creation
260
+
261
+ ### Curation Rationale
262
+
263
+ ### Source Data
264
+
265
+ Tweets
266
+
267
+ #### Initial Data Collection and Normalization
268
+
269
+ #### Who are the source language producers?
270
+
271
+ Twitter users.
272
+
273
+ ### Annotations
274
+
275
+ #### Annotation process
276
+
277
+ We presented one tweet at a time to the annotators
278
+ and asked which of the following options best de-
279
+ scribed the emotional state of the tweeter:
280
+ – anger (also includes annoyance, rage)
281
+ – anticipation (also includes interest, vigilance)
282
+ – disgust (also includes disinterest, dislike, loathing)
283
+ – fear (also includes apprehension, anxiety, terror)
284
+ – joy (also includes serenity, ecstasy)
285
+ – love (also includes affection)
286
+ – optimism (also includes hopefulness, confidence)
287
+ – pessimism (also includes cynicism, no confidence)
288
+ – sadness (also includes pensiveness, grief)
289
+ – surprise (also includes distraction, amazement)
290
+ – trust (also includes acceptance, liking, admiration)
291
+ – neutral or no emotion
292
+ Example tweets were provided in advance with ex-
293
+ amples of suitable responses.
294
+ On the Figure Eight task settings, we specified
295
+ that we needed annotations from seven people for
296
+ each tweet. However, because of the way the gold
297
+ tweets were set up, they were annotated by more
298
+ than seven people. The median number of anno-
299
+ tations was still seven. In total, 303 people anno-
300
+ tated between 10 and 4,670 tweets each. A total of
301
+ 174,356 responses were obtained.
302
+
303
+ Mohammad, S., Bravo-Marquez, F., Salameh, M., & Kiritchenko, S. (2018). SemEval-2018 task 1: Affect in tweets. Proceedings of the 12th International Workshop on Semantic Evaluation, 1–17. https://doi.org/10.18653/v1/S18-1001
304
+
305
+ #### Who are the annotators?
306
+
307
+ Crowdworkers on Figure Eight.
308
+
309
+ ### Personal and Sensitive Information
310
+
311
+ ## Considerations for Using the Data
312
+
313
+ ### Social Impact of Dataset
314
+
315
+ ### Discussion of Biases
316
+
317
+ ### Other Known Limitations
318
+
319
+ ## Additional Information
320
+
321
+ ### Dataset Curators
322
+
323
+ Saif M. Mohammad, Felipe Bravo-Marquez, Mohammad Salameh and Svetlana Kiritchenko
324
+
325
+ ### Licensing Information
326
+
327
+ See the official [Terms and Conditions](https://competitions.codalab.org/competitions/17751#learn_the_details-terms_and_conditions)
328
+
329
+ ### Citation Information
330
+
331
+ @InProceedings{SemEval2018Task1,
332
+ author = {Mohammad, Saif M. and Bravo-Marquez, Felipe and Salameh, Mohammad and Kiritchenko, Svetlana},
333
+ title = {SemEval-2018 {T}ask 1: {A}ffect in Tweets},
334
+ booktitle = {Proceedings of International Workshop on Semantic Evaluation (SemEval-2018)},
335
+ address = {New Orleans, LA, USA},
336
+ year = {2018}}
337
+
338
+ ### Contributions
339
+
340
+ Thanks to [@maxpel](https://github.com/maxpel) for adding this dataset.
sem_eval_2018_task_1.py ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import os
17
+
18
+ import datasets
19
+
20
+
21
+ _CITATION = """\
22
+ @InProceedings{SemEval2018Task1,
23
+ author = {Mohammad, Saif M. and Bravo-Marquez, Felipe and Salameh, Mohammad and Kiritchenko, Svetlana},
24
+ title = {SemEval-2018 {T}ask 1: {A}ffect in Tweets},
25
+ booktitle = {Proceedings of International Workshop on Semantic Evaluation (SemEval-2018)},
26
+ address = {New Orleans, LA, USA},
27
+ year = {2018}}
28
+ """
29
+
30
+ _DESCRIPTION = """\
31
+ SemEval-2018 Task 1: Affect in Tweets: SubTask 5: Emotion Classification.
32
+ This is a dataset for multilabel emotion classification for tweets.
33
+ 'Given a tweet, classify it as 'neutral or no emotion' or as one, or more, of eleven given emotions that best represent the mental state of the tweeter.'
34
+ It contains 22467 tweets in three languages manually annotated by crowdworkers using Best–Worst Scaling.
35
+ """
36
+
37
+ _HOMEPAGE = "https://competitions.codalab.org/competitions/17751"
38
+
39
+ _LICENSE = ""
40
+
41
+ _URLs = {
42
+ "subtask5.english": ["https://saifmohammad.com/WebDocs/AIT-2018/AIT2018-DATA/SemEval2018-Task1-all-data.zip"],
43
+ "subtask5.spanish": ["https://saifmohammad.com/WebDocs/AIT-2018/AIT2018-DATA/SemEval2018-Task1-all-data.zip"],
44
+ "subtask5.arabic": ["https://saifmohammad.com/WebDocs/AIT-2018/AIT2018-DATA/SemEval2018-Task1-all-data.zip"],
45
+ }
46
+
47
+
48
+ class SemEval2018Task1(datasets.GeneratorBasedBuilder):
49
+
50
+ VERSION = datasets.Version("1.1.0")
51
+
52
+ BUILDER_CONFIGS = [
53
+ datasets.BuilderConfig(
54
+ name="subtask5.english",
55
+ version=VERSION,
56
+ description="This is the English dataset of subtask 5: E-c: Detecting Emotions.",
57
+ ),
58
+ datasets.BuilderConfig(
59
+ name="subtask5.spanish",
60
+ version=VERSION,
61
+ description="This is the Spanish dataset of subtask 5: E-c: Detecting Emotions.",
62
+ ),
63
+ datasets.BuilderConfig(
64
+ name="subtask5.arabic",
65
+ version=VERSION,
66
+ description="This is the Arabic dataset of subtask 5: E-c: Detecting Emotions.",
67
+ ),
68
+ ]
69
+
70
+ def _info(self):
71
+ features = datasets.Features(
72
+ {
73
+ "ID": datasets.Value("string"),
74
+ "Tweet": datasets.Value("string"),
75
+ "anger": datasets.Value("bool"),
76
+ "anticipation": datasets.Value("bool"),
77
+ "disgust": datasets.Value("bool"),
78
+ "fear": datasets.Value("bool"),
79
+ "joy": datasets.Value("bool"),
80
+ "love": datasets.Value("bool"),
81
+ "optimism": datasets.Value("bool"),
82
+ "pessimism": datasets.Value("bool"),
83
+ "sadness": datasets.Value("bool"),
84
+ "surprise": datasets.Value("bool"),
85
+ "trust": datasets.Value("bool"),
86
+ }
87
+ )
88
+
89
+ return datasets.DatasetInfo(
90
+ description=_DESCRIPTION,
91
+ features=features,
92
+ supervised_keys=None,
93
+ homepage=_HOMEPAGE,
94
+ license=_LICENSE,
95
+ citation=_CITATION,
96
+ )
97
+
98
+ def _split_generators(self, dl_manager):
99
+ """Returns SplitGenerators."""
100
+ my_urls = _URLs[self.config.name]
101
+ if self.config.name == "subtask5.english":
102
+ shortname = "En"
103
+ longname = "English"
104
+ if self.config.name == "subtask5.spanish":
105
+ shortname = "Es"
106
+ longname = "Spanish"
107
+ if self.config.name == "subtask5.arabic":
108
+ shortname = "Ar"
109
+ longname = "Arabic"
110
+ data_dir = dl_manager.download_and_extract(my_urls)
111
+ return [
112
+ datasets.SplitGenerator(
113
+ name=datasets.Split.TRAIN,
114
+ gen_kwargs={
115
+ "filepath": os.path.join(
116
+ data_dir[0],
117
+ "SemEval2018-Task1-all-data/" + longname + "/E-c/2018-E-c-" + shortname + "-train.txt",
118
+ ),
119
+ "split": "train",
120
+ },
121
+ ),
122
+ datasets.SplitGenerator(
123
+ name=datasets.Split.TEST,
124
+ gen_kwargs={
125
+ "filepath": os.path.join(
126
+ data_dir[0],
127
+ "SemEval2018-Task1-all-data/" + longname + "/E-c/2018-E-c-" + shortname + "-test-gold.txt",
128
+ ),
129
+ "split": "test",
130
+ },
131
+ ),
132
+ datasets.SplitGenerator(
133
+ name=datasets.Split.VALIDATION,
134
+ gen_kwargs={
135
+ "filepath": os.path.join(
136
+ data_dir[0],
137
+ "SemEval2018-Task1-all-data/" + longname + "/E-c/2018-E-c-" + shortname + "-dev.txt",
138
+ ),
139
+ "split": "dev",
140
+ },
141
+ ),
142
+ ]
143
+
144
+ def _generate_examples(self, filepath, split):
145
+ """Yields examples as (key, example) tuples."""
146
+
147
+ with open(filepath, encoding="utf-8") as f:
148
+ next(f) # skip header
149
+ for id_, row in enumerate(f):
150
+ data = row.split("\t")
151
+ yield id_, {
152
+ "ID": data[0],
153
+ "Tweet": data[1],
154
+ "anger": int(data[2]),
155
+ "anticipation": int(data[3]),
156
+ "disgust": int(data[4]),
157
+ "fear": int(data[5]),
158
+ "joy": int(data[6]),
159
+ "love": int(data[7]),
160
+ "optimism": int(data[8]),
161
+ "pessimism": int(data[9]),
162
+ "sadness": int(data[10]),
163
+ "surprise": int(data[11]),
164
+ "trust": int(data[12]),
165
+ }