add arxiv link
Browse files- .gitattributes +15 -0
- README.md +6 -0
- data/tweet_emoji/test.jsonl +0 -0
- data/tweet_emoji/train.jsonl +0 -0
- data/tweet_emoji/validation.jsonl +0 -0
- data/tweet_hate/test.jsonl +0 -0
- data/tweet_hate/train.jsonl +0 -0
- data/tweet_hate/validation.jsonl +0 -0
- data/tweet_nerd/test.jsonl +0 -0
- data/tweet_nerd/train.jsonl +0 -0
- data/tweet_nerd/validation.jsonl +0 -0
- data/tweet_qg/test.jsonl +3 -0
- data/tweet_qg/train.jsonl +3 -0
- data/tweet_qg/validation.jsonl +3 -0
- data/tweet_sentiment/test.jsonl +0 -0
- data/tweet_sentiment/train.jsonl +0 -0
- data/tweet_sentiment/validation.jsonl +0 -0
- process/tweet_qg.py +29 -0
- super_tweet_eval.py → super_tweeteval.py +5 -5
.gitattributes
CHANGED
|
@@ -70,3 +70,18 @@ data/tweet_similarity/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
| 70 |
data/tempo_wic/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 71 |
data/tempo_wic/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 72 |
data/tempo_wic/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
data/tempo_wic/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 71 |
data/tempo_wic/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 72 |
data/tempo_wic/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
data/tweet_sentiment/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
data/tweet_emoji/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
data/tweet_hate/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
data/tweet_hate/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
data/tweet_nerd/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
data/tweet_hate/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
data/tweet_sentiment/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
data/tweet_qg/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
data/tweet_qg/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
data/tweet_sentiment/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
data/tweet_qg/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
data/tweet_emoji/test.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
data/tweet_emoji/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
data/tweet_nerd/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
data/tweet_nerd/validation.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -65,6 +65,12 @@ The data fields are the same among all splits.
|
|
| 65 |
- `paragraph`: a `string` feature.
|
| 66 |
- `question`: a `string` feature.
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
#### tweet_intimacy
|
| 69 |
- `text`: a `string` feature.
|
| 70 |
- `gold_score`: a `float` feature.
|
|
|
|
| 65 |
- `paragraph`: a `string` feature.
|
| 66 |
- `question`: a `string` feature.
|
| 67 |
|
| 68 |
+
#### tweet_qg
|
| 69 |
+
- `text`: a `string` feature.
|
| 70 |
+
- `gold_label_str`: a `string` feature.
|
| 71 |
+
- `paragraph`: a `string` feature.
|
| 72 |
+
- `question`: a `string` feature.
|
| 73 |
+
|
| 74 |
#### tweet_intimacy
|
| 75 |
- `text`: a `string` feature.
|
| 76 |
- `gold_score`: a `float` feature.
|
data/tweet_emoji/test.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_emoji/train.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_emoji/validation.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_hate/test.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_hate/train.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_hate/validation.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_nerd/test.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_nerd/train.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_nerd/validation.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_qg/test.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2b02c79ec163bd4a8ee05e46ffaea70c9ea96070ce67a1dca2d8028bab52213
|
| 3 |
+
size 320488
|
data/tweet_qg/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cd6950868c41cd4be64dcb06b768c7dcfc11571458d5fc79191381f4ceff842
|
| 3 |
+
size 2500353
|
data/tweet_qg/validation.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af4cac74767d116125883d61c8a3153d7ef311f8a2afe09ce4bbd71a7cf26905
|
| 3 |
+
size 283333
|
data/tweet_sentiment/test.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_sentiment/train.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/tweet_sentiment/validation.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
process/tweet_qg.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import json
|
| 3 |
+
from datasets import load_dataset
|
| 4 |
+
|
| 5 |
+
os.makedirs("data/tweet_qg", exist_ok=True)
|
| 6 |
+
data = load_dataset("lmqg/qg_tweetqa")
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def process(tmp):
|
| 10 |
+
tmp = [i.to_dict() for _, i in tmp.iterrows()]
|
| 11 |
+
for i in tmp:
|
| 12 |
+
i.pop('paragraph_question')
|
| 13 |
+
i['text'] = f"context: {i.pop('paragraph')}, answer:{i.pop('answer')}"
|
| 14 |
+
i['gold_label_str'] = i.pop('question')
|
| 15 |
+
return tmp
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
train = process(data["train"].to_pandas())
|
| 19 |
+
val = process(data["validation"].to_pandas())
|
| 20 |
+
test = process(data["test"].to_pandas())
|
| 21 |
+
with open("data/tweet_qg/train.jsonl", "w") as f:
|
| 22 |
+
f.write("\n".join([json.dumps(i) for i in train]))
|
| 23 |
+
with open("data/tweet_qg/validation.jsonl", "w") as f:
|
| 24 |
+
f.write("\n".join([json.dumps(i) for i in val]))
|
| 25 |
+
with open("data/tweet_qg/test.jsonl", "w") as f:
|
| 26 |
+
f.write("\n".join([json.dumps(i) for i in test]))
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
super_tweet_eval.py → super_tweeteval.py
RENAMED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
import json
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
-
_VERSION = "0.1.
|
| 6 |
-
|
| 7 |
-
|
| 8 |
_TWEET_TOPIC_DESCRIPTION = """
|
| 9 |
TweetTopic is a multi-label twitter topic classification task, where each example consists of a tweet
|
| 10 |
and a set of topics. One tweet can be associated with multiple topics, and the training/validation tweets are taken
|
|
@@ -312,9 +312,9 @@ class SuperTweetEval(datasets.GeneratorBasedBuilder):
|
|
| 312 |
|
| 313 |
|
| 314 |
return datasets.DatasetInfo(
|
| 315 |
-
description=
|
| 316 |
features=datasets.Features(features),
|
| 317 |
-
citation=self.config.citation + "\n" +
|
| 318 |
)
|
| 319 |
|
| 320 |
def _split_generators(self, dl_manager):
|
|
|
|
| 2 |
import json
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
+
_VERSION = "0.1.41"
|
| 6 |
+
_SUPER_TWEETEVAL_CITATION = """TBA"""
|
| 7 |
+
_SUPER_TWEETEVAL_DESCRIPTION = """TBA"""
|
| 8 |
_TWEET_TOPIC_DESCRIPTION = """
|
| 9 |
TweetTopic is a multi-label twitter topic classification task, where each example consists of a tweet
|
| 10 |
and a set of topics. One tweet can be associated with multiple topics, and the training/validation tweets are taken
|
|
|
|
| 312 |
|
| 313 |
|
| 314 |
return datasets.DatasetInfo(
|
| 315 |
+
description=_SUPER_TWEETEVAL_DESCRIPTION + "\n" + self.config.description,
|
| 316 |
features=datasets.Features(features),
|
| 317 |
+
citation=self.config.citation + "\n" + _SUPER_TWEETEVAL_CITATION,
|
| 318 |
)
|
| 319 |
|
| 320 |
def _split_generators(self, dl_manager):
|