nerd: changed names; sent: changed topic to target
Browse files
data/tweet_nerd/validation.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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/tempo_wic.py
CHANGED
|
@@ -28,10 +28,12 @@ for s in ['train', 'validation', 'test']:
|
|
| 28 |
tmp.update({f"{k}_2": v for k, v in i['tweet2'].items()})
|
| 29 |
tmp['text_2_tokenized'] = tmp.pop('tokens_2')
|
| 30 |
tmp.pop("id")
|
| 31 |
-
tmp.pop("
|
| 32 |
-
tmp.pop("
|
| 33 |
-
tmp.pop("
|
| 34 |
-
tmp.pop("
|
|
|
|
|
|
|
| 35 |
data_jl.append(tmp)
|
| 36 |
|
| 37 |
with open(f"data/tempo_wic/{s}.jsonl", "w") as f:
|
|
|
|
| 28 |
tmp.update({f"{k}_2": v for k, v in i['tweet2'].items()})
|
| 29 |
tmp['text_2_tokenized'] = tmp.pop('tokens_2')
|
| 30 |
tmp.pop("id")
|
| 31 |
+
tmp.pop("token_idx_1")
|
| 32 |
+
tmp.pop("token_idx_2")
|
| 33 |
+
# tmp.pop("text_start_1")
|
| 34 |
+
# tmp.pop("text_end_1")
|
| 35 |
+
# tmp.pop("text_start_2")
|
| 36 |
+
# tmp.pop("text_end_2")
|
| 37 |
data_jl.append(tmp)
|
| 38 |
|
| 39 |
with open(f"data/tempo_wic/{s}.jsonl", "w") as f:
|
process/tweet_sentiment.py
CHANGED
|
@@ -13,7 +13,7 @@ def clean_text(text):
|
|
| 13 |
# MAKE SURE to check lowercase
|
| 14 |
t = '@user' if t.startswith('@') and len(t) > 1 and t.replace(
|
| 15 |
'@', '').lower() not in verified_users else t
|
| 16 |
-
t = '
|
| 17 |
new_text.append(t)
|
| 18 |
|
| 19 |
return ' '.join(new_text)
|
|
|
|
| 13 |
# MAKE SURE to check lowercase
|
| 14 |
t = '@user' if t.startswith('@') and len(t) > 1 and t.replace(
|
| 15 |
'@', '').lower() not in verified_users else t
|
| 16 |
+
t = '{URL}' if t.startswith('http') else t
|
| 17 |
new_text.append(t)
|
| 18 |
|
| 19 |
return ' '.join(new_text)
|
super_tweet_eval.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import json
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
-
_VERSION = "0.1.
|
| 6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
| 7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
| 8 |
_TWEET_TOPIC_DESCRIPTION = """
|
|
|
|
| 2 |
import json
|
| 3 |
import datasets
|
| 4 |
|
| 5 |
+
_VERSION = "0.1.32"
|
| 6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
| 7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
| 8 |
_TWEET_TOPIC_DESCRIPTION = """
|