init
Browse files- data/tweet_intimacy/test.jsonl +2 -2
- data/tweet_intimacy/train.jsonl +2 -2
- data/tweet_intimacy/validation.jsonl +2 -2
- data/tweet_qa/test.jsonl +2 -2
- data/tweet_qa/train.jsonl +2 -2
- data/tweet_qa/validation.jsonl +2 -2
- data/tweet_similarity/test.jsonl +2 -2
- data/tweet_similarity/train.jsonl +2 -2
- data/tweet_similarity/validation.jsonl +2 -2
- process/unify_sp_symbol.py +44 -0
- super_tweet_eval.py +1 -1
data/tweet_intimacy/test.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb6d7c7be0302e3bc65a3d81458ca3c9fb86b0c9917c6660ace797a139893d9d
|
3 |
+
size 40914
|
data/tweet_intimacy/train.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86b44b6a7877310f0964dd47dbd6c83427d795177583b17bacd4aadb31fd3568
|
3 |
+
size 127091
|
data/tweet_intimacy/validation.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:471770bd25edb1b968492e2ae15b89c820d2854f7785d13ac10c6575f86cecc8
|
3 |
+
size 42661
|
data/tweet_qa/test.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcb42d57784b7d45178b408e607829f72561fb3e1a542fe7213fc90888aecc8f
|
3 |
+
size 605858
|
data/tweet_qa/train.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73a7369f4966cbf28130a51a47eb223b16cf5cc1087feeec23a127ce9a43a032
|
3 |
+
size 4722407
|
data/tweet_qa/validation.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f813d32b4d4c339575f931783235f2d3a77f1c5cfa62625d1c004db7af8f30e
|
3 |
+
size 536429
|
data/tweet_similarity/test.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ddac97d73fa05e1305707ecfb95d5426af79729ce82ab63212e9a9c80349b91e
|
3 |
+
size 51916
|
data/tweet_similarity/train.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b894ede82e584d33a74c886e1319cde498e4e94a81a71311600992e81ef69f15
|
3 |
+
size 164161
|
data/tweet_similarity/validation.jsonl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8fdf57fe843fe21d60da7775bbfe891e33a1ef22acf560ae7d8e67c0bbd534b9
|
3 |
+
size 56131
|
process/unify_sp_symbol.py
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import re
|
3 |
+
|
4 |
+
from glob import glob
|
5 |
+
|
6 |
+
# for i in glob("data/tweet_intimacy/*.jsonl"):
|
7 |
+
# with open(i) as f:
|
8 |
+
# data = [json.loads(j) for j in f.readlines()]
|
9 |
+
# for d in data:
|
10 |
+
# for c in ['text']:
|
11 |
+
# tmp = d[c]
|
12 |
+
# tmp = re.sub(r"\bhttp\b", "{{URL}}", tmp)
|
13 |
+
# tmp = re.sub(r"@user", "{{USERNAME}}", tmp)
|
14 |
+
# tmp = re.sub(r"(@[\S]+)", r"{\1@}", tmp)
|
15 |
+
# d[c] = tmp
|
16 |
+
#
|
17 |
+
# with open(i, "w") as f:
|
18 |
+
# f.write("\n".join([json.dumps(j) for j in data]))
|
19 |
+
|
20 |
+
# for i in glob("data/tweet_qa/*.jsonl"):
|
21 |
+
# with open(i) as f:
|
22 |
+
# data = [json.loads(j) for j in f.readlines()]
|
23 |
+
# for d in data:
|
24 |
+
# for c in ['text', "paragraph", "question", "label_str"]:
|
25 |
+
# tmp = d[c]
|
26 |
+
# tmp = re.sub(r"(@[\S]+)", r"{\1@}", tmp)
|
27 |
+
# tmp = tmp.replace(")@}", '@})')
|
28 |
+
# d[c] = tmp
|
29 |
+
#
|
30 |
+
# with open(i, "w") as f:
|
31 |
+
# f.write("\n".join([json.dumps(j) for j in data]))
|
32 |
+
|
33 |
+
for i in glob("data/tweet_similarity/*.jsonl"):
|
34 |
+
with open(i) as f:
|
35 |
+
data = [json.loads(j) for j in f.readlines()]
|
36 |
+
for d in data:
|
37 |
+
for c in ['text_1', "text_2"]:
|
38 |
+
tmp = d[c]
|
39 |
+
# tmp = re.sub(r"(@[\S]+)\b", r"{\1@}", tmp)
|
40 |
+
tmp = tmp.replace("{@user@}", "{{USERNAME}}")
|
41 |
+
d[c] = tmp
|
42 |
+
|
43 |
+
with open(i, "w") as f:
|
44 |
+
f.write("\n".join([json.dumps(j) for j in data]))
|
super_tweet_eval.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import json
|
3 |
import datasets
|
4 |
|
5 |
-
_VERSION = "0.0.
|
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.0.2"
|
6 |
_SUPER_TWEET_EVAL_CITATION = """TBA"""
|
7 |
_SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
|
8 |
_TWEET_TOPIC_DESCRIPTION = """
|