asahi417 commited on
Commit
e646b2e
1 Parent(s): f046b69

fix readme

Browse files
Files changed (34) hide show
  1. data/filter_unified.min_entity_1_max_predicate_10.train.jsonl +2 -2
  2. data/filter_unified.min_entity_1_max_predicate_10.validation.jsonl +2 -2
  3. data/filter_unified.min_entity_1_max_predicate_100.train.jsonl +2 -2
  4. data/filter_unified.min_entity_1_max_predicate_100.validation.jsonl +2 -2
  5. data/filter_unified.min_entity_1_max_predicate_25.train.jsonl +2 -2
  6. data/filter_unified.min_entity_1_max_predicate_25.validation.jsonl +2 -2
  7. data/filter_unified.min_entity_1_max_predicate_50.train.jsonl +2 -2
  8. data/filter_unified.min_entity_1_max_predicate_50.validation.jsonl +2 -2
  9. data/filter_unified.min_entity_2_max_predicate_10.train.jsonl +2 -2
  10. data/filter_unified.min_entity_2_max_predicate_10.validation.jsonl +2 -2
  11. data/filter_unified.min_entity_2_max_predicate_100.train.jsonl +2 -2
  12. data/filter_unified.min_entity_2_max_predicate_100.validation.jsonl +2 -2
  13. data/filter_unified.min_entity_2_max_predicate_25.train.jsonl +2 -2
  14. data/filter_unified.min_entity_2_max_predicate_25.validation.jsonl +2 -2
  15. data/filter_unified.min_entity_2_max_predicate_50.train.jsonl +2 -2
  16. data/filter_unified.min_entity_2_max_predicate_50.validation.jsonl +2 -2
  17. data/filter_unified.min_entity_3_max_predicate_10.train.jsonl +2 -2
  18. data/filter_unified.min_entity_3_max_predicate_10.validation.jsonl +2 -2
  19. data/filter_unified.min_entity_3_max_predicate_100.train.jsonl +2 -2
  20. data/filter_unified.min_entity_3_max_predicate_100.validation.jsonl +2 -2
  21. data/filter_unified.min_entity_3_max_predicate_25.train.jsonl +2 -2
  22. data/filter_unified.min_entity_3_max_predicate_25.validation.jsonl +2 -2
  23. data/filter_unified.min_entity_3_max_predicate_50.train.jsonl +2 -2
  24. data/filter_unified.min_entity_3_max_predicate_50.validation.jsonl +2 -2
  25. data/filter_unified.min_entity_4_max_predicate_10.train.jsonl +2 -2
  26. data/filter_unified.min_entity_4_max_predicate_10.validation.jsonl +2 -2
  27. data/filter_unified.min_entity_4_max_predicate_100.train.jsonl +2 -2
  28. data/filter_unified.min_entity_4_max_predicate_100.validation.jsonl +2 -2
  29. data/filter_unified.min_entity_4_max_predicate_25.train.jsonl +2 -2
  30. data/filter_unified.min_entity_4_max_predicate_25.validation.jsonl +2 -2
  31. data/filter_unified.min_entity_4_max_predicate_50.train.jsonl +2 -2
  32. data/filter_unified.min_entity_4_max_predicate_50.validation.jsonl +2 -2
  33. data/filter_unified.test.jsonl +2 -2
  34. 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:d69eda19134d3444648d603fd033f8080e777e6bb93a451860e362c1a3a4dc7b
