fix readme
Browse files- data/filter_unified.min_entity_1_max_predicate_10.train.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_10.validation.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_100.train.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_100.validation.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_25.train.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_25.validation.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_50.train.jsonl +2 -2
- data/filter_unified.min_entity_1_max_predicate_50.validation.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_10.train.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_10.validation.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_100.train.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_100.validation.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_25.train.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_25.validation.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_50.train.jsonl +2 -2
- data/filter_unified.min_entity_2_max_predicate_50.validation.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_10.train.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_10.validation.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_100.train.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_100.validation.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_25.train.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_25.validation.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_50.train.jsonl +2 -2
- data/filter_unified.min_entity_3_max_predicate_50.validation.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_10.train.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_10.validation.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_100.train.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_100.validation.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_25.train.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_25.validation.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_50.train.jsonl +2 -2
- data/filter_unified.min_entity_4_max_predicate_50.validation.jsonl +2 -2
- data/filter_unified.test.jsonl +2 -2
- process.py +3 -3
data/filter_unified.min_entity_1_max_predicate_10.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:b63910af1d1ce84fb6e04f76904ecc76cbda032cf827c9ebc235601222fb2265
|
3 |
+
size 52233
|
data/filter_unified.min_entity_1_max_predicate_10.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:818a3e873d958e96c6998a20408e95549c26a017d6a888815aadb74fb9f88151
|
3 |
+
size 4011
|
data/filter_unified.min_entity_1_max_predicate_100.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:0a18b2b5a002709c025cf225527701b9b4c5a52ec22a052508bc0075e7cd36b9
|
3 |
+
size 253866
|
data/filter_unified.min_entity_1_max_predicate_100.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:9c6a7106a1e050fdbba0804f2f0c0db5a7c56ba07abb60c8877ce0fdcf0e03f0
|
3 |
+
size 36563
|
data/filter_unified.min_entity_1_max_predicate_25.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:614511ba1b5fc25488720a1bcedb4bfe255792822ebdbd244435b5c62117f917
|
3 |
+
size 93570
|
data/filter_unified.min_entity_1_max_predicate_25.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:20fed365995b1bb9b7c6fc0979f7e98f20d922cea9d86149b80fa581f06365eb
|
3 |
+
size 12365
|
data/filter_unified.min_entity_1_max_predicate_50.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:f3072c8cb9bb35965efd7f638c1219f220bdbae7bef05a72422e3d949d85e5f2
|
3 |
+
size 152409
|
data/filter_unified.min_entity_1_max_predicate_50.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:d037381443267a0abd25656cd2e913210594f97a4debb5ccfd657f5927aa2ecb
|
3 |
+
size 23760
|
data/filter_unified.min_entity_2_max_predicate_10.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:5274a523fff3ff8e449c67903fd21d87c2a1e07dcae2079a9271ac3daa6b2720
|
3 |
+
size 41101
|
data/filter_unified.min_entity_2_max_predicate_10.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:0348106574d23c2337858e0066959c5ea314c05ef52c01a7eb85a9a276f90225
|
3 |
+
size 1946
|
data/filter_unified.min_entity_2_max_predicate_100.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:04e7f15f606663b4a0e3aa97a432c44f2494f1a55751e87969995d0ac6d69ca8
|
3 |
+
size 173419
|
data/filter_unified.min_entity_2_max_predicate_100.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:b9db7ec923c7c02e501846014b111399629f7c45dac57ef32a48cadc335cc07f
|
3 |
+
size 25876
|
data/filter_unified.min_entity_2_max_predicate_25.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:b9f95efeaeca484339628e7c5110033e071de51bb39d8e39c4e64bd721284618
|
3 |
+
size 68950
|
data/filter_unified.min_entity_2_max_predicate_25.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:eefca5188330546d0787418d41e793dd1a88e65da342c9dcf6721d8817c7fd08
|
3 |
+
size 8695
|
data/filter_unified.min_entity_2_max_predicate_50.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:14acd9fbf56d34050962589d184c02fa6b77e2e1665b7fdcbcce4d4fd491c297
|
3 |
+
size 111482
|
data/filter_unified.min_entity_2_max_predicate_50.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:0a264caf92ad8cda2c815782038b85318bb8e6fae72fe00fb1154ca265d8d3d3
|
3 |
+
size 16413
|
data/filter_unified.min_entity_3_max_predicate_10.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:507ee2b51ab3e19579af8112960a51e53d797cf65449eed307c0bd15f0de1fba
|
3 |
+
size 33179
|
data/filter_unified.min_entity_3_max_predicate_10.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:5dae2d3022aa6af5dccccc2b1af47227f3af31f6abd35df9f71f51579f2bdef8
|
3 |
+
size 2504
|
data/filter_unified.min_entity_3_max_predicate_100.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:726b04b1bb206bc40a2ae0b634b2a35e0cc5ce2e21da4398a3ae19a3c6dc18dd
|
3 |
+
size 129250
|
data/filter_unified.min_entity_3_max_predicate_100.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:e53a82f2ac3ab2b7c1a21cbb0f3038da1ac1ee824bb841bde06d2da45fe1467b
|
3 |
+
size 18608
|
data/filter_unified.min_entity_3_max_predicate_25.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:46eebc972310879949b1039c0b6e2891fde733fa53ba8dbba79bcea7b44b35b5
|
3 |
+
size 55811
|
data/filter_unified.min_entity_3_max_predicate_25.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:64bae2dca2fa3619f36a30d305335d5015ab3dcd3b2c2b13f7746f6c89044def
|
3 |
+
size 6400
|
data/filter_unified.min_entity_3_max_predicate_50.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:2880e6b387063a63aaa47900c8ddd2cc042934de15cbea405b2bc17ec84978e8
|
3 |
+
size 85958
|
data/filter_unified.min_entity_3_max_predicate_50.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:599443375ebbf02b93114f8741ec4a9eaf4a43e2a94bcc95fab992598a2613f5
|
3 |
+
size 12299
|
data/filter_unified.min_entity_4_max_predicate_10.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:5d4d9a864eb0a5a46e195c819a7ef730494804dd0b1df2845f317da6e134187d
|
3 |
+
size 28534
|
data/filter_unified.min_entity_4_max_predicate_10.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:e29e077e45c9763002811a68280f1eb6b7c4642caee053e3bc3cfbed0a02b4cf
|
3 |
+
size 2046
|
data/filter_unified.min_entity_4_max_predicate_100.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:9e2a1737e1abdecc3c6c2ba814d7c01303fb5cee1d19cdf4cf59e233d79f114b
|
3 |
+
size 105677
|
data/filter_unified.min_entity_4_max_predicate_100.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:5d1f8b9a584a6e03c4b3857190b430f5cec7792b90578e27b1f1429c501140bc
|
3 |
+
size 15748
|
data/filter_unified.min_entity_4_max_predicate_25.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:d47c08a3e26fdaa33f2e140a17728ca5f49412d075e5908e69a972f099a65b40
|
3 |
+
size 48944
|
data/filter_unified.min_entity_4_max_predicate_25.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:6e17ba1fb80e53cbaa389bea9ed882ae7447b9bee4cde96fd1c26cf89652bde3
|
3 |
+
size 5848
|
data/filter_unified.min_entity_4_max_predicate_50.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:16c4f4c5926593c4c9d4c5e08d649ceaae1bab0c704ce2883d0ff70f909e90b0
|
3 |
+
size 73655
|
data/filter_unified.min_entity_4_max_predicate_50.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:6094aafffc3524282fcbd075a095f342869dce36986a3f67ef5ea12268d88696
|
3 |
+
size 10283
|
data/filter_unified.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:e99d24b210327ad92a4921ce01c97c0d04b31fb4a8d853a9b21cecd56734aad6
|
3 |
+
size 5402
|
process.py
CHANGED
@@ -12,12 +12,12 @@ def process(name, split, output):
|
|
12 |
df = data.to_pandas()
|
13 |
df.pop('text')
|
14 |
df.pop('title')
|
15 |
-
df['pairs'] = [[i, j] for i, j in zip(df.pop('
|
16 |
rel_sim_data = [{
|
17 |
"relation_type": pred,
|
18 |
"positives": g['pairs'].values.tolist(),
|
19 |
-
"negatives":
|
20 |
-
} for pred, g in df.groupby("
|
21 |
with open(output, "w") as f:
|
22 |
f.write('\n'.join([json.dumps(i) for i in rel_sim_data]))
|
23 |
|
|
|
12 |
df = data.to_pandas()
|
13 |
df.pop('text')
|
14 |
df.pop('title')
|
15 |
+
df['pairs'] = [[i, j] for i, j in zip(df.pop('head'), df.pop('tail'))]
|
16 |
rel_sim_data = [{
|
17 |
"relation_type": pred,
|
18 |
"positives": g['pairs'].values.tolist(),
|
19 |
+
"negatives": []
|
20 |
+
} for pred, g in df.groupby("relation") if len(g) >= 2]
|
21 |
with open(output, "w") as f:
|
22 |
f.write('\n'.join([json.dumps(i) for i in rel_sim_data]))
|
23 |
|