asahi417 commited on
Commit
36baa0d
1 Parent(s): cc8821e
data/tweet_intimacy/test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:65d90ca4aa24f1ce66dee43de896a3cec2d66cc61ef99cfa5fca890843b999cd
3
- size 39034
 
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:d298076649d94845628a800b2fb9f801b009518d9cde6b45845d21b06de0f30d
3
- size 121089
 
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:40a4dc181f8cf3a8e259e510efc533762c7ac7baee7f8058e7b8d23e37f89e85
3
- size 40483
 
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:803056a47e3653840721385aadc3e185fd8632e05de10e1e4ba0377f8b579a92
3
- size 595985
 
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:a63baa4e6e0f27d7765c6ae4d2c88dc3cf86658edceecd5b23e8ae89c8645b13
3
- size 4645568
 
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:8751d62be8991dea6f4f0ded1299299adede2517f0fb4ee89e6ff28a46039723
3
- size 527375
 
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:695b56a3fdfe0de2296c8d5e6943f7729e042cc6fff18e317e32b5ea7ad6b621
3
- size 51612
 
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:aafea2e323c887f3eed54267c61f942545013b13840d1c5b46eb9b32f4f64f68
3
- size 163227
 
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:e0e24e621b51d050e4c7ab43bcdee1628d6e9f3c79544b1713ac4c0cd9766696
3
- size 55658
 
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.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.0.2"
6
  _SUPER_TWEET_EVAL_CITATION = """TBA"""
7
  _SUPER_TWEET_EVAL_DESCRIPTION = """TBA"""
8
  _TWEET_TOPIC_DESCRIPTION = """