3
- size 6966611
 
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:570159dfac5ac040e602c1eb63d4cf17daf5efcdb27992b37abb05099e5751d1
3
- size 107890
 
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:540cd4c2a7d0d079a7c8ef6275543b646b83ace16d5828f9fe08107b2185f85e
3
- size 49099973
 
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:cbd4daed0f874854451a131913240d37ce833bf480c89b16b58dadedd9a6db48
3
- size 3476629
 
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:2b96c169831191190e7f318dcb326a4ed83af043f12c7ff4b090effa1ce563f8
3
- size 15443818
 
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:291b98c7d0012f1a287936363485c088b338475a607d5df28a4db40f4dc93bc9
3
- size 618959
 
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:9d31f3c671319f80ad3499514c265b25323641ac5b34199e8586351ce695cb04
3
- size 27551730
 
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:155b118d6c11ed96088bf03ee193eedfb21bc133c3726af8df807fc4617ae8b2
3
- size 1740209
 
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:eb7a9989cfe1ce3e42a06687a729660005ef0b75ba324ed24050a01a6844d02e
3
- size 4637780
 
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:77286f3ab1897f75301e399483f0260bcca0542f2331170a5d9d6da32023a0a6
3
- size 39299
 
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:0d4bd18df9c5e5d1ac028c10f712f74235d04f2a34e011adc23659bb142b8314
3
- size 29596755
 
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:8f9e9791ae6b3738e4cc01b340a582082b3ed3ccc916c7c1353a1f2a5dad2c9e
3
- size 1894548
 
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:dd4fd074f40125fc6dac140e798fd121ca42037b970774d6b427c3c6ae56ef4e
3
- size 9729765
 
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:dbec44cc2defe593574ee97ac937c10ae260f4f1cdbead38b10110ba41c46398
3
- size 319030
 
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:155d936dc59513f942c7a5aaac6699acfcd8d373b716105a6c685e60babe0834
3
- size 17643311
 
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:d105d0927e63c9e88654a03c2efd9941ebdd328ddf2d446241ea22ea83f71575
3
- size 923790
 
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:b330c5f5b2a104f8b9d7ea39e95302ec70a5293c26dd32abf84c77af2ab3db83
3
- size 3123088
 
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:d18d22ff5b68bcb52ffe13a2d4d995e1b2ec8cba2d8cf96730a1d2598bda34c4
3
- size 40927
 
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:27f201fdf42c813da9671fe8966dc5dec18a2b70cc0e21220fced5db0e8ba0f0
3
- size 19103948
 
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:0f81062ebf81642a53c3c3a52761d619371c792f8614df5b86b24d9c417a7c1b
3
- size 1042740
 
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:b86738b4ae03058500939ee84ff92dce33dca91a0a6f46a99b906c0fd19bec78
3
- size 6680533
 
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:d6402797ed016a17bd5d823ad0d3202f52f90440d115b5c369e954036cb67389
3
- size 189365
 
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:c1978ac7895610b69d5ccdfabee0f8be172aebc77357745b30808891e2b7aee6
3
- size 11441982
 
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:d092e7fec5ba2f20c58140bc74ea58bed20fba3fe604986b91db7d5a3d623420
3
- size 541636
 
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:57ad5e9a410b2dc06ed7175b57c8f01b134d6b599ceadf7caa09fa87f1f09da7
3
- size 2352885
 
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:68c7cff1fc7a716e285a52b0101bb6391bb41b153e23aacf8d2dbdc81c50959e
3
- size 29053
 
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:1fd7df22453c09dab2cc15c95ac6ab58694e0251eea135e6d0db2fcc994123ad
3
- size 13942787
 
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:11663dafe1a985aac2a298ccd36012674d6fe7929def8a63388a68582b84e78f
3
- size 766223
 
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:152bae2b052920a0543a9ef6716e3c0d155c7a50c54bd30180cd4b4988d729d8
3
- size 5254636
 
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:7aba74fea472a74de983a266aa271cff7c557aaa0b62685636c07723d55fb3b3
3
- size 146023
 
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:600b2dfdac64163841031105bccf0a5228cc1496d5d083cba9b4f2d4a8db0a96
3
- size 8912834
 
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:7863eaf6f090884a5de471d5b38aa0dfff204b1a172f67dbd55be1c2a1ef5b42
3
- size 391676
 
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:167a9d1309ae5a6507679ded0af46a1306c44dd6678800eb0e49b988d458c55b
3
- size 88341
 
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('subject'), df.pop('object'))]
16
  rel_sim_data = [{
17
  "relation_type": pred,
18
  "positives": g['pairs'].values.tolist(),
19
- "negatives": df[df.predicate != pred]['pairs'].values.tolist()
20
- } for pred, g in df.groupby("predicate") 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
 
 
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