added emoji data
Browse files- data/tweet_emoji/map.txt +100 -0
- data/tweet_emoji/test.jsonl +0 -0
- data/tweet_emoji/train.jsonl +0 -0
- data/tweet_emoji/validation.jsonl +0 -0
- super_tweet_eval.py +20 -1
data/tweet_emoji/map.txt
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
0,๐
|
2 |
+
1,๐ญ
|
3 |
+
2,โค
|
4 |
+
3,๐คฃ
|
5 |
+
4,๐ฅ
|
6 |
+
5,๐ฉ
|
7 |
+
6,๐ฅบ
|
8 |
+
7,๐
|
9 |
+
8,๐
|
10 |
+
9,๐ฅฐ
|
11 |
+
10,๐ค
|
12 |
+
11,๐ฉ
|
13 |
+
12,๐
|
14 |
+
13,๐
|
15 |
+
14,๐
|
16 |
+
15,๐
|
17 |
+
16,๐
|
18 |
+
17,โจ
|
19 |
+
18,๐
|
20 |
+
19,๐
|
21 |
+
20,๐
|
22 |
+
21,๐
|
23 |
+
22,๐ฏ
|
24 |
+
23,๐
|
25 |
+
24,๐
|
26 |
+
25,๐
|
27 |
+
26,๐น
|
28 |
+
27,๐
|
29 |
+
28,๐
|
30 |
+
29,๐
|
31 |
+
30,๐
|
32 |
+
31,๐
|
33 |
+
32,โ
|
34 |
+
33,๐ณ
|
35 |
+
34,๐
|
36 |
+
35,๐ฅด
|
37 |
+
36,๐ฅฒ
|
38 |
+
37,๐
|
39 |
+
38,๐
|
40 |
+
39,๐ค
|
41 |
+
40,๐
|
42 |
+
41,๐
|
43 |
+
42,๐
|
44 |
+
43,โบ
|
45 |
+
44,๐คก
|
46 |
+
45,๐คฉ
|
47 |
+
46,๐ฅณ
|
48 |
+
47,๐
|
49 |
+
48,๐
|
50 |
+
49,๐ก
|
51 |
+
50,๐
|
52 |
+
51,๐
|
53 |
+
52,๐ข
|
54 |
+
53,๐คฆโโ๏ธ
|
55 |
+
54,๐
|
56 |
+
55,๐จ
|
57 |
+
56,๐ฌ
|
58 |
+
57,๐
|
59 |
+
58,๐ช
|
60 |
+
59,๐ถ
|
61 |
+
60,๐ค
|
62 |
+
61,๐
|
63 |
+
62,๐
|
64 |
+
63,๐คช
|
65 |
+
64,๐
|
66 |
+
65,๐ซ
|
67 |
+
66,๐
|
68 |
+
67,๐คญ
|
69 |
+
68,๐ฅน
|
70 |
+
69,๐ฐ
|
71 |
+
70,๐
|
72 |
+
71,๐
|
73 |
+
72,๐ฅ
|
74 |
+
73,๐คฌ
|
75 |
+
74,๐
|
76 |
+
75,โ
|
77 |
+
76,๐คค
|
78 |
+
77,๐
|
79 |
+
78,๐คจ
|
80 |
+
79,๐น
|
81 |
+
80,๐
|
82 |
+
81,๐คง
|
83 |
+
82,๐น
|
84 |
+
83,โน
|
85 |
+
84,๐
|
86 |
+
85,๐ฅต
|
87 |
+
86,๐ฑ
|
88 |
+
87,๐
|
89 |
+
88,๐ฆ
|
90 |
+
89,๐คฎ
|
91 |
+
90,๐ค
|
92 |
+
91,๐ฃ
|
93 |
+
92,๐
|
94 |
+
93,๐คทโโ๏ธ
|
95 |
+
94,๐
|
96 |
+
95,๐ค
|
97 |
+
96,๐ฉ
|
98 |
+
97,๐คฏ
|
99 |
+
98,๐
|
100 |
+
99,๐
|
data/tweet_emoji/test.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/tweet_emoji/train.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
data/tweet_emoji/validation.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
super_tweet_eval.py
CHANGED
@@ -123,7 +123,16 @@ _TWEET_HATE_CITATION = """\
|
|
123 |
}
|
124 |
"""
|
125 |
_TWEET_DISAMBIGUATION_DESCRIPTION = """TBA"""
|
126 |
-
_TWEET_DISAMBIGUATION_CITATION = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
|
129 |
class SuperTweetEvalConfig(datasets.BuilderConfig):
|
@@ -211,6 +220,13 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
211 |
citation=_TWEET_DISAMBIGUATION_CITATION,
|
212 |
features=['gold_label_binary', 'target', 'context', 'definition', 'char_idx_start', 'car_idx_end'],
|
213 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_disambiguation",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
)
|
215 |
]
|
216 |
|
@@ -251,6 +267,9 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
251 |
features['char_idx_start'] = datasets.Value("int32")
|
252 |
features['car_idx_end'] = datasets.Value("int32")
|
253 |
features['gold_label_binary'] = datasets.Value("int32")
|
|
|
|
|
|
|
254 |
|
255 |
return datasets.DatasetInfo(
|
256 |
description=_SUPER_TWEET_EVAL_DESCRIPTION + "\n" + self.config.description,
|
|
|
123 |
}
|
124 |
"""
|
125 |
_TWEET_DISAMBIGUATION_DESCRIPTION = """TBA"""
|
126 |
+
_TWEET_DISAMBIGUATION_CITATION = """\
|
127 |
+
@article{mishra2022tweetnerd,
|
128 |
+
title={TweetNERD--End to End Entity Linking Benchmark for Tweets},
|
129 |
+
author={Mishra, Shubhanshu and Saini, Aman and Makki, Raheleh and Mehta, Sneha and Haghighi, Aria and Mollahosseini, Ali},
|
130 |
+
journal={arXiv preprint arXiv:2210.08129},
|
131 |
+
year={2022}
|
132 |
+
}
|
133 |
+
"""
|
134 |
+
_TWEET_EMOJI_DESCRIPTION = """TBA"""
|
135 |
+
_TWEET_EMOJI_CITATION = """TBA"""
|
136 |
|
137 |
|
138 |
class SuperTweetEvalConfig(datasets.BuilderConfig):
|
|
|
220 |
citation=_TWEET_DISAMBIGUATION_CITATION,
|
221 |
features=['gold_label_binary', 'target', 'context', 'definition', 'char_idx_start', 'car_idx_end'],
|
222 |
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_disambiguation",
|
223 |
+
),
|
224 |
+
SuperTweetEvalConfig(
|
225 |
+
name="tweet_emoji",
|
226 |
+
description=_TWEET_EMOJI_DESCRIPTION,
|
227 |
+
citation=_TWEET_EMOJI_CITATION,
|
228 |
+
features=['gold_label', 'text'],
|
229 |
+
data_url="https://huggingface.co/datasets/cardiffnlp/super_tweet_eval/resolve/main/data/tweet_emoji",
|
230 |
)
|
231 |
]
|
232 |
|
|
|
267 |
features['char_idx_start'] = datasets.Value("int32")
|
268 |
features['car_idx_end'] = datasets.Value("int32")
|
269 |
features['gold_label_binary'] = datasets.Value("int32")
|
270 |
+
if self.config.name == "tweet_emoji":
|
271 |
+
features["gold_label"] = datasets.Value("int32")
|
272 |
+
features["text"] = datasets.Value("string")
|
273 |
|
274 |
return datasets.DatasetInfo(
|
275 |
description=_SUPER_TWEET_EVAL_DESCRIPTION + "\n" + self.config.description,
|