init
Browse files
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:a5c31b7cce0d06ff40439aa844ae22a2df45639c88e4ec6557361806282e515e
|
3 |
+
size 120281
|
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:fa89770bccfa511dd49b155fbf1814c0b5846bfb20aa2755ce21aa19c3517a8f
|
3 |
+
size 123474
|
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:bd915d3a8f9b22727afcd37b54afb499952efda8e5d0c9e9dea5effbb350b197
|
3 |
+
size 26742
|
process/tweet_sim.py
CHANGED
@@ -7,9 +7,9 @@ tmp = [i.tolist() for i in df.values]
|
|
7 |
tmp = [{"text_1": a, "text_2": b, "label_float": c} for a, b, c in tmp]
|
8 |
seed(42)
|
9 |
shuffle(tmp)
|
10 |
-
train = tmp[:
|
11 |
-
val = tmp[
|
12 |
-
test = tmp[
|
13 |
|
14 |
os.makedirs("data/tweet_similarity", exist_ok=True)
|
15 |
with open("data/tweet_similarity/train.jsonl", "w") as f:
|
|
|
7 |
tmp = [{"text_1": a, "text_2": b, "label_float": c} for a, b, c in tmp]
|
8 |
seed(42)
|
9 |
shuffle(tmp)
|
10 |
+
train = tmp[:450]
|
11 |
+
val = tmp[450:550]
|
12 |
+
test = tmp[550:]
|
13 |
|
14 |
os.makedirs("data/tweet_similarity", exist_ok=True)
|
15 |
with open("data/tweet_similarity/train.jsonl", "w") as f:
|