Merge pull request #13 from zjukg/master

update README.md
This commit is contained in:
Yichi Zhang 2023-11-18 10:30:03 +08:00 committed by GitHub
commit 4b0e28922b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 184798 additions and 2 deletions

View File

@ -13,7 +13,13 @@
## 🔬 Dependencies
Our code is developed based on [alpaca-lora](https://github.com/tloen/alpaca-lora). Please build the Python environment following the instruction in Alpaca-lora.
Our code is developed based on [alpaca-lora](https://github.com/tloen/alpaca-lora). Please build the Python following the instruction in Alpaca-lora.
Some core python library config:
- Python 3.9.16
- torch 2.0.0
- transformers 4.28.0
- peft 0.3.0
## 📕 Training & Test
@ -26,7 +32,7 @@ CUDA_VISIBLE_DEVICES=0 nohup python finetune_kopa.py \
--data_path 'data/UMLS-train.json' \
--output_dir 'YOUR SAVE PATH' \
--num_epochs 3 \
--lora_r 32 \
--lora_r 64 \
--learning_rate 3e-4 \
--batch_size 12 \
--micro_batch_size 12 \

9
data/kg/CoDeX-S/1-1.txt Normal file
View File

@ -0,0 +1,9 @@
8
1002 992 33
571 473 35
1569 1808 24
940 1500 18
75 438 24
1378 1965 24
559 109 39
1371 1879 39

2
data/kg/CoDeX-S/1-n.txt Normal file
View File

@ -0,0 +1,2 @@
1
1424 1962 38

File diff suppressed because it is too large Load Diff

404
data/kg/CoDeX-S/n-1.txt Normal file
View File

@ -0,0 +1,404 @@
403
608 200 8
364 99 13
1812 36 7
670 1202 8
1824 234 8
1297 56 11
1274 40 8
569 1 0
33 58 0
645 40 8
1400 956 8
914 99 13
223 992 8
102 40 8
682 153 8
1211 1172 17
1407 40 8
1176 1215 27
1432 992 8
1929 231 13
203 1 0
1474 571 23
810 465 21
435 58 17
279 147 0
813 1951 26
1072 664 8
959 40 8
1150 40 8
1465 36 7
868 58 0
1714 1 0
1760 1221 8
501 200 8
1126 58 0
269 174 8
1177 231 13
475 508 21
1449 737 6
155 1658 7
921 56 11
1751 804 8
875 371 19
2027 635 8
1365 180 1
1634 565 13
366 1209 9
390 200 8
1543 1944 7
1445 40 8
1321 300 11
856 23 0
1759 36 7
440 40 8
1566 732 25
1360 200 8
630 58 0
1208 1209 10
1022 40 8
1272 371 19
790 204 10
1046 371 19
680 48 10
1842 23 0
225 371 11
209 515 25
716 153 8
898 1009 26
1893 231 13
659 1174 11
750 219 7
1098 305 19
500 56 11
1908 153 8
2 469 11
1580 58 0
301 571 23
637 53 23
1794 465 21
1999 204 9
1921 40 8
1872 7 0
1487 173 8
709 565 13
1154 469 19
1492 465 21
1982 469 11
1634 58 0
1498 31 8
1110 954 28
829 434 1
307 607 27
1335 1877 21
1918 58 0
1915 1749 19
1879 552 28
1047 210 22
1707 58 0
1575 58 0
355 1164 30
1178 1686 34
1551 58 0
295 1 0
1134 310 7
980 3 1
22 420 8
863 153 8
955 1 0
1295 396 9
108 305 19
1126 153 8
1693 1198 11
1836 7 0
1981 970 23
1610 546 19
298 371 19
700 231 13
1709 58 0
2025 58 0
641 635 8
70 430 6
1616 288 8
979 1125 10
1314 58 0
264 1318 21
1558 565 13
1307 619 23
141 32 6
1834 956 8
40 1408 34
681 99 13
1870 147 0
1681 48 9
768 1662 10
474 174 8
1175 58 17
105 40 8
277 1658 7
1229 305 11
980 153 8
1283 40 8
134 584 8
269 58 0
1913 7 0
1757 40 8
1988 147 0
1799 655 10
1571 801 19
1325 58 0
1407 58 0
596 174 8
1250 58 0
408 40 8
1250 703 21
1474 515 25
151 1658 7
1230 58 0
1523 635 8
1789 832 19
516 1202 8
54 1702 17
1791 36 7
1207 40 8
1699 23 0
1765 291 9
788 430 6
961 58 0
1843 58 0
1567 381 10
1066 7 0
1761 1164 30
1575 40 8
1776 992 8
98 58 0
251 40 8
2 173 8
1384 58 17
1730 32 6
1094 54 8
1085 180 1
1221 926 17
137 1510 6
1544 992 8
841 992 8
1863 151 8
1272 200 8
570 1990 27
1381 58 0
1587 139 8
1359 1 0
1282 1187 13
1052 305 11
596 1 0
413 7 0
1642 40 8
1901 371 19
1914 40 8
548 7 0
426 1174 11
1155 58 0
1503 635 8
1028 7 0
1608 303 8
226 147 0
1102 478 9
1429 58 0
226 52 10
970 40 20
1415 305 19
939 655 10
1798 565 13
1999 48 10
1144 1835 21
193 1187 13
513 1318 21
401 167 8
934 58 0
1128 465 21
1019 7 0
1838 231 13
1264 1 0
1975 1607 9
1413 58 17
472 371 23
656 147 0
1360 565 13
526 4 8
1256 40 8
1608 534 0
1002 151 8
1253 607 27
155 515 25
1531 1326 7
878 1572 27
56 40 20
816 319 36
1979 515 25
1214 180 1
1007 442 8
1625 40 8
215 147 0
1482 40 8
472 242 23
1427 571 23
919 1164 30
235 231 13
2015 1221 8
1254 180 1
1838 40 8
1856 385 23
359 32 6
1937 40 8
1793 7 0
603 1178 8
735 1411 19
538 231 13
163 444 10
1279 1125 10
1781 1202 8
738 40 8
556 40 8
1921 1318 21
1444 40 8
571 32 6
983 1417 8
1057 200 8
454 954 1
1246 801 19
244 1133 11
1431 1613 27
103 655 10
712 52 9
564 303 8
1050 1411 11
1232 56 11
711 915 8
1830 40 8
1190 58 0
813 1209 10
1581 515 25
757 58 17
1390 1450 0
158 396 10
474 1228 9
1259 640 21
230 147 0
598 174 8
431 508 21
1926 1009 26
823 40 8
1924 58 0
597 153 20
1435 508 21
1995 36 7
1503 801 11
306 1133 11
863 58 0
928 40 8
861 167 8
1934 58 0
241 147 0
1539 1 0
766 305 23
1402 147 0
1693 305 23
1397 40 8
875 444 10
605 1133 11
83 219 7
1976 153 8
1442 801 23
654 261 8
1388 1 0
1240 305 23
1338 396 9
433 635 8
1616 227 7
680 1318 21
1200 1034 13
451 1111 22
1496 434 1
1926 147 0
487 58 0
1288 546 19
1480 153 8
1307 1051 25
1806 1202 8
1143 23 17
460 147 17
1561 58 0
86 52 10
408 147 0
1402 40 8
535 640 21
1964 371 19
1823 40 8
1298 58 0
1677 261 8
67 434 1
856 703 21
1251 36 7
581 310 7
232 1125 9
1317 694 9
1052 58 0
2006 40 8
1064 1450 17
2030 1337 0
226 174 8
911 403 13
919 40 8
1883 1510 6
2017 305 23
1543 305 23
1762 371 19
1498 444 9
1980 7 0
1549 385 26
464 58 0
1066 571 11
780 219 7
1609 40 8
626 465 21
1496 300 23
1029 58 0
1974 1 17
849 242 19
370 200 8
677 992 8
1231 1 0
920 732 25
51 1607 10
1867 36 7
668 954 1
84 385 19
1090 1349 22
695 1209 10
828 58 17
1100 801 11
279 801 19
634 1944 7
1688 58 0
1597 147 0
1083 465 21
1800 200 8
804 32 6
580 1 0
672 305 19
597 1851 36
1699 1 0
580 546 23
1826 508 21
1764 40 8
931 147 17
1227 565 13
1205 679 1
1265 58 0
1955 153 8
2009 552 1
1695 1125 10
1942 40 8
1483 40 8
581 315 8

1417
data/kg/CoDeX-S/n-n.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
42
P1412 0
P509 1
P463 2
P106 3
P3373 4
P530 5
P30 6
P172 7
P27 8
P108 9
P69 10
P19 11
P737 12
P101 13
P136 14
P264 15
P1303 16
P37 17
P451 18
P20 19
P17 20
P140 21
P135 22
P551 23
P26 24
P102 25
P119 26
P361 27
P1050 28
P40 29
P2348 30
P159 31
P840 32
P740 33
P35 34
P138 35
P749 36
P800 37
P161 38
P112 39
P495 40
P3095 41

1829
data/kg/CoDeX-S/test2id.txt Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

32889
data/kg/CoDeX-S/train2id.txt Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

1828
data/kg/CoDeX-S/valid2id.txt Normal file

File diff suppressed because it is too large Load Diff

180
data/kg/FB15K-237N/1-1.txt Normal file
View File

@ -0,0 +1,180 @@
179
7597 12468 175
3713 4498 200
4632 7224 130
481 481 96
13454 13454 105
2554 4218 130
4738 9836 130
8847 5823 130
14462 4635 130
2840 7685 194
2547 9517 130
4314 4314 105
9659 4394 193
6182 2607 175
12009 12009 105
13042 13042 97
7007 7007 105
12377 12377 105
1641 1641 96
12028 3159 130
12183 12183 105
5414 12655 130
9915 9915 97
3449 10061 130
13771 13771 105
5621 5621 105
11361 732 130
13692 13472 130
2100 4820 194
14144 14144 105
8148 8148 105
8105 8105 97
6284 10128 200
12024 7196 175
5851 5851 96
6499 13677 130
7664 13350 130
948 948 105
10499 7418 200
5295 5295 233
10477 10477 105
6846 6846 105
7552 13467 130
701 11079 130
7798 7798 105
6705 875 130
2352 13727 194
10823 13279 194
2007 8787 175
1940 13345 233
10410 1404 130
10893 11605 175
90 8767 130
5851 5851 97
6569 6569 172
6775 9123 130
4553 4553 105
892 8554 200
7634 4184 130
14484 627 233
3621 8805 130
5398 5398 105
7439 7439 97
5190 5190 105
7664 2405 130
7870 11605 175
3479 8533 130
7710 7710 172
8451 7578 130
1664 12847 193
5547 5547 97
13200 13200 97
10992 12693 130
7753 7753 96
5660 5660 105
6177 6177 105
2431 2431 105
8826 1423 175
1611 1611 105
10403 840 194
3570 7222 200
8105 8105 96
8446 6612 200
11734 6421 200
14429 6056 130
12248 12248 105
12528 12528 105
10019 4660 130
10385 10385 105
11470 13462 130
4654 4654 105
8973 8973 105
2554 7248 130
11364 11364 233
4181 4181 105
2435 2435 105
12832 5257 233
9046 5945 200
5039 5039 105
14218 7200 130
1082 12020 130
14104 12996 130
3729 7466 194
2834 2834 96
6531 6531 105
12433 208 130
12488 12488 105
10488 12235 175
10626 10300 175
14409 14409 105
2889 2627 130
9994 2481 233
8725 8725 105
7466 3623 130
1 1 96
5891 5891 96
689 1561 175
14206 1556 200
3789 3789 97
4060 4060 97
7288 9887 130
9987 3468 175
12389 4754 130
6937 6937 105
5972 5972 105
11020 8808 175
8270 8270 105
13042 13042 96
13546 2616 130
2854 7414 130
4314 11732 130
3461 3461 97
14035 14035 105
6744 4761 175
2501 12375 194
7070 5848 130
10956 4380 130
7279 13838 130
2379 2379 105
11278 11278 105
13376 13376 105
6140 5601 175
9214 9214 96
3874 4004 175
969 9625 130
13242 13242 105
9281 3957 130
4060 4060 96
6037 10521 130
5972 4949 130
13734 13734 105
8079 7911 130
7235 4842 175
4399 8841 194
3789 3789 96
6548 6548 233
6850 6850 105
8177 8177 233
481 481 97
8728 8728 105
2554 12464 130
9915 9915 96
11827 5933 194
1032 68 175
2834 2834 97
9299 9299 105
9573 9573 233
1916 4127 175
8072 7466 194
1742 1742 97
5762 2761 130
154 13899 194
2371 4524 130
7403 1753 130
6007 6007 105
13136 1405 233
14519 6311 130
12158 12158 105
8657 8657 105

562
data/kg/FB15K-237N/1-n.txt Normal file
View File

@ -0,0 +1,562 @@
561
391 3313 73
7005 8737 38
7005 5905 38
6046 13799 60
14101 12129 38
1262 13539 38
10194 5421 216
8625 3208 210
10273 12218 226
1261 3484 73
9881 2586 88
4586 2782 60
13426 9592 88
1672 6473 38
1672 5636 38
10889 6437 38
12389 11256 104
10781 8047 38
12614 3871 205
2907 7390 212
12302 400 38
14101 6046 38
14101 6029 38
5478 10562 38
1262 5330 38
1727 10225 38
582 2194 73
8026 1254 38
1261 8075 73
1598 6347 88
8661 12247 38
13639 5847 210
10335 697 38
13426 272 88
5695 5220 226
14169 6989 88
1672 10203 38
8999 3313 38
1948 10439 38
12389 4534 104
12389 1569 104
7225 3646 176
5882 3483 73
7724 8095 88
7106 3640 38
1729 7342 88
1262 4694 38
8625 1478 210
10311 11202 38
1261 13397 73
2361 2805 38
13880 9118 88
4582 538 88
11377 9492 38
13426 9681 88
5924 12881 88
10889 4986 38
14104 811 104
8429 10319 38
7148 10863 73
7106 13198 38
7106 27 38
11892 14498 73
1727 8915 38
11756 3769 38
7982 7121 38
8661 1961 38
11751 4794 38
11751 403 38
12295 8826 88
12295 11964 88
13381 2184 73
4917 3074 176
8494 1705 38
8429 5252 38
11378 5844 88
7724 8892 88
7005 12057 38
2907 1389 212
1727 2718 38
1727 459 38
1727 5248 38
1405 11675 38
10273 1535 226
746 10803 88
10362 9295 60
1261 10655 73
1261 10264 73
11909 1010 216
7982 11171 38
13639 2219 73
11377 3147 38
1050 617 73
13426 14201 88
8207 9 60
2691 7659 88
13932 3676 88
7724 4364 88
12112 2811 38
1727 12469 38
11124 6797 38
10311 12869 38
6786 3069 73
6520 5716 38
8661 10677 38
13937 13519 212
10505 5395 88
5146 10507 88
8295 13312 38
7225 4633 176
7005 13970 38
2112 14106 210
11892 7135 73
11326 13533 73
8193 4180 38
1727 7630 38
1727 6988 38
1727 8611 38
8625 511 210
1261 10830 73
13880 4489 88
9346 1028 216
10176 10187 73
10339 13918 38
4917 3646 176
14169 3504 88
7021 11272 38
10889 7114 38
1948 345 38
12389 9514 104
12389 7891 104
12389 1025 104
12389 2120 104
6992 13837 60
7005 1598 38
7005 6467 38
7005 7461 38
13684 10226 88
2112 13328 210
11326 742 73
2738 1847 60
12912 3483 38
11952 10130 88
1727 248 38
1727 3315 38
1727 3187 38
1354 9960 73
9992 11028 73
6520 13415 38
1261 6005 73
1261 4642 73
11756 3570 38
8661 1334 38
4582 937 88
14294 5831 73
12767 7663 205
11751 12845 38
9585 13785 73
6664 765 60
12389 11343 104
12389 13625 104
8785 7308 88
3713 2624 88
14101 13661 38
5478 11588 38
1405 5719 38
1261 13141 73
7207 4791 60
1497 13165 73
14420 4745 88
5695 11772 226
10889 2506 38
12389 754 104
12389 3718 104
12389 12701 104
7244 11183 88
7005 8875 38
7106 7372 38
5478 12984 38
1727 11034 38
1727 10664 38
1727 210 38
1727 6664 38
10311 10558 38
2361 3686 38
8661 5917 38
5788 2318 38
14294 12852 73
10185 5492 73
4191 13539 73
5695 11471 226
1672 5640 38
1533 5052 38
1533 1786 38
1533 12662 38
12389 3848 104
12389 7815 104
12389 10788 104
12389 14394 104
7225 7044 176
12912 7118 38
1727 8922 38
6520 7054 38
13639 2813 210
1497 5380 73
5189 9246 88
1393 7954 38
4191 8867 73
5695 535 226
5695 13715 226
7215 7514 88
11040 4731 38
10889 13059 38
10781 10677 38
7005 1609 38
2907 12086 212
11892 2836 73
2442 2220 38
1727 6949 38
10311 11304 38
3190 5900 88
12367 71 210
11756 508 38
8661 12405 38
13880 5171 88
1050 8128 88
13426 1614 88
9585 10327 73
3990 8096 88
7225 914 176
7225 1228 176
7106 13237 38
7106 8679 38
11326 715 73
3186 2114 60
1262 1992 38
1727 513 38
1261 8690 73
1261 14343 73
11756 7791 38
8665 7316 38
10339 10125 38
10339 8016 38
11751 3797 38
12111 11725 60
12111 2807 60
11824 4320 38
13518 11216 73
10505 6792 88
9585 12597 73
185 3244 210
10889 1794 38
12389 3202 104
12389 4206 104
6159 8268 60
7724 8044 88
7106 9938 38
3412 8574 38
612 3632 73
1261 6623 73
5742 13862 216
12767 11893 205
1050 12026 73
1050 4458 73
5695 10038 226
12389 5944 104
12389 11960 104
5882 1650 73
3663 6625 60
8229 2417 88
7106 5567 38
11632 10710 60
14101 6050 38
1727 5053 38
10311 592 38
6786 10656 73
1261 5001 73
11909 1772 216
8661 7631 38
8661 12497 38
8665 11013 38
11751 7411 38
607 3470 38
13937 11536 212
10815 12721 38
853 60 73
10177 2952 212
1672 8454 38
10889 12265 38
9904 11593 88
13247 12647 176
12389 6816 104
12389 7707 104
12389 9446 104
7225 8677 176
12324 2641 88
7005 413 38
14205 13672 88
14205 4113 88
7398 4305 104
1727 7094 38
10311 4260 38
8026 12193 38
2306 4872 73
11756 5865 38
8665 13012 38
11751 6647 38
10815 8676 38
5695 8398 226
6082 13565 38
12389 1868 104
10781 7129 38
11378 5732 88
1727 5958 38
1727 7937 38
582 3703 73
582 9860 73
4582 9150 88
14294 3393 73
14294 8300 73
12295 10475 88
5189 8179 88
7021 7545 38
1533 2772 38
7005 12426 38
4158 6628 38
1727 1707 38
1727 12814 38
1727 2420 38
10481 2123 210
2306 10758 73
7982 14377 38
8661 3518 38
12814 12056 60
11824 6338 38
4917 2733 176
9585 9324 73
12389 11352 104
12389 2299 104
7005 12522 38
8824 1786 38
14101 5820 38
5375 13522 73
1727 11606 38
1727 3246 38
1727 2032 38
1727 5837 38
8661 3960 38
13880 12168 88
11377 11015 38
14294 10163 73
13426 1911 88
14169 12777 88
1948 11543 38
12389 10752 104
12389 332 104
7225 4505 176
7005 6378 38
5220 1866 88
7982 14234 38
8661 10564 38
12767 7070 205
10815 8959 38
13426 3001 88
12206 8219 73
7215 11296 88
10889 2128 38
10889 3006 38
10889 14037 38
9394 1982 88
1948 5654 38
8429 71 38
7225 1534 176
7225 12133 176
13693 4363 38
3264 6257 73
391 5717 73
2986 13288 73
7106 8352 38
1727 3069 38
4875 5885 38
11756 8446 38
197 11401 38
12814 4489 60
1050 405 73
480 11954 88
3786 14472 73
3786 3775 73
14420 1813 88
10505 2102 88
10889 3193 38
5423 5755 38
12389 9002 104
12389 9939 104
3908 12296 73
7005 5598 38
13684 10730 88
5375 9153 73
1727 7677 38
1261 12606 73
4582 2114 88
13639 304 73
13719 1548 38
10815 13876 38
1393 5527 38
6940 952 88
7021 7783 38
12206 8037 73
10889 12876 38
8295 9582 38
12389 10692 104
12389 1605 104
12389 823 104
12389 10954 104
7106 9010 38
1262 8929 38
1727 8402 38
582 1070 73
10273 5509 226
2345 7723 88
3190 5676 88
1261 1640 73
10200 7307 38
14294 8816 73
8665 3570 38
8665 9869 38
1050 1984 73
12295 12777 88
9585 7758 73
185 1855 210
10889 441 38
10889 10372 38
1533 12539 38
12389 1492 104
7225 10260 176
4224 9869 73
11378 4969 88
7005 1934 38
7005 5896 38
1826 3769 73
1727 4496 38
197 12097 38
8665 9109 38
12767 13594 205
10339 812 38
1710 13762 216
10815 2209 38
11824 7696 38
1672 12086 38
12389 11341 104
12389 7691 104
7225 6470 176
5478 9791 38
2442 13012 38
1727 1599 38
3190 1969 88
1261 6692 73
7982 13197 38
8661 4210 38
5451 13104 73
6541 5625 73
11751 4137 38
12295 12744 88
10815 5160 38
13518 12026 73
13518 13356 73
4917 10234 176
9523 7539 73
10889 3991 38
12389 11785 104
7225 9833 176
3264 8751 73
7005 13389 38
13684 3761 88
11451 500 226
13390 5648 88
7106 1214 38
7106 14044 38
1262 9582 38
1727 532 38
1727 9568 38
14294 2510 73
12814 10976 60
1050 12597 73
10815 12333 38
13949 4670 216
4663 282 38
9523 4134 73
1133 9840 60
12389 7315 104
2131 13977 88
7225 10661 176
7225 5497 176
7225 9816 176
2907 3068 212
5478 5525 38
11952 12555 88
1727 4501 38
1727 2004 38
1727 4731 38
1727 5640 38
1727 9675 38
10311 1347 38
10481 4921 210
6520 11277 38
8661 8867 38
1497 2880 73
379 12319 60
853 10855 73
185 1698 210
8295 12038 38
12389 6486 104
12389 2622 104
12389 6779 104
7225 6526 176
7005 6517 38
11451 9831 226
10384 6542 73
1727 14430 38
6520 5853 38
10815 10202 38
13426 4837 88
10889 4994 38
13247 7070 176
12389 1019 104
7225 13736 176
4224 3573 73
7005 4533 38
7005 9444 38
7106 11148 38
1727 5535 38
3190 218 73
9992 450 73
8661 9441 38
10815 1389 38
6948 10165 88
13949 13145 216
9585 11887 73
10889 487 38
10889 13525 38
10889 5247 38
14400 4746 210
8494 5224 38
3264 12881 88
7005 5509 38
7005 5555 38
2907 7800 212
14101 11116 38
1727 12280 38
1405 346 38
884 10359 210
1261 7637 73
197 6437 38
9648 6641 88
5695 8645 226
5695 4604 226
2668 10314 73
1533 3093 38
12389 1819 104
7225 3074 176
11378 5044 88

View File

@ -0,0 +1 @@
python: can't open file 'run_base.py': [Errno 2] No such file or directory

File diff suppressed because it is too large Load Diff

2442
data/kg/FB15K-237N/n-1.txt Normal file

File diff suppressed because it is too large Load Diff

154
data/kg/FB15K-237N/n-n.py Normal file
View File

@ -0,0 +1,154 @@
lef = {}
rig = {}
rellef = {}
relrig = {}
triple = open("train2id.txt", "r")
valid = open("valid2id.txt", "r")
test = open("test2id.txt", "r")
tot = (int)(triple.readline())
for i in range(tot):
content = triple.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
tot = (int)(valid.readline())
for i in range(tot):
content = valid.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
tot = (int)(test.readline())
for i in range(tot):
content = test.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
test.close()
valid.close()
triple.close()
f = open("type_constrain.txt", "w")
f.write("%d\n"%(len(rellef)))
for i in rellef:
f.write("%s\t%d"%(i,len(rellef[i])))
for j in rellef[i]:
f.write("\t%s"%(j))
f.write("\n")
f.write("%s\t%d"%(i,len(relrig[i])))
for j in relrig[i]:
f.write("\t%s"%(j))
f.write("\n")
f.close()
rellef = {}
totlef = {}
relrig = {}
totrig = {}
# lef: (h, r)
# rig: (r, t)
for i in lef:
if not i[1] in rellef:
rellef[i[1]] = 0
totlef[i[1]] = 0
rellef[i[1]] += len(lef[i])
totlef[i[1]] += 1.0
for i in rig:
if not i[0] in relrig:
relrig[i[0]] = 0
totrig[i[0]] = 0
relrig[i[0]] += len(rig[i])
totrig[i[0]] += 1.0
s11=0
s1n=0
sn1=0
snn=0
f = open("test2id.txt", "r")
tot = (int)(f.readline())
for i in range(tot):
content = f.readline()
h,t,r = content.strip().split()
rign = rellef[r] / totlef[r]
lefn = relrig[r] / totrig[r]
if (rign < 1.5 and lefn < 1.5):
s11+=1
if (rign >= 1.5 and lefn < 1.5):
s1n+=1
if (rign < 1.5 and lefn >= 1.5):
sn1+=1
if (rign >= 1.5 and lefn >= 1.5):
snn+=1
f.close()
f = open("test2id.txt", "r")
f11 = open("1-1.txt", "w")
f1n = open("1-n.txt", "w")
fn1 = open("n-1.txt", "w")
fnn = open("n-n.txt", "w")
fall = open("test2id_all.txt", "w")
tot = (int)(f.readline())
fall.write("%d\n"%(tot))
f11.write("%d\n"%(s11))
f1n.write("%d\n"%(s1n))
fn1.write("%d\n"%(sn1))
fnn.write("%d\n"%(snn))
for i in range(tot):
content = f.readline()
h,t,r = content.strip().split()
rign = rellef[r] / totlef[r]
lefn = relrig[r] / totrig[r]
if (rign < 1.5 and lefn < 1.5):
f11.write(content)
fall.write("0"+"\t"+content)
if (rign >= 1.5 and lefn < 1.5):
f1n.write(content)
fall.write("1"+"\t"+content)
if (rign < 1.5 and lefn >= 1.5):
fn1.write(content)
fall.write("2"+"\t"+content)
if (rign >= 1.5 and lefn >= 1.5):
fnn.write(content)
fall.write("3"+"\t"+content)
fall.close()
f.close()
f11.close()
f1n.close()
fn1.close()
fnn.close()

5046
data/kg/FB15K-237N/n-n.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,238 @@
237
/tv/tv_writer/tv_programs./tv/tv_program_writer_relationship/tv_program 0
/award/award_nominee/award_nominations./award/award_nomination/award_nominee 1
/film/film/release_date_s./film/film_regional_release_date/film_release_region 2
/award/award_nominee/award_nominations./award/award_nomination/award 3
/people/person/profession 4
/film/actor/film./film/performance/film 5
/award/award_category/nominees./award/award_nomination/nominated_for 6
/award/award_winner/awards_won./award/award_honor/award_winner 7
/film/film/genre 8
/award/award_nominee/award_nominations./award/award_nomination/nominated_for 9
/music/genre/artists 10
/award/award_category/winners./award/award_honor/award_winner 11
/film/film/other_crew./film/film_crew_gig/film_crew_role 12
/location/location/contains 13
/people/person/nationality 14
/music/performance_role/track_performances./music/track_contribution/role 15
/people/person/places_lived./people/place_lived/location 16
/people/person/gender 17
/common/topic/webpage./common/webpage/category 18
/sports/sports_position/players./sports/sports_team_roster/team 19
/award/award_winning_work/awards_won./award/award_honor/award 20
/award/award_winning_work/awards_won./award/award_honor/award_winner 21
/people/person/spouse_s./people/marriage/type_of_union 22
/award/award_category/winners./award/award_honor/ceremony 23
/award/award_ceremony/awards_presented./award/award_honor/award_winner 24
/media_common/netflix_genre/titles 25
/music/performance_role/regular_performances./music/group_membership/role 26
/education/educational_institution/students_graduates./education/education/student 27
/education/educational_institution/students_graduates./education/education/major_field_of_study 28
/film/film/language 29
/people/person/place_of_birth 30
/film/film/country 31
/film/film_distributor/films_distributed./film/film_film_distributor_relationship/film 32
/soccer/football_team/current_roster./soccer/football_roster_position/position 33
/soccer/football_team/current_roster./sports/sports_team_roster/position 34
/education/educational_degree/people_with_this_degree./education/education/institution 35
/music/record_label/artist 36
/olympics/olympic_sport/athletes./olympics/olympic_athlete_affiliation/country 37
/people/ethnicity/people 38
/location/location/adjoin_s./location/adjoining_relationship/adjoins 39
/music/instrument/instrumentalists 40
/influence/influence_node/influenced_by 41
/music/artist/track_contributions./music/track_contribution/role 42
/film/film/production_companies 43
/base/popstra/celebrity/friendship./base/popstra/friendship/participant 44
/film/film/release_date_s./film/film_regional_release_date/film_release_distribution_medium 45
/base/popstra/celebrity/dated./base/popstra/dated/participant 46
/music/performance_role/regular_performances./music/group_membership/group 47
/film/film/produced_by 48
/tv/tv_program/regular_cast./tv/regular_tv_appearance/actor 49
/film/film/estimated_budget./measurement_unit/dated_money_value/currency 50
/olympics/olympic_participating_country/medals_won./olympics/olympic_medal_honor/olympics 51
/location/location/time_zones 52
/people/person/religion 53
/government/legislative_session/members./government/government_position_held/district_represented 54
/film/film/music 55
/tv/tv_program/genre 56
/film/film/featured_film_locations 57
/food/food/nutrients./food/nutrition_fact/nutrient 58
/award/award_ceremony/awards_presented./award/award_honor/honored_for 59
/film/director/film 60
/education/educational_institution/colors 61
/organization/organization/headquarters./location/mailing_address/citytown 62
/government/legislative_session/members./government/government_position_held/legislative_sessions 63
/organization/organization_member/member_of./organization/organization_membership/organization 64
/location/hud_foreclosure_area/estimated_number_of_mortgages./measurement_unit/dated_integer/source 65
/film/film/written_by 66
/people/person/languages 67
/government/government_office_category/officeholders./government/government_position_held/jurisdiction_of_office 68
/olympics/olympic_participating_country/athletes./olympics/olympic_athlete_affiliation/olympics 69
/organization/role/leaders./organization/leadership/organization 70
/music/group_member/membership./music/group_membership/role 71
/military/military_combatant/military_conflicts./military/military_combatant_group/combatants 72
/people/cause_of_death/people 73
/business/job_title/people_with_this_title./business/employment_tenure/company 74
/education/educational_institution/school_type 75
/organization/organization/headquarters./location/mailing_address/state_province_region 76
/award/award_nominated_work/award_nominations./award/award_nomination/nominated_for 77
/people/deceased_person/place_of_death 78
/sports/sports_team/colors 79
/sports/professional_sports_team/draft_picks./sports/sports_league_draft_pick/school 80
/music/genre/parent_genre 81
/sports/pro_athlete/teams./sports/sports_team_roster/team 82
/olympics/olympic_games/sports 83
/film/film/executive_produced_by 84
/sports/sports_team/roster./american_football/football_historical_roster_position/position_s 85
/base/biblioness/bibs_location/country 86
/sports/sports_team/roster./american_football/football_roster_position/position 87
/film/film_subject/films 88
/location/statistical_region/religions./location/religion_percentage/religion 89
/user/jg/default_domain/olympic_games/sports 90
/base/aareas/schema/administrative_area/administrative_parent 91
/american_football/football_team/current_roster./sports/sports_team_roster/position 92
/music/artist/origin 93
/soccer/football_player/current_team./sports/sports_team_roster/team 94
/travel/travel_destination/climate./travel/travel_destination_monthly_climate/month 95
/education/educational_institution/campuses 96
/education/educational_institution_campus/educational_institution 97
/music/performance_role/guest_performances./music/recording_contribution/performance_role 98
/education/educational_degree/people_with_this_degree./education/education/major_field_of_study 99
/olympics/olympic_games/participating_countries 100
/education/university/domestic_tuition./measurement_unit/dated_money_value/currency 101
/base/schemastaging/person_extra/net_worth./measurement_unit/dated_money_value/currency 102
/award/award_winning_work/awards_won./award/award_honor/honored_for 103
/location/country/second_level_divisions 104
/location/hud_county_place/place 105
/organization/endowed_organization/endowment./measurement_unit/dated_money_value/currency 106
/base/popstra/celebrity/canoodled./base/popstra/canoodled/participant 107
/sports/professional_sports_team/draft_picks./sports/sports_league_draft_pick/draft 108
/people/person/spouse_s./people/marriage/spouse 109
/military/military_conflict/combatants./military/military_combatant_group/combatants 110
/sports/sports_team/sport 111
/people/marriage_union_type/unions_of_this_type./people/marriage/location_of_ceremony 112
/tv/tv_producer/programs_produced./tv/tv_producer_term/program 113
/user/tsegaran/random/taxonomy_subject/entry./user/tsegaran/random/taxonomy_entry/taxonomy 114
/film/film/story_by 115
/location/administrative_division/country 116
/film/film/other_crew./film/film_crew_gig/crewmember 117
/olympics/olympic_sport/athletes./olympics/olympic_athlete_affiliation/olympics 118
/location/statistical_region/rent50_2./measurement_unit/dated_money_value/currency 119
/time/event/locations 120
/education/university/local_tuition./measurement_unit/dated_money_value/currency 121
/base/marchmadness/ncaa_basketball_tournament/seeds./base/marchmadness/ncaa_tournament_seed/team 122
/base/popstra/location/vacationers./base/popstra/vacation_choice/vacationer 123
/film/film/film_format 124
/base/schemastaging/organization_extra/phone_number./base/schemastaging/phone_sandbox/service_location 125
/education/field_of_study/students_majoring./education/education/major_field_of_study 126
/film/film/cinematography 127
/language/human_language/countries_spoken_in 128
/award/ranked_item/appears_in_ranked_lists./award/ranking/list 129
/sports/sports_team_location/teams 130
/business/business_operation/industry 131
/people/person/employment_history./business/employment_tenure/company 132
/location/hud_county_place/county 133
/tv/tv_network/programs./tv/tv_network_duration/program 134
/base/biblioness/bibs_location/state 135
/location/country/form_of_government 136
/location/capital_of_administrative_division/capital_of./location/administrative_division_capital_relationship/administrative_division 137
/film/film/distributors./film/film_film_distributor_relationship/film_distribution_medium 138
/base/culturalevent/event/entity_involved 139
/sports/sports_league_draft/picks./sports/sports_league_draft_pick/school 140
/tv/tv_program/country_of_origin 141
/film/film/film_festivals 142
/education/educational_degree/people_with_this_degree./education/education/student 143
/education/field_of_study/students_majoring./education/education/student 144
/olympics/olympic_participating_country/medals_won./olympics/olympic_medal_honor/medal 145
/tv/tv_program/languages 146
/people/person/spouse_s./people/marriage/location_of_ceremony 147
/celebrities/celebrity/celebrity_friends./celebrities/friendship/friend 148
/base/x2010fifaworldcupsouthafrica/world_cup_squad/current_world_cup_squad./base/x2010fifaworldcupsouthafrica/current_world_cup_squad/current_club 149
/film/film/release_date_s./film/film_regional_release_date/film_regional_debut_venue 150
/celebrities/celebrity/sexual_relationships./celebrities/romantic_relationship/celebrity 151
/baseball/baseball_team/team_stats./baseball/baseball_team_stats/season 152
/tv/tv_producer/programs_produced./tv/tv_producer_term/producer_type 153
/location/country/official_language 154
/location/statistical_region/gdp_nominal./measurement_unit/dated_money_value/currency 155
/music/group_member/membership./music/group_membership/group 156
/music/artist/contribution./music/recording_contribution/performance_role 157
/film/film/personal_appearances./film/personal_film_appearance/person 158
/government/politician/government_positions_held./government/government_position_held/legislative_sessions 159
/business/business_operation/revenue./measurement_unit/dated_money_value/currency 160
/base/schemastaging/organization_extra/phone_number./base/schemastaging/phone_sandbox/service_language 161
/award/award_category/disciplines_or_subjects 162
/business/business_operation/operating_income./measurement_unit/dated_money_value/currency 163
/film/film/costume_design_by 164
/base/petbreeds/city_with_dogs/top_breeds./base/petbreeds/dog_city_relationship/dog_breed 165
/people/ethnicity/languages_spoken 166
/organization/organization/child./organization/organization_relationship/child 167
/location/statistical_region/gdp_nominal_per_capita./measurement_unit/dated_money_value/currency 168
/film/film/runtime./film/film_cut/film_release_region 169
/sports/sports_team/roster./baseball/baseball_roster_position/position 170
/organization/organization/headquarters./location/mailing_address/country 171
/location/us_county/county_seat 172
/business/business_operation/assets./measurement_unit/dated_money_value/currency 173
/film/actor/film./film/performance/special_performance_type 174
/film/film/prequel 175
/user/ktrueman/default_domain/international_organization/member_states 176
/film/film/edited_by 177
/sports/sports_team/roster./basketball/basketball_roster_position/position 178
/location/statistical_region/places_exported_to./location/imports_and_exports/exported_to 179
/influence/influence_node/peers./influence/peer_relationship/peers 180
/medicine/disease/risk_factors 181
/sports/sports_league/teams./sports/sports_league_participation/team 182
/location/statistical_region/gdp_real./measurement_unit/adjusted_money_value/adjustment_currency 183
/film/film/film_production_design_by 184
/film/film/distributors./film/film_film_distributor_relationship/region 185
/base/aareas/schema/administrative_area/administrative_area_type 186
/award/hall_of_fame/inductees./award/hall_of_fame_induction/inductee 187
/medicine/symptom/symptom_of 188
/base/popstra/celebrity/breakup./base/popstra/breakup/participant 189
/location/statistical_region/gni_per_capita_in_ppp_dollars./measurement_unit/dated_money_value/currency 190
/award/award_category/category_of 191
/travel/travel_destination/how_to_get_here./travel/transportation/mode_of_transportation 192
/tv/tv_program/program_creator 193
/location/country/capital 194
/base/schemastaging/organization_extra/phone_number./base/schemastaging/phone_sandbox/contact_category 195
/people/deceased_person/place_of_burial 196
/location/administrative_division/first_level_division_of 197
/base/aareas/schema/administrative_area/capital 198
/base/eating/practicer_of_diet/diet 199
/organization/organization_founder/organizations_founded 200
/location/location/partially_contains 201
/people/person/sibling_s./people/sibling_relationship/sibling 202
/education/university/fraternities_and_sororities 203
/sports/sport/pro_athletes./sports/pro_sports_played/athlete 204
/base/locations/continents/countries_within 205
/organization/non_profit_organization/registered_with./organization/non_profit_registration/registering_agency 206
/sports/sports_position/players./sports/sports_team_roster/position 207
/people/ethnicity/geographic_distribution 208
/tv/tv_program/tv_producer./tv/tv_producer_term/producer_type 209
/medicine/disease/notable_people_with_this_condition 210
/ice_hockey/hockey_team/current_roster./sports/sports_team_roster/position 211
/base/americancomedy/celebrity_impressionist/celebrities_impersonated 212
/education/university/international_tuition./measurement_unit/dated_money_value/currency 213
/government/politician/government_positions_held./government/government_position_held/basic_title 214
/film/film/dubbing_performances./film/dubbing_performance/actor 215
/film/film_set_designer/film_sets_designed 216
/film/actor/dubbing_performances./film/dubbing_performance/language 217
/time/event/instance_of_recurring_event 218
/base/localfood/seasonal_month/produce_available./base/localfood/produce_availability/seasonal_months 219
/government/political_party/politicians_in_this_party./government/political_party_tenure/politician 220
/government/politician/government_positions_held./government/government_position_held/jurisdiction_of_office 221
/organization/organization/place_founded 222
/tv/tv_personality/tv_regular_appearances./tv/tv_regular_personal_appearance/program 223
/sports/sports_position/players./american_football/football_historical_roster_position/position_s 224
/people/profession/specialization_of 225
/broadcast/content/artist 226
/olympics/olympic_games/medals_awarded./olympics/olympic_medal_honor/medal 227
/government/governmental_body/members./government/government_position_held/legislative_sessions 228
/film/film/film_art_direction_by 229
/user/alexander/philosophy/philosopher/interests 230
/base/saturdaynightlive/snl_cast_member/seasons./base/saturdaynightlive/snl_season_tenure/cast_members 231
/music/instrument/family 232
/dataworld/gardening_hint/split_to 233
/film/special_film_performance_type/film_performance_type./film/performance/film 234
/tv/non_character_role/tv_regular_personal_appearances./tv/tv_regular_personal_appearance/person 235
/film/person_or_entity_appearing_in_film/films./film/personal_film_appearance/type_of_appearance 236

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

1
data/kg/UMLS/1-1.txt Normal file
View File

@ -0,0 +1 @@
0

4
data/kg/UMLS/1-n.txt Normal file
View File

@ -0,0 +1,4 @@
3
75 5 25
75 113 25
10 57 25

136
data/kg/UMLS/entity2id.txt Normal file
View File

@ -0,0 +1,136 @@
135
idea_or_concept 0
virus 1
spatial_concept 2
human_caused_phenomenon_or_process 3
human 4
organ_or_tissue_function 5
daily_or_recreational_activity 6
steroid 7
biomedical_or_dental_material 8
vertebrate 9
immunologic_factor 10
inorganic_chemical 11
invertebrate 12
embryonic_structure 13
functional_concept 14
amino_acid_peptide_or_protein 15
fish 16
reptile 17
physical_object 18
disease_or_syndrome 19
biologically_active_substance 20
physiologic_function 21
population_group 22
group 23
body_space_or_junction 24
bird 25
qualitative_concept 26
bacterium 27
cell_function 28
enzyme 29
organophosphorus_compound 30
nucleic_acid_nucleoside_or_nucleotide 31
cell 32
language 33
antibiotic 34
indicator_reagent_or_diagnostic_aid 35
fungus 36
chemical_viewed_functionally 37
rickettsia_or_chlamydia 38
patient_or_disabled_group 39
professional_society 40
health_care_related_organization 41
clinical_attribute 42
biomedical_occupation_or_discipline 43
temporal_concept 44
phenomenon_or_process 45
family_group 46
chemical_viewed_structurally 47
regulation_or_law 48
acquired_abnormality 49
experimental_model_of_disease 50
professional_or_occupational_group 51
injury_or_poisoning 52
receptor 53
drug_delivery_device 54
hazardous_or_poisonous_substance 55
organism 56
neoplastic_process 57
mammal 58
molecular_function 59
lipid 60
group_attribute 61
nucleotide_sequence 62
biologic_function 63
chemical 64
cell_component 65
intellectual_product 66
manufactured_object 67
classification 68
geographic_area 69
vitamin 70
gene_or_genome 71
self_help_or_relief_organization 72
pathologic_function 73
amphibian 74
laboratory_or_test_result 75
organism_attribute 76
cell_or_molecular_dysfunction 77
therapeutic_or_preventive_procedure 78
sign_or_symptom 79
occupational_activity 80
anatomical_abnormality 81
hormone 82
fully_formed_anatomical_structure 83
educational_activity 84
quantitative_concept 85
tissue 86
organism_function 87
social_behavior 88
mental_or_behavioral_dysfunction 89
governmental_or_regulatory_activity 90
molecular_biology_research_technique 91
occupation_or_discipline 92
conceptual_entity 93
body_location_or_region 94
pharmacologic_substance 95
clinical_drug 96
food 97
substance 98
genetic_function 99
congenital_abnormality 100
medical_device 101
carbohydrate 102
health_care_activity 103
eicosanoid 104
element_ion_or_isotope 105
diagnostic_procedure 106
entity 107
event 108
laboratory_procedure 109
environmental_effect_of_humans 110
body_part_organ_or_organ_component 111
molecular_sequence 112
mental_process 113
research_device 114
alga 115
natural_phenomenon_or_process 116
anatomical_structure 117
animal 118
body_system 119
behavior 120
carbohydrate_sequence 121
archaeon 122
research_activity 123
organization 124
individual_behavior 125
organic_chemical 126
finding 127
age_group 128
activity 129
machine_activity 130
plant 131
body_substance 132
amino_acid_sequence 133
neuroreactive_substance_or_biogenic_amine 134

6
data/kg/UMLS/n-1.txt Normal file
View File

@ -0,0 +1,6 @@
5
30 96 22
47 96 22
65 119 10
82 96 22
55 96 22

154
data/kg/UMLS/n-n.py Normal file
View File

@ -0,0 +1,154 @@
lef = {}
rig = {}
rellef = {}
relrig = {}
triple = open("train2id.txt", "r")
valid = open("valid2id.txt", "r")
test = open("test2id.txt", "r")
tot = (int)(triple.readline())
for i in range(tot):
content = triple.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
tot = (int)(valid.readline())
for i in range(tot):
content = valid.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
tot = (int)(test.readline())
for i in range(tot):
content = test.readline()
h,t,r = content.strip().split()
if not (h,r) in lef:
lef[(h,r)] = []
if not (r,t) in rig:
rig[(r,t)] = []
lef[(h,r)].append(t)
rig[(r,t)].append(h)
if not r in rellef:
rellef[r] = {}
if not r in relrig:
relrig[r] = {}
rellef[r][h] = 1
relrig[r][t] = 1
test.close()
valid.close()
triple.close()
f = open("type_constrain.txt", "w")
f.write("%d\n"%(len(rellef)))
for i in rellef:
f.write("%s\t%d"%(i,len(rellef[i])))
for j in rellef[i]:
f.write("\t%s"%(j))
f.write("\n")
f.write("%s\t%d"%(i,len(relrig[i])))
for j in relrig[i]:
f.write("\t%s"%(j))
f.write("\n")
f.close()
rellef = {}
totlef = {}
relrig = {}
totrig = {}
# lef: (h, r)
# rig: (r, t)
for i in lef:
if not i[1] in rellef:
rellef[i[1]] = 0
totlef[i[1]] = 0
rellef[i[1]] += len(lef[i])
totlef[i[1]] += 1.0
for i in rig:
if not i[0] in relrig:
relrig[i[0]] = 0
totrig[i[0]] = 0
relrig[i[0]] += len(rig[i])
totrig[i[0]] += 1.0
s11=0
s1n=0
sn1=0
snn=0
f = open("test2id.txt", "r")
tot = (int)(f.readline())
for i in range(tot):
content = f.readline()
h,t,r = content.strip().split()
rign = rellef[r] / totlef[r]
lefn = relrig[r] / totrig[r]
if (rign < 1.5 and lefn < 1.5):
s11+=1
if (rign >= 1.5 and lefn < 1.5):
s1n+=1
if (rign < 1.5 and lefn >= 1.5):
sn1+=1
if (rign >= 1.5 and lefn >= 1.5):
snn+=1
f.close()
f = open("test2id.txt", "r")
f11 = open("1-1.txt", "w")
f1n = open("1-n.txt", "w")
fn1 = open("n-1.txt", "w")
fnn = open("n-n.txt", "w")
fall = open("test2id_all.txt", "w")
tot = (int)(f.readline())
fall.write("%d\n"%(tot))
f11.write("%d\n"%(s11))
f1n.write("%d\n"%(s1n))
fn1.write("%d\n"%(sn1))
fnn.write("%d\n"%(snn))
for i in range(tot):
content = f.readline()
h,t,r = content.strip().split()
rign = rellef[r] / totlef[r]
lefn = relrig[r] / totrig[r]
if (rign < 1.5 and lefn < 1.5):
f11.write(content)
fall.write("0"+"\t"+content)
if (rign >= 1.5 and lefn < 1.5):
f1n.write(content)
fall.write("1"+"\t"+content)
if (rign < 1.5 and lefn >= 1.5):
fn1.write(content)
fall.write("2"+"\t"+content)
if (rign >= 1.5 and lefn >= 1.5):
fnn.write(content)
fall.write("3"+"\t"+content)
fall.close()
f.close()
f11.close()
f1n.close()
fn1.close()
fnn.close()

654
data/kg/UMLS/n-n.txt Normal file
View File

@ -0,0 +1,654 @@
653
7 104 13
42 93 43
94 21 28
57 19 43
102 59 27
19 5 27
98 92 15
75 99 7
37 107 43
89 88 27
3 73 19
15 34 13
82 50 27
34 28 27
13 25 41
86 126 29
99 5 30
100 58 41
11 77 20
53 32 2
40 109 28
87 28 9
10 77 20
70 57 27
34 81 40
85 21 31
73 63 27
100 92 15
86 24 35
70 5 2
53 98 43
113 87 43
9 125 45
94 78 28
18 43 15
11 28 27
57 9 27
28 58 27
22 101 14
3 59 19
95 57 42
13 77 28
50 109 19
29 28 2
73 52 40
89 19 12
131 118 13
19 73 30
73 106 19
81 63 5
75 73 5
16 43 15
102 77 27
63 1 27
113 28 18
50 89 36
100 27 41
3 21 19
32 78 28
50 116 30
57 45 19
134 87 27
89 122 30
100 1 41
73 99 5
20 89 20
95 19 42
24 28 28
99 1 27
49 106 19
21 122 27
65 73 28
91 37 0
59 3 19
51 67 14
53 59 2
5 63 30
91 105 0
21 50 19
21 20 29
83 74 41
29 87 40
86 1 28
12 118 43
113 99 9
81 27 28
83 77 28
5 99 9
21 3 19
59 77 19
106 73 26
21 57 19
60 95 13
65 53 29
21 100 19
128 130 11
100 76 26
109 15 23
70 113 27
65 56 41
68 93 43
87 73 19
87 70 29
109 89 6
102 73 27
65 107 43
73 56 27
113 27 27
86 132 29
65 111 41
59 89 27
102 10 13
6 49 26
59 19 19
57 52 36
83 122 41
102 113 27
105 55 13
52 59 2
51 22 13
89 122 27
126 57 27
98 19 20
20 19 20
52 86 2
73 92 15
89 17 30
49 73 5
105 43 15
120 128 26
19 77 40
83 53 29
64 52 20
89 17 27
63 87 27
34 134 13
20 89 27
109 99 16
123 15 0
19 77 27
73 19 19
19 89 36
88 39 26
34 89 6
73 87 19
131 17 13
89 74 27
79 89 6
63 89 19
63 77 27
81 9 41
46 23 13
50 16 30
89 116 27
87 115 27
65 24 28
111 99 28
64 99 27
37 21 27
33 43 15
111 5 28
123 80 43
106 55 23
50 23 36
31 107 43
106 100 26
80 77 26
5 49 19
59 28 27
89 120 19
47 102 13
28 57 27
73 89 36
46 78 11
46 114 29
15 113 27
82 63 40
81 103 19
87 63 30
10 19 40
62 31 17
124 80 28
42 99 19
70 81 20
89 5 27
57 89 19
111 126 29
1 56 43
5 21 30
125 92 26
55 19 27
77 21 27
82 86 2
59 118 27
21 59 27
63 21 27
47 5 27
28 19 19
15 63 27
50 63 27
8 63 27
91 15 0
50 27 27
34 5 27
4 58 43
22 6 11
32 17 41
5 4 27
35 64 13
77 87 19
91 104 0
91 116 0
76 19 19
95 52 42
99 63 27
23 125 45
3 45 19
34 99 27
82 29 13
73 122 30
25 58 13
134 5 2
102 77 20
28 19 27
32 36 41
87 4 30
53 89 40
99 59 43
89 77 12
61 46 17
95 50 6
73 115 27
86 63 28
87 113 9
80 57 26
35 99 27
102 8 13
87 44 36
11 81 20
77 87 27
74 88 45
117 115 41
60 107 43
77 19 19
88 51 26
32 82 29
12 107 43
126 77 20
49 3 19
73 19 5
37 92 15
50 81 9
109 105 16
106 28 0
47 92 15
99 19 27
75 79 9
15 37 13
32 27 41
28 42 27
83 131 41
47 60 13
91 59 0
36 56 13
29 70 13
100 89 5
78 73 40
64 5 27
1 82 28
5 82 29
115 134 28
109 5 27
73 12 30
67 77 20
57 38 27
77 49 19
99 131 27
115 18 43
46 109 11
19 77 12
17 88 45
78 39 27
26 125 7
22 48 14
34 77 20
77 89 36
49 99 5
27 107 43
50 128 36
10 100 20
109 95 0
19 16 27
63 57 19
78 49 26
32 70 29
113 9 30
113 57 19
106 77 6
38 70 28
57 73 5
19 57 18
21 116 19
75 97 31
106 105 16
70 77 20
121 0 43
3 52 19
105 77 20
126 100 20
3 50 19
50 89 40
5 116 43
62 112 43
21 36 27
50 45 43
77 52 5
96 49 20
65 99 28
80 19 26
75 81 26
128 88 11
83 21 28
82 70 13
59 87 18
3 108 43
51 106 11
19 52 9
113 20 29
59 82 29
57 100 40
57 113 19
104 43 15
41 107 43
28 63 43
106 95 23
10 99 40
21 99 18
10 21 40
89 58 30
57 99 30
63 16 27
5 25 27
89 110 19
55 57 40
77 88 19
50 3 19
105 70 13
54 52 20
83 36 28
83 27 28
116 19 19
29 50 40
125 89 5
69 0 43
86 83 43
79 50 6
84 73 26
53 63 27
5 21 9
89 70 29
50 21 19
82 21 40
72 84 33
110 108 43
64 19 20
106 100 6
65 4 41
50 103 19
75 50 5
76 113 31
28 99 27
117 131 41
116 73 19
100 50 19
87 53 29
97 57 20
82 99 27
106 43 15
5 89 30
25 122 13
109 30 23
118 56 13
109 19 16
131 115 13
78 57 3
100 81 40
34 87 2
128 6 11
71 131 41
15 134 13
95 73 20
60 92 15
114 81 20
19 115 30
81 28 19
34 50 42
34 113 40
52 28 19
21 5 18
99 3 19
85 113 31
36 73 20
38 10 28
104 105 13
11 57 20
117 43 15
10 52 40
54 52 42
114 107 43
20 134 13
30 20 13
59 74 27
89 52 9
57 50 5
27 20 28
126 8 13
21 116 27
109 103 43
57 81 40
81 9 27
42 5 5
13 36 41
11 29 13
89 50 9
29 57 40
79 5 5
5 59 9
128 23 43
7 57 27
128 120 45
19 21 5
106 108 43
20 71 2
81 113 5
28 21 19
113 4 30
64 43 15
115 4 13
70 63 27
83 102 29
110 49 19
19 3 19
126 7 13
77 116 30
81 118 41
106 54 14
91 106 34
20 52 20
81 131 27
59 12 30
106 95 0
105 59 27
89 57 19
130 129 43
31 82 13
109 57 27
8 64 43
73 118 27
53 73 20
35 81 20
134 77 27
28 38 27
13 1 28
78 28 27
4 56 13
36 19 20
32 53 29
22 48 29
46 123 11
70 52 20
112 43 15
7 43 15
27 16 13
28 113 19
76 58 17
81 19 5
77 110 19
21 58 27
83 25 41
126 82 13
0 92 15
39 114 14
53 49 20
63 19 19
20 29 13
21 63 43
34 28 40
55 113 2
73 77 18
76 56 17
30 102 13
27 53 28
5 50 19
83 87 28
127 93 43
100 107 43
86 43 15
116 57 19
76 5 5
78 28 40
22 101 29
34 20 13
34 49 20
28 70 29
57 21 27
110 89 19
5 87 27
60 73 27
109 113 27
20 65 2
127 87 5
87 25 27
99 21 27
28 99 19
34 21 27
30 73 20
116 99 27
57 53 29
109 8 0
76 59 31
21 63 27
50 57 19
115 1 13
100 36 28
34 77 6
106 44 0
89 63 19
95 63 40
95 87 2
81 52 19
83 59 28
31 34 13
134 20 43
50 27 30
134 64 13
77 25 27
75 93 43
73 76 26
49 52 9
51 54 14
51 50 6
77 57 12
57 43 15
19 113 19
57 25 30
73 81 19
100 19 5
76 57 19
52 92 15
53 89 20
42 27 17
31 50 27
60 100 20
47 37 13
34 73 3
104 126 43
20 5 2
5 99 27
34 57 27
83 1 28
26 129 7
13 32 41
29 86 2
90 19 26
71 113 28
57 87 30
95 43 15
53 19 40
19 99 30
81 1 28
13 9 41
87 50 27
67 89 20
32 111 41
59 50 19
101 49 42
19 4 27
111 59 28
19 57 36
70 37 43
65 92 15
65 31 29
27 56 43
77 52 36
55 92 15
124 84 28
86 20 29
36 18 43
87 45 19
87 63 43
126 31 13
126 116 27
106 57 26
59 134 29
89 25 30
47 63 27
50 20 29
89 76 26
109 134 23
126 98 43
89 131 27
6 50 26
113 5 18
64 57 27
82 20 43
91 53 0
50 57 18
95 134 13
1 16 13
49 1 27
73 59 19
13 36 28
95 77 27
63 49 19
57 81 9
57 49 19
111 132 29
77 89 30
84 92 15
73 57 5
1 73 20
52 50 40
104 95 13
59 116 19
57 86 29
106 70 16
81 5 5
30 77 27
109 76 0
37 10 13
106 19 6
52 19 40
59 100 19
63 27 27
87 82 29
125 57 26
116 28 27
6 73 26
83 38 28
5 73 27
57 74 27
49 128 36
113 76 27
91 57 0
19 39 36
89 58 27
110 45 43
77 50 18
75 107 43
1 122 13
35 89 20
117 36 41
77 25 30

View File

@ -0,0 +1,47 @@
46
measures 0
derivative_of 1
disrupts 2
prevents 3
conceptually_related_to 4
manifestation_of 5
diagnoses 6
evaluation_of 7
contains 8
co-occurs_with 9
conceptual_part_of 10
performs 11
degree_of 12
interacts_with 13
uses 14
issue_in 15
assesses_effect_of 16
property_of 17
precedes 18
result_of 19
causes 20
practices 21
ingredient_of 22
analyzes 23
surrounds 24
indicates 25
associated_with 26
affects 27
location_of 28
produces 29
process_of 30
measurement_of 31
connected_to 32
carries_out 33
method_of 34
adjacent_to 35
occurs_in 36
consists_of 37
interconnects 38
manages 39
complicates 40
part_of 41
treats 42
isa 43
developmental_form_of 44
exhibits 45

662
data/kg/UMLS/test2id.txt Normal file
View File

@ -0,0 +1,662 @@
661
7 104 13
42 93 43
94 21 28
57 19 43
102 59 27
19 5 27
98 92 15
75 99 7
37 107 43
30 96 22
89 88 27
3 73 19
15 34 13
82 50 27
34 28 27
13 25 41
86 126 29
99 5 30
100 58 41
11 77 20
53 32 2
40 109 28
87 28 9
10 77 20
70 57 27
34 81 40
85 21 31
73 63 27
100 92 15
86 24 35
70 5 2
53 98 43
113 87 43
9 125 45
94 78 28
18 43 15
11 28 27
57 9 27
28 58 27
22 101 14
3 59 19
95 57 42
13 77 28
50 109 19
29 28 2
73 52 40
89 19 12
131 118 13
19 73 30
73 106 19
81 63 5
75 73 5
16 43 15
102 77 27
63 1 27
113 28 18
50 89 36
100 27 41
3 21 19
32 78 28
50 116 30
57 45 19
134 87 27
89 122 30
100 1 41
73 99 5
20 89 20
95 19 42
24 28 28
99 1 27
49 106 19
21 122 27
65 73 28
91 37 0
59 3 19
51 67 14
53 59 2
5 63 30
91 105 0
21 50 19
21 20 29
83 74 41
29 87 40
86 1 28
12 118 43
113 99 9
81 27 28
83 77 28
5 99 9
21 3 19
59 77 19
106 73 26
21 57 19
60 95 13
65 53 29
21 100 19
128 130 11
100 76 26
109 15 23
70 113 27
65 56 41
68 93 43
87 73 19
87 70 29
109 89 6
102 73 27
65 107 43
73 56 27
113 27 27
75 5 25
86 132 29
65 111 41
59 89 27
102 10 13
6 49 26
59 19 19
57 52 36
83 122 41
102 113 27
105 55 13
52 59 2
51 22 13
89 122 27
126 57 27
98 19 20
20 19 20
52 86 2
73 92 15
89 17 30
49 73 5
105 43 15
120 128 26
19 77 40
83 53 29
64 52 20
89 17 27
63 87 27
34 134 13
20 89 27
109 99 16
123 15 0
19 77 27
73 19 19
19 89 36
88 39 26
34 89 6
73 87 19
131 17 13
89 74 27
79 89 6
63 89 19
63 77 27
81 9 41
46 23 13
50 16 30
89 116 27
87 115 27
65 24 28
111 99 28
64 99 27
37 21 27
33 43 15
111 5 28
123 80 43
106 55 23
50 23 36
31 107 43
106 100 26
80 77 26
5 49 19
59 28 27
47 96 22
89 120 19
47 102 13
28 57 27
73 89 36
46 78 11
46 114 29
15 113 27
82 63 40
81 103 19
87 63 30
10 19 40
62 31 17
124 80 28
42 99 19
70 81 20
89 5 27
57 89 19
111 126 29
1 56 43
5 21 30
125 92 26
55 19 27
77 21 27
82 86 2
59 118 27
21 59 27
63 21 27
75 113 25
47 5 27
28 19 19
15 63 27
50 63 27
8 63 27
91 15 0
50 27 27
34 5 27
4 58 43
22 6 11
65 119 10
32 17 41
5 4 27
35 64 13
77 87 19
91 104 0
91 116 0
76 19 19
95 52 42
99 63 27
23 125 45
3 45 19
34 99 27
82 29 13
73 122 30
25 58 13
134 5 2
102 77 20
28 19 27
32 36 41
87 4 30
53 89 40
99 59 43
89 77 12
61 46 17
95 50 6
73 115 27
86 63 28
87 113 9
80 57 26
35 99 27
102 8 13
87 44 36
11 81 20
77 87 27
74 88 45
117 115 41
60 107 43
77 19 19
88 51 26
32 82 29
12 107 43
126 77 20
49 3 19
73 19 5
37 92 15
50 81 9
109 105 16
106 28 0
47 92 15
99 19 27
75 79 9
15 37 13
32 27 41
28 42 27
83 131 41
47 60 13
91 59 0
36 56 13
29 70 13
100 89 5
78 73 40
64 5 27
1 82 28
5 82 29
115 134 28
109 5 27
73 12 30
67 77 20
57 38 27
77 49 19
99 131 27
115 18 43
46 109 11
19 77 12
17 88 45
78 39 27
26 125 7
22 48 14
34 77 20
77 89 36
49 99 5
27 107 43
50 128 36
10 100 20
109 95 0
19 16 27
63 57 19
78 49 26
32 70 29
113 9 30
113 57 19
106 77 6
38 70 28
57 73 5
19 57 18
21 116 19
75 97 31
106 105 16
70 77 20
121 0 43
3 52 19
105 77 20
126 100 20
3 50 19
50 89 40
5 116 43
62 112 43
21 36 27
50 45 43
77 52 5
96 49 20
65 99 28
80 19 26
75 81 26
128 88 11
83 21 28
82 70 13
59 87 18
3 108 43
51 106 11
19 52 9
113 20 29
59 82 29
57 100 40
57 113 19
104 43 15
41 107 43
28 63 43
106 95 23
10 99 40
21 99 18
10 21 40
89 58 30
10 57 25
57 99 30
63 16 27
5 25 27
89 110 19
55 57 40
77 88 19
50 3 19
105 70 13
54 52 20
83 36 28
83 27 28
116 19 19
29 50 40
125 89 5
69 0 43
86 83 43
79 50 6
84 73 26
53 63 27
5 21 9
89 70 29
50 21 19
82 21 40
72 84 33
110 108 43
64 19 20
106 100 6
65 4 41
50 103 19
75 50 5
76 113 31
28 99 27
117 131 41
116 73 19
100 50 19
87 53 29
97 57 20
82 99 27
106 43 15
5 89 30
25 122 13
109 30 23
118 56 13
109 19 16
131 115 13
78 57 3
100 81 40
34 87 2
128 6 11
71 131 41
15 134 13
95 73 20
60 92 15
114 81 20
19 115 30
81 28 19
34 50 42
34 113 40
52 28 19
21 5 18
99 3 19
85 113 31
36 73 20
38 10 28
104 105 13
11 57 20
117 43 15
10 52 40
54 52 42
114 107 43
20 134 13
30 20 13
59 74 27
89 52 9
57 50 5
27 20 28
126 8 13
21 116 27
109 103 43
57 81 40
81 9 27
42 5 5
13 36 41
11 29 13
89 50 9
29 57 40
79 5 5
5 59 9
128 23 43
7 57 27
128 120 45
19 21 5
106 108 43
20 71 2
81 113 5
28 21 19
113 4 30
64 43 15
115 4 13
70 63 27
83 102 29
110 49 19
19 3 19
126 7 13
77 116 30
81 118 41
106 54 14
91 106 34
20 52 20
81 131 27
59 12 30
106 95 0
105 59 27
89 57 19
130 129 43
31 82 13
109 57 27
8 64 43
73 118 27
53 73 20
35 81 20
134 77 27
28 38 27
13 1 28
78 28 27
4 56 13
36 19 20
32 53 29
22 48 29
46 123 11
70 52 20
112 43 15
7 43 15
27 16 13
28 113 19
76 58 17
81 19 5
77 110 19
21 58 27
83 25 41
126 82 13
0 92 15
39 114 14
53 49 20
63 19 19
20 29 13
21 63 43
34 28 40
55 113 2
73 77 18
76 56 17
30 102 13
27 53 28
5 50 19
83 87 28
127 93 43
100 107 43
86 43 15
116 57 19
76 5 5
78 28 40
22 101 29
34 20 13
34 49 20
28 70 29
57 21 27
110 89 19
5 87 27
60 73 27
109 113 27
20 65 2
127 87 5
87 25 27
99 21 27
28 99 19
34 21 27
30 73 20
116 99 27
57 53 29
109 8 0
76 59 31
21 63 27
50 57 19
115 1 13
100 36 28
34 77 6
106 44 0
89 63 19
95 63 40
95 87 2
81 52 19
83 59 28
31 34 13
134 20 43
50 27 30
134 64 13
77 25 27
75 93 43
73 76 26
49 52 9
51 54 14
51 50 6
77 57 12
57 43 15
19 113 19
57 25 30
73 81 19
100 19 5
76 57 19
52 92 15
53 89 20
42 27 17
31 50 27
60 100 20
47 37 13
34 73 3
104 126 43
20 5 2
5 99 27
34 57 27
83 1 28
26 129 7
13 32 41
29 86 2
90 19 26
71 113 28
57 87 30
95 43 15
53 19 40
19 99 30
81 1 28
13 9 41
87 50 27
67 89 20
32 111 41
59 50 19
101 49 42
19 4 27
111 59 28
19 57 36
70 37 43
65 92 15
65 31 29
27 56 43
77 52 36
55 92 15
124 84 28
86 20 29
36 18 43
87 45 19
87 63 43
126 31 13
126 116 27
106 57 26
59 134 29
89 25 30
47 63 27
50 20 29
89 76 26
109 134 23
126 98 43
89 131 27
6 50 26
113 5 18
64 57 27
82 96 22
82 20 43
91 53 0
50 57 18
95 134 13
1 16 13
49 1 27
73 59 19
13 36 28
95 77 27
63 49 19
57 81 9
57 49 19
111 132 29
77 89 30
84 92 15
73 57 5
1 73 20
52 50 40
104 95 13
59 116 19
57 86 29
106 70 16
81 5 5
55 96 22
30 77 27
109 76 0
37 10 13
106 19 6
52 19 40
59 100 19
63 27 27
87 82 29
125 57 26
116 28 27
6 73 26
83 38 28
5 73 27
57 74 27
49 128 36
113 76 27
91 57 0
19 39 36
89 58 27
110 45 43
77 50 18
75 107 43
1 122 13
35 89 20
117 36 41
77 25 30

View File

@ -0,0 +1,662 @@
661
3 7 104 13
3 42 93 43
3 94 21 28
3 57 19 43
3 102 59 27
3 19 5 27
3 98 92 15
3 75 99 7
3 37 107 43
2 30 96 22
3 89 88 27
3 3 73 19
3 15 34 13
3 82 50 27
3 34 28 27
3 13 25 41
3 86 126 29
3 99 5 30
3 100 58 41
3 11 77 20
3 53 32 2
3 40 109 28
3 87 28 9
3 10 77 20
3 70 57 27
3 34 81 40
3 85 21 31
3 73 63 27
3 100 92 15
3 86 24 35
3 70 5 2
3 53 98 43
3 113 87 43
3 9 125 45
3 94 78 28
3 18 43 15
3 11 28 27
3 57 9 27
3 28 58 27
3 22 101 14
3 3 59 19
3 95 57 42
3 13 77 28
3 50 109 19
3 29 28 2
3 73 52 40
3 89 19 12
3 131 118 13
3 19 73 30
3 73 106 19
3 81 63 5
3 75 73 5
3 16 43 15
3 102 77 27
3 63 1 27
3 113 28 18
3 50 89 36
3 100 27 41
3 3 21 19
3 32 78 28
3 50 116 30
3 57 45 19
3 134 87 27
3 89 122 30
3 100 1 41
3 73 99 5
3 20 89 20
3 95 19 42
3 24 28 28
3 99 1 27
3 49 106 19
3 21 122 27
3 65 73 28
3 91 37 0
3 59 3 19
3 51 67 14
3 53 59 2
3 5 63 30
3 91 105 0
3 21 50 19
3 21 20 29
3 83 74 41
3 29 87 40
3 86 1 28
3 12 118 43
3 113 99 9
3 81 27 28
3 83 77 28
3 5 99 9
3 21 3 19
3 59 77 19
3 106 73 26
3 21 57 19
3 60 95 13
3 65 53 29
3 21 100 19
3 128 130 11
3 100 76 26
3 109 15 23
3 70 113 27
3 65 56 41
3 68 93 43
3 87 73 19
3 87 70 29
3 109 89 6
3 102 73 27
3 65 107 43
3 73 56 27
3 113 27 27
1 75 5 25
3 86 132 29
3 65 111 41
3 59 89 27
3 102 10 13
3 6 49 26
3 59 19 19
3 57 52 36
3 83 122 41
3 102 113 27
3 105 55 13
3 52 59 2
3 51 22 13
3 89 122 27
3 126 57 27
3 98 19 20
3 20 19 20
3 52 86 2
3 73 92 15
3 89 17 30
3 49 73 5
3 105 43 15
3 120 128 26
3 19 77 40
3 83 53 29
3 64 52 20
3 89 17 27
3 63 87 27
3 34 134 13
3 20 89 27
3 109 99 16
3 123 15 0
3 19 77 27
3 73 19 19
3 19 89 36
3 88 39 26
3 34 89 6
3 73 87 19
3 131 17 13
3 89 74 27
3 79 89 6
3 63 89 19
3 63 77 27
3 81 9 41
3 46 23 13
3 50 16 30
3 89 116 27
3 87 115 27
3 65 24 28
3 111 99 28
3 64 99 27
3 37 21 27
3 33 43 15
3 111 5 28
3 123 80 43
3 106 55 23
3 50 23 36
3 31 107 43
3 106 100 26
3 80 77 26
3 5 49 19
3 59 28 27
2 47 96 22
3 89 120 19
3 47 102 13
3 28 57 27
3 73 89 36
3 46 78 11
3 46 114 29
3 15 113 27
3 82 63 40
3 81 103 19
3 87 63 30
3 10 19 40
3 62 31 17
3 124 80 28
3 42 99 19
3 70 81 20
3 89 5 27
3 57 89 19
3 111 126 29
3 1 56 43
3 5 21 30
3 125 92 26
3 55 19 27
3 77 21 27
3 82 86 2
3 59 118 27
3 21 59 27
3 63 21 27
1 75 113 25
3 47 5 27
3 28 19 19
3 15 63 27
3 50 63 27
3 8 63 27
3 91 15 0
3 50 27 27
3 34 5 27
3 4 58 43
3 22 6 11
2 65 119 10
3 32 17 41
3 5 4 27
3 35 64 13
3 77 87 19
3 91 104 0
3 91 116 0
3 76 19 19
3 95 52 42
3 99 63 27
3 23 125 45
3 3 45 19
3 34 99 27
3 82 29 13
3 73 122 30
3 25 58 13
3 134 5 2
3 102 77 20
3 28 19 27
3 32 36 41
3 87 4 30
3 53 89 40
3 99 59 43
3 89 77 12
3 61 46 17
3 95 50 6
3 73 115 27
3 86 63 28
3 87 113 9
3 80 57 26
3 35 99 27
3 102 8 13
3 87 44 36
3 11 81 20
3 77 87 27
3 74 88 45
3 117 115 41
3 60 107 43
3 77 19 19
3 88 51 26
3 32 82 29
3 12 107 43
3 126 77 20
3 49 3 19
3 73 19 5
3 37 92 15
3 50 81 9
3 109 105 16
3 106 28 0
3 47 92 15
3 99 19 27
3 75 79 9
3 15 37 13
3 32 27 41
3 28 42 27
3 83 131 41
3 47 60 13
3 91 59 0
3 36 56 13
3 29 70 13
3 100 89 5
3 78 73 40
3 64 5 27
3 1 82 28
3 5 82 29
3 115 134 28
3 109 5 27
3 73 12 30
3 67 77 20
3 57 38 27
3 77 49 19
3 99 131 27
3 115 18 43
3 46 109 11
3 19 77 12
3 17 88 45
3 78 39 27
3 26 125 7
3 22 48 14
3 34 77 20
3 77 89 36
3 49 99 5
3 27 107 43
3 50 128 36
3 10 100 20
3 109 95 0
3 19 16 27
3 63 57 19
3 78 49 26
3 32 70 29
3 113 9 30
3 113 57 19
3 106 77 6
3 38 70 28
3 57 73 5
3 19 57 18
3 21 116 19
3 75 97 31
3 106 105 16
3 70 77 20
3 121 0 43
3 3 52 19
3 105 77 20
3 126 100 20
3 3 50 19
3 50 89 40
3 5 116 43
3 62 112 43
3 21 36 27
3 50 45 43
3 77 52 5
3 96 49 20
3 65 99 28
3 80 19 26
3 75 81 26
3 128 88 11
3 83 21 28
3 82 70 13
3 59 87 18
3 3 108 43
3 51 106 11
3 19 52 9
3 113 20 29
3 59 82 29
3 57 100 40
3 57 113 19
3 104 43 15
3 41 107 43
3 28 63 43
3 106 95 23
3 10 99 40
3 21 99 18
3 10 21 40
3 89 58 30
1 10 57 25
3 57 99 30
3 63 16 27
3 5 25 27
3 89 110 19
3 55 57 40
3 77 88 19
3 50 3 19
3 105 70 13
3 54 52 20
3 83 36 28
3 83 27 28
3 116 19 19
3 29 50 40
3 125 89 5
3 69 0 43
3 86 83 43
3 79 50 6
3 84 73 26
3 53 63 27
3 5 21 9
3 89 70 29
3 50 21 19
3 82 21 40
3 72 84 33
3 110 108 43
3 64 19 20
3 106 100 6
3 65 4 41
3 50 103 19
3 75 50 5
3 76 113 31
3 28 99 27
3 117 131 41
3 116 73 19
3 100 50 19
3 87 53 29
3 97 57 20
3 82 99 27
3 106 43 15
3 5 89 30
3 25 122 13
3 109 30 23
3 118 56 13
3 109 19 16
3 131 115 13
3 78 57 3
3 100 81 40
3 34 87 2
3 128 6 11
3 71 131 41
3 15 134 13
3 95 73 20
3 60 92 15
3 114 81 20
3 19 115 30
3 81 28 19
3 34 50 42
3 34 113 40
3 52 28 19
3 21 5 18
3 99 3 19
3 85 113 31
3 36 73 20
3 38 10 28
3 104 105 13
3 11 57 20
3 117 43 15
3 10 52 40
3 54 52 42
3 114 107 43
3 20 134 13
3 30 20 13
3 59 74 27
3 89 52 9
3 57 50 5
3 27 20 28
3 126 8 13
3 21 116 27
3 109 103 43
3 57 81 40
3 81 9 27
3 42 5 5
3 13 36 41
3 11 29 13
3 89 50 9
3 29 57 40
3 79 5 5
3 5 59 9
3 128 23 43
3 7 57 27
3 128 120 45
3 19 21 5
3 106 108 43
3 20 71 2
3 81 113 5
3 28 21 19
3 113 4 30
3 64 43 15
3 115 4 13
3 70 63 27
3 83 102 29
3 110 49 19
3 19 3 19
3 126 7 13
3 77 116 30
3 81 118 41
3 106 54 14
3 91 106 34
3 20 52 20
3 81 131 27
3 59 12 30
3 106 95 0
3 105 59 27
3 89 57 19
3 130 129 43
3 31 82 13
3 109 57 27
3 8 64 43
3 73 118 27
3 53 73 20
3 35 81 20
3 134 77 27
3 28 38 27
3 13 1 28
3 78 28 27
3 4 56 13
3 36 19 20
3 32 53 29
3 22 48 29
3 46 123 11
3 70 52 20
3 112 43 15
3 7 43 15
3 27 16 13
3 28 113 19
3 76 58 17
3 81 19 5
3 77 110 19
3 21 58 27
3 83 25 41
3 126 82 13
3 0 92 15
3 39 114 14
3 53 49 20
3 63 19 19
3 20 29 13
3 21 63 43
3 34 28 40
3 55 113 2
3 73 77 18
3 76 56 17
3 30 102 13
3 27 53 28
3 5 50 19
3 83 87 28
3 127 93 43
3 100 107 43
3 86 43 15
3 116 57 19
3 76 5 5
3 78 28 40
3 22 101 29
3 34 20 13
3 34 49 20
3 28 70 29
3 57 21 27
3 110 89 19
3 5 87 27
3 60 73 27
3 109 113 27
3 20 65 2
3 127 87 5
3 87 25 27
3 99 21 27
3 28 99 19
3 34 21 27
3 30 73 20
3 116 99 27
3 57 53 29
3 109 8 0
3 76 59 31
3 21 63 27
3 50 57 19
3 115 1 13
3 100 36 28
3 34 77 6
3 106 44 0
3 89 63 19
3 95 63 40
3 95 87 2
3 81 52 19
3 83 59 28
3 31 34 13
3 134 20 43
3 50 27 30
3 134 64 13
3 77 25 27
3 75 93 43
3 73 76 26
3 49 52 9
3 51 54 14
3 51 50 6
3 77 57 12
3 57 43 15
3 19 113 19
3 57 25 30
3 73 81 19
3 100 19 5
3 76 57 19
3 52 92 15
3 53 89 20
3 42 27 17
3 31 50 27
3 60 100 20
3 47 37 13
3 34 73 3
3 104 126 43
3 20 5 2
3 5 99 27
3 34 57 27
3 83 1 28
3 26 129 7
3 13 32 41
3 29 86 2
3 90 19 26
3 71 113 28
3 57 87 30
3 95 43 15
3 53 19 40
3 19 99 30
3 81 1 28
3 13 9 41
3 87 50 27
3 67 89 20
3 32 111 41
3 59 50 19
3 101 49 42
3 19 4 27
3 111 59 28
3 19 57 36
3 70 37 43
3 65 92 15
3 65 31 29
3 27 56 43
3 77 52 36
3 55 92 15
3 124 84 28
3 86 20 29
3 36 18 43
3 87 45 19
3 87 63 43
3 126 31 13
3 126 116 27
3 106 57 26
3 59 134 29
3 89 25 30
3 47 63 27
3 50 20 29
3 89 76 26
3 109 134 23
3 126 98 43
3 89 131 27
3 6 50 26
3 113 5 18
3 64 57 27
2 82 96 22
3 82 20 43
3 91 53 0
3 50 57 18
3 95 134 13
3 1 16 13
3 49 1 27
3 73 59 19
3 13 36 28
3 95 77 27
3 63 49 19
3 57 81 9
3 57 49 19
3 111 132 29
3 77 89 30
3 84 92 15
3 73 57 5
3 1 73 20
3 52 50 40
3 104 95 13
3 59 116 19
3 57 86 29
3 106 70 16
3 81 5 5
2 55 96 22
3 30 77 27
3 109 76 0
3 37 10 13
3 106 19 6
3 52 19 40
3 59 100 19
3 63 27 27
3 87 82 29
3 125 57 26
3 116 28 27
3 6 73 26
3 83 38 28
3 5 73 27
3 57 74 27
3 49 128 36
3 113 76 27
3 91 57 0
3 19 39 36
3 89 58 27
3 110 45 43
3 77 50 18
3 75 107 43
3 1 122 13
3 35 89 20
3 117 36 41
3 77 25 30

5217
data/kg/UMLS/train2id.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,93 @@
46
28 23 49 111 65 32 72 1 24 117 71 81 86 94 41 131 38 124 13 83 40 100 115 27 36
28 44 50 63 28 27 123 20 21 38 36 77 87 111 78 89 134 99 106 73 132 10 5 113 109 81 57 100 49 29 82 19 52 80 90 103 59 53 91 70 84 1 65 94 24 86
5 17 81 50 19 77 127 100 76 79 49 57 88 75 89 73 42 120 125
5 18 21 59 73 99 57 63 113 100 52 87 89 77 5 28 49 50 19 81
43 133 115 112 31 126 95 48 4 104 61 76 72 111 74 37 42 100 78 57 89 106 47 19 50 131 66 53 25 58 125 94 91 102 85 5 105 41 79 62 86 59 65 117 46 103 23 17 39 15 70 34 8 132 16 36 118 114 26 29 98 63 133 96 28 60 32 129 77 9 33 124 119 7 6 69 43 12 90 116 21 82 81 14 10 110 22 13 123 87 30 109 24 88 80 11 55 93 38 99 40 56 49 0 84 1 83 134 67 68 101 64 73 71 121 130 113 75 122 20 35 92 54 51 45 2 127 120 128 44 27 52 97 18 3
43 46 107 2 47 66 9 93 124 18 118 98 81 108 116 103 45 73 129 21 117 83 80 56 23 120 64 63 67 14 60 37 3 0 112 127 92 76 101 123 131 126 19 20 95 87 58 59
27 56 89 7 78 31 82 126 113 134 19 65 55 20 87 59 28 77 5 104 100 63 10 57 15 29 106 30 50 21 11 60 64 70 105 99 49 97 8 34 37 73 71 125 47 81 53 48 35 95 103 116 88 102 120 109 91 123
27 47 50 113 77 5 21 28 122 73 36 12 99 42 131 9 87 116 27 118 59 56 57 63 19 89 38 76 25 17 115 4 125 16 74 124 1 58 39 128 120 41 23 72 46 51 88 40 22
26 36 103 120 91 69 89 75 125 78 88 127 123 90 50 22 80 79 106 84 100 53 70 20 77 82 109 57 19 6 10 52 73 49 29 81 134 42
26 23 81 23 42 57 77 50 46 100 92 49 19 73 43 22 52 69 89 1 61 39 76 51 128
13 45 22 102 31 15 47 74 104 16 60 131 118 30 37 126 10 1 115 11 38 27 36 34 128 20 82 105 8 7 51 9 35 29 17 53 12 134 58 95 25 122 4 70 39 46 55
13 45 128 70 95 105 16 134 17 60 64 12 56 35 34 20 29 11 53 25 58 55 27 8 9 38 23 82 15 37 74 39 4 104 10 122 30 126 102 118 7 36 46 1 31 22 115
19 42 42 19 113 89 57 50 77 5 87 28 52 81 3 45 73 110 49 99 59 76 100 26 21 63 116 2 0 24 125 75 112 119 62 44 88 14 69 94 85 121 133 120
19 29 116 49 3 81 63 88 110 50 59 113 5 120 89 106 78 109 45 19 28 87 52 21 73 100 103 99 57 77 125
40 21 20 29 50 82 19 10 57 77 73 52 78 95 34 53 134 70 89 55 49 100 81
40 18 81 5 77 19 28 49 100 57 89 21 73 87 99 50 59 113 52 63
36 17 50 57 89 77 73 21 49 100 52 99 28 81 19 113 59 5 87
36 13 51 89 128 57 39 46 22 44 23 19 52 87 113
14 10 39 128 22 46 106 78 91 23 51 123
14 11 96 114 66 34 67 48 101 54 68 97 95
29 30 51 32 89 59 113 5 41 21 124 86 71 63 22 28 99 77 128 83 111 57 39 50 19 65 73 46 23 72 87 40
29 28 96 15 10 53 48 68 20 114 70 67 29 132 134 102 60 104 66 82 30 54 46 7 86 101 31 126 65 128
12 10 87 77 19 57 73 89 50 76 113 42
12 10 113 50 57 89 19 73 77 42 87 76
32 2 111 24
32 3 132 86 24
30 16 50 73 5 77 28 63 21 99 19 113 57 87 59 116 89 125
30 33 122 21 28 113 27 77 74 131 50 99 116 63 19 87 57 38 115 1 16 17 36 25 5 59 73 12 89 58 118 56 9 88 4
9 16 28 73 100 89 19 57 49 77 87 5 50 79 75 59 113 99
9 17 21 81 49 50 73 77 52 99 89 59 28 100 127 57 5 113 79
2 11 29 10 53 82 52 134 20 55 95 34 70
2 14 83 13 111 32 99 113 71 28 59 5 86 87 21 65
15 135 65 13 116 49 118 46 2 31 51 89 45 125 119 7 134 38 37 80 18 77 79 22 110 63 68 90 1 76 6 93 92 27 41 32 129 15 108 122 23 113 5 62 25 82 34 55 109 69 74 111 42 131 104 130 43 97 81 107 67 91 121 83 57 60 103 132 9 112 54 39 10 12 30 73 105 75 20 33 101 59 133 16 78 26 99 28 66 21 50 19 72 48 56 8 17 88 114 100 128 126 70 29 96 35 14 53 102 3 36 11 52 44 40 94 87 85 120 127 71 58 61 95 115 84 123 124 98 0 64 47 117 4 24 86 106
15 2 43 92
41 13 81 65 117 86 49 32 13 111 71 83 100 24 132
41 21 74 32 12 118 17 38 58 25 131 56 115 27 4 16 122 111 36 86 9 1 65
0 4 109 91 106 123
0 45 5 77 102 10 64 19 35 53 57 87 70 89 30 55 21 28 113 34 63 105 50 85 99 132 95 29 7 20 104 47 42 73 116 126 82 134 59 60 44 31 37 11 76 15 8
3 5 78 95 101 34 54
3 7 19 57 50 77 73 52 89
20 38 53 37 82 104 34 20 1 38 105 126 12 31 54 55 132 134 64 114 95 8 10 102 97 11 98 70 67 47 7 60 29 15 101 27 35 96 30 36
20 10 81 57 77 73 19 89 50 49 100 52
25 2 10 75
25 21 27 38 1 50 89 100 52 59 49 81 73 19 99 21 63 87 77 28 57 5 113
42 6 95 78 34 54 101 51
42 12 79 52 77 100 89 19 73 81 49 39 57 50
7 4 127 79 26 75
7 31 73 59 6 80 50 5 57 42 21 87 99 76 120 19 89 130 90 106 77 113 63 109 28 123 78 88 91 84 103 125 129
6 6 106 109 34 79 95 51
6 10 52 19 50 57 89 81 77 49 73 100
45 15 17 46 4 23 118 22 128 25 12 16 39 9 74 51 58
45 3 120 125 88
22 27 35 8 7 34 37 95 60 53 98 132 64 10 134 104 97 20 70 126 11 29 31 15 105 30 47 82 55
22 1 96
17 5 42 76 133 61 62
17 26 118 1 17 4 9 131 16 15 38 39 51 56 128 122 58 71 36 25 115 27 74 23 22 12 31 46
39 3 72 41 51
39 5 39 124 72 40 41
16 2 109 106
16 39 59 37 11 34 53 102 95 15 29 8 104 35 63 5 47 31 10 55 113 60 116 7 28 87 20 64 126 30 89 73 70 134 82 50 21 57 99 105 19
34 10 78 123 84 109 90 106 80 91 130 103
34 5 92 43 106 78 109
31 4 75 85 76 42
31 42 47 55 121 98 28 21 82 59 87 133 99 5 69 102 37 134 10 30 53 62 113 20 132 104 35 2 11 15 60 34 31 7 24 8 105 126 29 94 112 64 95 97
18 13 77 73 5 28 59 99 19 57 113 89 21 50 87
18 13 89 19 113 21 57 87 28 77 50 99 73 59 5
37 2 132 111
37 8 60 30 31 104 126 15 102 132
11 6 39 22 23 46 51 128
11 15 129 80 120 125 130 84 123 6 91 90 109 106 78 88 103
10 14 66 0 24 44 5 32 86 94 85 119 87 111 132 65
10 9 106 120 119 28 44 87 83 78 5
23 2 106 109
23 26 64 55 29 132 53 34 30 15 37 102 104 20 70 7 60 47 11 105 126 10 8 35 82 31 134 95
33 5 40 124 41 72 71
33 11 91 106 109 103 84 90 80 59 78 123 99
44 2 13 86
44 3 32 111 86
8 9 83 86 71 24 65 13 32 111 54
8 4 132 86 111 96
35 4 111 94 65 86
35 4 24 32 86 111
38 2 111 24
38 2 24 32
4 2 125 19
4 2 0 50
24 5 24 132 86 111 13
24 6 32 13 65 132 86 24
1 1 132
1 1 86
21 1 51
21 2 92 43

653
data/kg/UMLS/valid2id.txt Normal file
View File

@ -0,0 +1,653 @@
652
31 89 27
39 125 11
57 59 30
60 63 27
57 115 27
34 77 27
104 89 27
83 52 28
130 109 34
77 73 43
91 87 0
87 118 27
39 90 11
109 113 0
86 24 24
81 87 27
131 20 28
73 89 12
38 134 28
7 81 20
30 126 43
15 104 13
128 114 29
49 99 19
126 64 13
12 16 13
71 31 29
29 20 43
32 24 28
42 76 12
70 20 43
118 58 13
52 50 19
87 21 9
15 20 13
95 28 2
113 25 30
49 88 19
123 44 0
7 98 43
59 28 30
51 103 11
19 21 19
94 52 28
34 49 40
30 15 13
134 52 40
71 132 29
52 42 26
28 4 27
127 52 26
109 126 0
19 89 19
21 113 18
24 92 15
89 118 30
49 21 19
49 52 19
0 93 43
59 122 30
81 87 19
41 91 28
104 57 20
73 57 18
110 52 19
105 57 20
59 9 27
134 49 20
7 100 20
11 64 13
86 31 29
111 28 28
76 118 17
104 35 13
19 113 27
77 19 30
73 63 19
127 89 5
100 27 28
8 57 20
37 8 13
50 19 30
73 50 27
53 73 40
47 50 27
16 125 45
10 107 43
106 59 0
102 107 43
73 131 30
133 71 17
77 63 27
97 107 43
57 4 30
55 81 40
94 19 28
28 118 30
116 5 27
134 37 43
30 105 13
99 19 19
57 12 30
109 50 16
115 56 43
42 5 31
4 107 43
112 0 43
55 59 27
15 47 43
128 43 15
75 105 31
124 109 28
7 126 43
78 19 27
116 5 19
37 81 20
69 52 26
121 113 19
99 110 19
8 77 27
37 73 27
59 122 27
57 5 5
86 134 29
35 77 20
75 113 7
8 77 20
57 5 19
99 134 29
89 5 19
113 12 27
35 116 27
89 73 26
113 57 27
28 63 27
50 99 5
11 100 20
75 126 31
18 107 43
94 73 28
134 28 40
123 113 27
109 73 0
15 77 20
49 4 27
106 73 27
10 77 40
27 43 15
53 99 40
57 50 40
5 28 27
78 103 43
50 88 19
78 43 34
104 113 27
54 100 20
87 38 27
89 29 29
67 57 20
47 10 13
28 36 30
21 12 30
116 100 19
70 100 40
71 111 41
19 45 19
19 118 27
39 80 11
76 87 19
20 73 27
13 50 28
70 21 27
101 77 20
123 34 0
54 49 42
56 18 43
59 36 30
21 5 19
34 19 3
101 89 20
31 113 27
77 21 30
64 89 27
31 134 13
131 27 13
126 37 13
50 42 26
100 56 41
71 50 28
111 36 28
15 73 27
99 82 29
109 81 26
34 73 20
49 21 27
51 23 43
79 49 26
29 100 20
99 28 30
70 21 40
42 59 31
13 89 28
52 45 19
47 116 27
28 89 27
113 88 27
63 1 30
106 35 23
50 21 27
1 53 28
26 103 7
28 115 27
89 63 30
113 5 30
5 52 19
57 77 18
19 89 12
39 101 29
34 64 13
19 57 5
28 87 30
76 28 5
115 43 15
40 43 15
45 87 19
64 87 27
75 87 5
100 87 27
6 52 26
75 29 31
100 25 41
57 113 5
109 47 23
19 63 19
82 32 2
77 59 5
128 48 29
113 25 27
101 89 42
45 113 19
13 1 41
59 17 27
78 50 3
60 98 43
109 21 16
16 56 13
131 18 43
71 107 43
42 12 17
106 105 23
34 116 27
71 70 29
57 116 27
57 103 19
106 53 0
27 122 13
21 76 27
82 53 13
40 109 33
32 5 28
15 96 22
3 116 19
123 92 15
37 49 20
17 9 43
63 12 27
57 56 27
70 116 27
34 19 6
49 21 5
95 64 43
128 88 45
87 118 30
51 130 11
50 108 43
57 19 30
49 19 28
108 43 15
89 51 36
35 50 27
89 63 43
103 92 34
105 50 27
131 36 13
39 92 15
72 80 33
123 59 0
49 74 41
53 113 27
31 52 20
77 5 27
76 50 19
73 27 27
40 103 28
55 13 2
118 88 45
63 100 19
73 113 27
106 15 0
59 21 9
46 101 14
23 130 11
109 73 26
57 100 9
109 35 0
81 73 19
94 28 28
123 7 0
12 57 20
109 82 23
19 63 27
73 99 27
86 92 15
63 131 27
81 17 27
94 89 28
101 73 42
76 28 19
71 1 28
71 86 41
86 82 29
75 57 25
89 52 40
20 50 20
78 43 15
85 94 31
51 107 43
71 5 27
104 19 27
10 87 40
71 17 41
75 59 5
89 46 36
78 89 42
22 23 43
94 86 28
85 112 31
109 129 43
106 30 16
71 92 15
5 17 30
69 93 43
134 89 27
20 64 43
29 13 2
1 70 28
51 48 14
50 78 19
35 57 20
79 63 7
21 74 30
68 43 15
87 20 29
75 64 31
10 111 2
103 43 15
102 34 13
57 106 19
89 87 19
65 5 28
30 92 15
65 50 28
60 49 20
50 113 19
81 77 19
28 21 43
49 28 5
75 19 26
113 82 29
58 120 45
6 57 26
96 52 20
123 73 26
77 4 30
111 12 41
54 79 42
134 19 27
9 18 43
50 106 19
54 107 43
78 96 14
29 77 27
106 134 23
74 125 45
89 21 30
109 77 6
78 113 40
7 11 13
21 131 27
43 93 43
109 102 23
104 53 13
128 91 11
105 29 13
55 65 2
100 21 19
30 134 13
81 27 41
96 81 20
24 43 15
78 113 27
103 52 26
59 5 18
41 123 33
28 59 30
57 50 27
106 77 27
106 92 15
90 43 34
75 28 5
51 48 29
75 95 31
95 50 27
53 28 27
134 81 20
111 70 29
82 63 27
83 19 28
53 21 27
123 76 0
127 5 5
89 21 5
103 89 27
34 10 13
19 132 29
106 8 0
64 116 27
123 8 0
111 119 10
19 27 27
64 81 20
87 113 19
77 128 36
73 74 27
59 45 43
109 70 23
90 73 26
113 49 19
86 30 29
71 65 41
89 118 27
10 49 20
34 49 42
104 60 43
134 73 20
34 100 42
49 131 41
89 113 30
51 125 45
65 63 28
55 37 43
28 59 19
105 96 22
49 74 27
23 68 14
126 104 13
53 20 43
20 59 27
73 89 18
109 20 16
28 82 29
20 13 2
63 53 29
115 82 28
50 53 29
5 113 36
31 59 27
49 38 41
101 50 42
57 50 30
69 77 26
30 7 13
28 116 43
19 88 19
89 39 36
52 51 36
55 100 40
12 73 20
49 51 36
60 89 27
42 76 26
60 113 27
12 17 13
71 9 41
5 58 30
132 119 10
111 134 29
102 11 13
81 58 41
116 59 27
98 77 20
13 32 24
52 45 43
106 81 6
24 52 28
28 50 19
134 99 40
50 110 19
103 77 27
40 106 33
103 113 27
23 114 29
65 100 28
9 118 43
91 8 0
40 68 29
133 0 43
99 21 9
89 99 5
63 58 30
125 88 27
73 52 9
12 50 20
16 122 13
114 19 20
85 43 15
40 78 28
54 19 3
83 12 41
58 107 43
111 53 29
59 58 27
109 8 23
3 45 43
50 9 30
40 123 33
50 77 18
50 74 27
109 55 16
81 43 15
82 113 27
109 95 23
94 99 28
19 52 19
109 57 16
100 118 27
8 10 13
87 116 43
68 66 43
116 81 19
37 57 27
133 113 19
42 17 17
58 125 45
116 19 27
5 57 30
20 113 40
109 8 16
8 64 13
57 77 26
26 0 43
79 50 7
134 53 13
32 73 28
106 29 16
49 115 41
30 55 13
106 60 16
36 12 13
75 21 31
49 113 27
19 17 27
133 107 43
113 63 19
126 63 27
7 82 13
73 49 19
123 47 0
78 89 26
21 113 19
42 3 19
109 34 0
32 12 41
70 77 40
42 59 5
87 49 19
51 128 13
116 57 27
124 123 33
13 27 41
83 29 29
126 35 13
116 3 19
57 73 27
83 43 15
110 50 19
50 21 5
111 113 28
53 52 20
79 19 6
34 113 2
113 87 18
47 77 27
70 59 2
95 52 20
51 90 11
84 129 43
100 19 28
57 73 9
37 89 20
63 4 30
82 89 40
13 38 28
100 89 19
5 29 29
91 50 0
19 87 30
127 19 5
73 58 30
5 4 30
35 21 27
41 91 33
55 5 2
113 12 30
86 50 28
34 95 43
78 89 3
7 19 27
95 19 3
120 113 19
88 69 26
86 111 41
59 38 27
22 90 11
20 87 2
49 81 43
59 115 27
100 3 19
100 110 19
57 89 30
14 107 43
2 93 43
89 77 30
8 81 20
55 100 20
34 32 2
19 115 27
127 50 5
105 116 27
74 122 13
24 113 28
98 57 20
63 99 27
35 52 20
123 95 0
52 110 19
124 92 15
5 113 30
123 89 26
4 43 15
59 19 27
104 73 27