Compare commits
592
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e79e8ed16 | ||
|
|
2ca33edaa4 | ||
|
|
96d63b95a2 | ||
|
|
40f44932b6 | ||
|
|
9c1ae2737e | ||
|
|
4c8255e600 | ||
|
|
99dbd3ba47 | ||
|
|
4701f1ee87 | ||
|
|
6a929588c6 | ||
|
|
da63bff8d3 | ||
|
|
f790b2cb3e | ||
|
|
eb61f1a8b0 | ||
|
|
04c4f033f7 | ||
|
|
27433efe72 | ||
|
|
05eb4c49f7 | ||
|
|
ab87b87072 | ||
|
|
2878667727 | ||
|
|
68f1cae4d9 | ||
|
|
bd4305e0eb | ||
|
|
46bf66c910 | ||
|
|
1bfa0f113d | ||
|
|
1482e3fdc5 | ||
|
|
3f4b032e34 | ||
|
|
56ada07d97 | ||
|
|
2f509fbbfe | ||
|
|
2c03f53604 | ||
|
|
6609b64076 | ||
|
|
a5ae3a4605 | ||
|
|
a1889f13f6 | ||
|
|
0854c16a0b | ||
|
|
50ff313a57 | ||
|
|
84073854bf | ||
|
|
9440605a6f | ||
|
|
24b7364894 | ||
|
|
767f532e6f | ||
|
|
a21d5eaea4 | ||
|
|
d8de0c2156 | ||
|
|
ba1c53b642 | ||
|
|
ef00947786 | ||
|
|
9a4a4de379 | ||
|
|
04e3f97b8b | ||
|
|
2bf8e03117 | ||
|
|
ad1e789e8e | ||
|
|
32d1e27fc5 | ||
|
|
1219970ba8 | ||
|
|
5c50c29760 | ||
|
|
5343c3204d | ||
|
|
613640a730 | ||
|
|
3147de9fcb | ||
|
|
7d3792c7b4 | ||
|
|
eb5d6830a5 | ||
|
|
7da36d8777 | ||
|
|
21482f3c6f | ||
|
|
b772b100d5 | ||
|
|
bbce780609 | ||
|
|
d719a34ab0 | ||
|
|
57d0daa21b | ||
|
|
1ca3db5c78 | ||
|
|
c85d3fa03f | ||
|
|
ffc02a4e59 | ||
|
|
6c20dc2b58 | ||
|
|
24cc476dbe | ||
|
|
b2f55bd05a | ||
|
|
e153e2d74a | ||
|
|
171b296c2a | ||
|
|
435c4ae3db | ||
|
|
ac6b5aa72b | ||
|
|
e8be0ae8aa | ||
|
|
17e0909d69 | ||
|
|
3aa4c478f6 | ||
|
|
9ef9e334fd | ||
|
|
e7269c6bd2 | ||
|
|
5aff658c16 | ||
|
|
a40aca3dbe | ||
|
|
95662119b1 | ||
|
|
5b59aca4e6 | ||
|
|
83c809983c | ||
|
|
f5cd79a718 | ||
|
|
81b7e04b66 | ||
|
|
25cf39ff69 | ||
|
|
9a6bae2df4 | ||
|
|
6eb159cc03 | ||
|
|
6b7a036128 | ||
|
|
da70af9163 | ||
|
|
09e5af0016 | ||
|
|
203d9cb6d4 | ||
|
|
dde38bb680 | ||
|
|
e7b6255e54 | ||
|
|
0f9991b618 | ||
|
|
ac97c9f496 | ||
|
|
8261de4a02 | ||
|
|
f69b3cf871 | ||
|
|
6e7a8237ef | ||
|
|
c8e5a65f5d | ||
|
|
a6c4668d13 | ||
|
|
4338b1cc0e | ||
|
|
d5164f9863 | ||
|
|
86fc87f507 | ||
|
|
156e31643c | ||
|
|
dbe8f2449a | ||
|
|
9c593a0d09 | ||
|
|
a21030309e | ||
|
|
a8db8194cf | ||
|
|
ce218cbfa1 | ||
|
|
ae80f0f812 | ||
|
|
df5f131320 | ||
|
|
2f22240d94 | ||
|
|
77095c8549 | ||
|
|
c733442300 | ||
|
|
fed1e56c81 | ||
|
|
e0d1f0df5c | ||
|
|
27301bf6a5 | ||
|
|
bbd4ff8685 | ||
|
|
dbc53a9a49 | ||
|
|
0f0f30f08c | ||
|
|
6c3c43ef4f | ||
|
|
a5f6ccc75b | ||
|
|
cfa2c768eb | ||
|
|
54e0701698 | ||
|
|
4a61c00642 | ||
|
|
49c45cb924 | ||
|
|
ad14f60a2c | ||
|
|
2bcd1d4586 | ||
|
|
5d2d694a20 | ||
|
|
dc31b21dac | ||
|
|
d28a662da3 | ||
|
|
8a418a99b4 | ||
|
|
17100024e5 | ||
|
|
9b95728c7b | ||
|
|
4937889968 | ||
|
|
36773c4ae2 | ||
|
|
353d938d3e | ||
|
|
f02e510847 | ||
|
|
6e0acb9cde | ||
|
|
a0fdc8799b | ||
|
|
f4656fcf39 | ||
|
|
d73ee592ea | ||
|
|
c6e1051059 | ||
|
|
014364ec03 | ||
|
|
024724b51d | ||
|
|
7798cdaea5 | ||
|
|
a1b9f5a084 | ||
|
|
6f79733b3e | ||
|
|
9cb01cab45 | ||
|
|
fc30865f34 | ||
|
|
b2a8af532d | ||
|
|
bee9b6e8fd | ||
|
|
8d7323a387 | ||
|
|
6a6ec8662c | ||
|
|
c70e6bf489 | ||
|
|
82fa2e816b | ||
|
|
fbcee778d2 | ||
|
|
1758227f1e | ||
|
|
cbd2e902a7 | ||
|
|
2cb6d1f660 | ||
|
|
ae2230ff0e | ||
|
|
12914208cd | ||
|
|
abb11077de | ||
|
|
ef1a5ad7a1 | ||
|
|
ed919832d8 | ||
|
|
ef2ea46882 | ||
|
|
da9516331e | ||
|
|
bd581e6004 | ||
|
|
e37f636236 | ||
|
|
0ec47e42e4 | ||
|
|
1369a2bf29 | ||
|
|
e0704bc8a5 | ||
|
|
d8041751c5 | ||
|
|
87b283ccfb | ||
|
|
16d44a0b88 | ||
|
|
07f8e8bcca | ||
|
|
cbfa60ae46 | ||
|
|
89ce894066 | ||
|
|
66487c20e7 | ||
|
|
08bc87e764 | ||
|
|
22afd0fbb5 | ||
|
|
5633b412d4 | ||
|
|
bd030ccb9f | ||
|
|
41037efd6f | ||
|
|
81c4094708 | ||
|
|
6382987990 | ||
|
|
3276bf46a7 | ||
|
|
da1a5b732d | ||
|
|
5702223716 | ||
|
|
21da33be11 | ||
|
|
545f38bc3d | ||
|
|
92e421a61c | ||
|
|
15f55af4c4 | ||
|
|
8b150a81a0 | ||
|
|
91efbdffeb | ||
|
|
c8fa70e7f0 | ||
|
|
934c49bf49 | ||
|
|
70d6b3d698 | ||
|
|
e6e9628837 | ||
|
|
0dd2a5743d | ||
|
|
f8678af87e | ||
|
|
5e7f968808 | ||
|
|
e1b3318e68 | ||
|
|
4d8a7405ca | ||
|
|
f1a6c32e0c | ||
|
|
cf5a3e7d3d | ||
|
|
89f45082fb | ||
|
|
0ad6ac70ff | ||
|
|
e8e0decc6c | ||
|
|
57aaf77162 | ||
|
|
a3eebedb02 | ||
|
|
f8e5cd90a5 | ||
|
|
07ce24143b | ||
|
|
3d092b02f3 | ||
|
|
bf5e065520 | ||
|
|
08178e74d2 | ||
|
|
c66fcff906 | ||
|
|
b0dd0e509d | ||
|
|
719da6e921 | ||
|
|
e4b3d0a9a9 | ||
|
|
c0e231a32b | ||
|
|
af9f9a25da | ||
|
|
0a465bc7e1 | ||
|
|
aec735e09e | ||
|
|
9ce6d5f26e | ||
|
|
f4b4fb0562 | ||
|
|
aa22fad67d | ||
|
|
548bb4ce70 | ||
|
|
b6871b3618 | ||
|
|
fe5e816551 | ||
|
|
20d2a281b1 | ||
|
|
e2ae0c660a | ||
|
|
9e8ae16597 | ||
|
|
e5284a79c9 | ||
|
|
79dad5dfb0 | ||
|
|
a511c16fb1 | ||
|
|
98a1214a4d | ||
|
|
be459c45cf | ||
|
|
328ef2938c | ||
|
|
21f3f49078 | ||
|
|
882ad3b8cf | ||
|
|
d8b7d8bc2e | ||
|
|
c1692535a5 | ||
|
|
af0e326747 | ||
|
|
6cdaa9738a | ||
|
|
1e5d0c4517 | ||
|
|
127f5ca287 | ||
|
|
f51b775fd9 | ||
|
|
0015b92591 | ||
|
|
37e1f1811f | ||
|
|
deb6448739 | ||
|
|
bfb3224684 | ||
|
|
aed1f33935 | ||
|
|
33192efa33 | ||
|
|
d48435b948 | ||
|
|
daa4f79ea0 | ||
|
|
c70a566514 | ||
|
|
b99d3a7ff1 | ||
|
|
30cbb080b0 | ||
|
|
d8eec59d5d | ||
|
|
be89e2986b | ||
|
|
916af84651 | ||
|
|
567b5ecd4f | ||
|
|
b21d8d3e88 | ||
|
|
4e5ab529de | ||
|
|
3b1ffda3b2 | ||
|
|
cdf58044a8 | ||
|
|
727c3fde67 | ||
|
|
de880fb9f0 | ||
|
|
e9fdf7d538 | ||
|
|
57f221868d | ||
|
|
ae7d1a54cb | ||
|
|
71b075b365 | ||
|
|
c054cf99fe | ||
|
|
98a742f024 | ||
|
|
fb40bc548e | ||
|
|
d06c1954a5 | ||
|
|
545d487fea | ||
|
|
62f0812aae | ||
|
|
e0dda3ea0c | ||
|
|
7628f219e2 | ||
|
|
1d7a54c866 | ||
|
|
6c55493acb | ||
|
|
42bcac251b | ||
|
|
bb791138cd | ||
|
|
1fc509ea13 | ||
|
|
90a1b930a3 | ||
|
|
9011d58355 | ||
|
|
f2c0f203f6 | ||
|
|
3f5746dd7d | ||
|
|
adce95ead4 | ||
|
|
84d7ca0122 | ||
|
|
053af573fc | ||
|
|
06f34bec45 | ||
|
|
c1641fdb38 | ||
|
|
9115af350e | ||
|
|
77cf3612d9 | ||
|
|
07c7343f94 | ||
|
|
530f751f02 | ||
|
|
9a005cabe9 | ||
|
|
f7eb502d9d | ||
|
|
a407cfb514 | ||
|
|
ff43d07b6d | ||
|
|
340b5f22b7 | ||
|
|
b4a90131bb | ||
|
|
90149ddb4e | ||
|
|
1f09f0cf68 | ||
|
|
8035e7aecb | ||
|
|
cea32deba2 | ||
|
|
b02358e3a0 | ||
|
|
79320f27c9 | ||
|
|
52ca2f7339 | ||
|
|
78e54248e3 | ||
|
|
fc82604947 | ||
|
|
40bb0feaf8 | ||
|
|
0afb6a9481 | ||
|
|
57f72a473f | ||
|
|
876fbb9980 | ||
|
|
bee09f7c29 | ||
|
|
c31aef4131 | ||
|
|
53a36e7974 | ||
|
|
60e74c4916 | ||
|
|
1d24f912ae | ||
|
|
f9591c512c | ||
|
|
f74396e97b | ||
|
|
1127eeebb8 | ||
|
|
e9590e8b04 | ||
|
|
fd0bc89771 | ||
|
|
32a38b46fe | ||
|
|
e5f9d8cfdf | ||
|
|
0b6a74a8e3 | ||
|
|
da59e8137f | ||
|
|
ecd6b30626 | ||
|
|
31da701fe7 | ||
|
|
9d875b3935 | ||
|
|
8cab4ffb42 | ||
|
|
61aeb5bf86 | ||
|
|
0821008d6e | ||
|
|
a4a24b77b9 | ||
|
|
897edab3cf | ||
|
|
a25d70466f | ||
|
|
4270dafd6a | ||
|
|
fc3baef406 | ||
|
|
be20407238 | ||
|
|
26c4dc8fe7 | ||
|
|
4dd124d003 | ||
|
|
ee40f1386a | ||
|
|
4f116d3ca2 | ||
|
|
9ef1ce7ce1 | ||
|
|
641f40ff45 | ||
|
|
6f0d17a991 | ||
|
|
2d1155d46b | ||
|
|
a1cf6e06af | ||
|
|
2e4a861e9c | ||
|
|
70e4ad71a6 | ||
|
|
dc27b49f63 | ||
|
|
b8707c7619 | ||
|
|
b251abb79f | ||
|
|
14be6c1a6c | ||
|
|
7addfe2a71 | ||
|
|
2474700473 | ||
|
|
0150f81a24 | ||
|
|
8a801d0bb5 | ||
|
|
496d2c88f0 | ||
|
|
9d8b287c13 | ||
|
|
94e0cad2d0 | ||
|
|
8be123bf3a | ||
|
|
570da1b47c | ||
|
|
02dd286d55 | ||
|
|
58199760de | ||
|
|
17b59213d3 | ||
|
|
06e2785914 | ||
|
|
0aea390e5e | ||
|
|
c33a900c66 | ||
|
|
f36e9a7d54 | ||
|
|
7259e3a0c0 | ||
|
|
b0581ad452 | ||
|
|
813953f1f5 | ||
|
|
288b21d407 | ||
|
|
01453f73dc | ||
|
|
410f1ade01 | ||
|
|
621a9dd2a1 | ||
|
|
18b9b8bf67 | ||
|
|
3f1ea0a418 | ||
|
|
211f7b82dc | ||
|
|
6675976feb | ||
|
|
034d3ee453 | ||
|
|
faa866f4e1 | ||
|
|
9c3e36930c | ||
|
|
d4daecd921 | ||
|
|
9f10e9e7af | ||
|
|
fa9def349c | ||
|
|
4073214131 | ||
|
|
03fac2a656 | ||
|
|
a204584ddd | ||
|
|
25de01c7be | ||
|
|
176235689f | ||
|
|
f27ee8b295 | ||
|
|
32616fe6aa | ||
|
|
9a5cb9e9b0 | ||
|
|
d11869c70b | ||
|
|
abb8c9dbb5 | ||
|
|
b8442213f8 | ||
|
|
0d19abb293 | ||
|
|
6ea3e79087 | ||
|
|
ba72b146a2 | ||
|
|
0f360c86b2 | ||
|
|
ecf7a6f905 | ||
|
|
345dffaa9b | ||
|
|
7b912196e9 | ||
|
|
6e4742206f | ||
|
|
a28ecc9d02 | ||
|
|
53397f844e | ||
|
|
818398ccda | ||
|
|
a6c7068ca6 | ||
|
|
4785bb4d40 | ||
|
|
1a9f9496fd | ||
|
|
78f35daa58 | ||
|
|
b2e70c2bb3 | ||
|
|
3d8ceeb5b6 | ||
|
|
0b8540d70b | ||
|
|
e9ccfe6796 | ||
|
|
e20f2732b3 | ||
|
|
4da4ea1bff | ||
|
|
93ba39f9b0 | ||
|
|
0642a3704d | ||
|
|
57e1bafa8b | ||
|
|
3d5eb524aa | ||
|
|
c15afed0aa | ||
|
|
b133ce80c9 | ||
|
|
ae8332dc3d | ||
|
|
026a35dd90 | ||
|
|
5fdc1cdce3 | ||
|
|
02bb8b8fb8 | ||
|
|
27f289f4a0 | ||
|
|
6af1747477 | ||
|
|
401b82c226 | ||
|
|
9d128e18b6 | ||
|
|
a6a78bb556 | ||
|
|
bc59c3f563 | ||
|
|
8b7ac08192 | ||
|
|
4fe78c2b88 | ||
|
|
2e8dd00aa6 | ||
|
|
127eed5c49 | ||
|
|
7a84fc2b12 | ||
|
|
96e0925054 | ||
|
|
730ee7f89a | ||
|
|
e62d1ca458 | ||
|
|
6bca5643ee | ||
|
|
db20b23ff3 | ||
|
|
66f34668a9 | ||
|
|
ceadc26741 | ||
|
|
3a74dc9b7b | ||
|
|
4a47d752cb | ||
|
|
1bca6648bd | ||
|
|
af00bc4635 | ||
|
|
def210b4b9 | ||
|
|
89bdab0a26 | ||
|
|
448922d907 | ||
|
|
3ef8c28191 | ||
|
|
46aee46ea3 | ||
|
|
e57875d2a5 | ||
|
|
28726cf4c7 | ||
|
|
b0e4ad639e | ||
|
|
1810918e43 | ||
|
|
a736539851 | ||
|
|
591233e255 | ||
|
|
c2a2a31fb9 | ||
|
|
d4a4bfa2c7 | ||
|
|
3a127450e3 | ||
|
|
c2f9a6381a | ||
|
|
7adf12912f | ||
|
|
0b2b05ae85 | ||
|
|
127c32dce7 | ||
|
|
652ff8db15 | ||
|
|
79c1076272 | ||
|
|
d29028a5bd | ||
|
|
8cba5387c7 | ||
|
|
bdb546db12 | ||
|
|
59ed0ad1a4 | ||
|
|
3d57dda846 | ||
|
|
6cdf5f4704 | ||
|
|
9f4bb77208 | ||
|
|
aa05beb594 | ||
|
|
6c2e3fab04 | ||
|
|
be556f09ad | ||
|
|
2fc9722914 | ||
|
|
9e39650899 | ||
|
|
1860e7c371 | ||
|
|
e5283543a1 | ||
|
|
bf5d626209 | ||
|
|
424649ecdc | ||
|
|
11ac6525c1 | ||
|
|
8a684c8b57 | ||
|
|
4805fe9c3c | ||
|
|
90ec5c2c8d | ||
|
|
cbbcaa2325 | ||
|
|
e6eabf08c9 | ||
|
|
b616d061bb | ||
|
|
3a78519655 | ||
|
|
c6de85d4a0 | ||
|
|
71fe4a54e7 | ||
|
|
02b498f829 | ||
|
|
18f661e3b4 | ||
|
|
22bfb2feba | ||
|
|
358a47bbf5 | ||
|
|
ceed96102f | ||
|
|
467f40a625 | ||
|
|
e8b5dcfd5b | ||
|
|
f0caacd696 | ||
|
|
e7afd7e68a | ||
|
|
9d24c0a9bb | ||
|
|
f25c5cd222 | ||
|
|
0b5c6bed37 | ||
|
|
2d485263d1 | ||
|
|
103b6180d0 | ||
|
|
6edca93c1c | ||
|
|
a7548d59c0 | ||
|
|
8b1f7d6eb3 | ||
|
|
ff3ac03520 | ||
|
|
e51d3095bc | ||
|
|
d19003d531 | ||
|
|
6d5dd88e50 | ||
|
|
de70973296 | ||
|
|
2a5f104739 | ||
|
|
71bd10b303 | ||
|
|
82d2c508b8 | ||
|
|
97b7fe6a6f | ||
|
|
ddbf000213 | ||
|
|
eb84d3014f | ||
|
|
2bdee21169 | ||
|
|
ee98b589c9 | ||
|
|
4e0afc12ed | ||
|
|
fa68c338c2 | ||
|
|
0712d3f3fa | ||
|
|
a278ad300f | ||
|
|
3d78ec900e | ||
|
|
fc134dad8e | ||
|
|
59a1f765d0 | ||
|
|
6cccd6d19f | ||
|
|
16f7e665fe | ||
|
|
e78b406d6d | ||
|
|
292c02cac8 | ||
|
|
ff322fc29b | ||
|
|
1a01ff5198 | ||
|
|
c47d5ee170 | ||
|
|
afaa840d48 | ||
|
|
fb44e9db3c | ||
|
|
762e3f9a15 | ||
|
|
0dd2023224 | ||
|
|
d4880b417b | ||
|
|
a7ced052dd | ||
|
|
0b3be35885 | ||
|
|
5323797c71 | ||
|
|
9ac618ebec | ||
|
|
de6339586f | ||
|
|
97c9e2eec3 | ||
|
|
167913aa85 | ||
|
|
85e79aeb3e | ||
|
|
83ed0bcaee | ||
|
|
807adbd6e4 | ||
|
|
18c9785325 | ||
|
|
8db323d605 | ||
|
|
f4e0888ce2 | ||
|
|
712fcbb749 | ||
|
|
cb5a887d12 | ||
|
|
755f83f65a | ||
|
|
4bd4a015f1 | ||
|
|
d3266ee50e | ||
|
|
55d0b7918f | ||
|
|
b22f16809d | ||
|
|
b9c4067250 | ||
|
|
90860230f4 | ||
|
|
d005162a80 | ||
|
|
0f65a0f589 | ||
|
|
410bcdec4b | ||
|
|
b39daba561 | ||
|
|
53155d4e53 | ||
|
|
8583f6622e | ||
|
|
93481bf9c5 | ||
|
|
a76789f34b | ||
|
|
2566fa9208 | ||
|
|
e92b450e5b | ||
|
|
5d72140758 | ||
|
|
bee19dfa39 | ||
|
|
3b4d0b3339 | ||
|
|
e5f28f2143 | ||
|
|
069566d71d | ||
|
|
07278b3f65 | ||
|
|
3684a5acf5 | ||
|
|
5ce97e6854 | ||
|
|
8bb0cf18ad | ||
|
|
19933d69b6 | ||
|
|
9aeb8171a7 | ||
|
|
f4542d21b8 | ||
|
|
532c94b00b | ||
|
|
5d1d62acb8 |
@@ -0,0 +1,15 @@
|
||||
*
|
||||
!background-jobs
|
||||
!service
|
||||
service/*
|
||||
!service/scripts
|
||||
|
||||
# Data-only folders that do not belong in the job image.
|
||||
service/scripts/multipliers
|
||||
|
||||
**/__pycache__
|
||||
**/*.pyc
|
||||
**/.venv
|
||||
**/.env
|
||||
**/.env.*
|
||||
**/out
|
||||
+3
-1
@@ -19,4 +19,6 @@ angular-app/.angular
|
||||
# Ignore sentence-transformer local model cache
|
||||
service/sentence_transformer/models/
|
||||
|
||||
llm_evaluations/bio_generation/.venv
|
||||
llm_evaluations/bio_generation/.venv
|
||||
|
||||
.devcontainer
|
||||
|
||||
@@ -5,7 +5,6 @@ from typing import Any
|
||||
|
||||
from openalex_client import get_all_author_works
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
INPUT_FILE = BASE_DIR / "career_stage_sample.csv"
|
||||
OUTPUT_FILE = BASE_DIR / "career_stage_results.csv"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
from typing import Callable, Literal
|
||||
from typing import Literal
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
INPUT_FILE = BASE_DIR / "career_stage_results.csv"
|
||||
PLOTS_DIR = BASE_DIR / "plots"
|
||||
|
||||
@@ -4,7 +4,6 @@ from urllib.error import HTTPError, URLError
|
||||
from urllib.parse import urlencode
|
||||
from urllib.request import Request, urlopen
|
||||
|
||||
|
||||
OPENALEX_WORKS_URL = "https://api.openalex.org/works"
|
||||
REQUEST_TIMEOUT_SECONDS = 30
|
||||
PER_PAGE = 200
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
.env
|
||||
.env.*
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.venv/
|
||||
@@ -0,0 +1,7 @@
|
||||
# Copy this file to `.env` and fill in the real values.
|
||||
# `.env` is gitignored and is NOT baked into the image.
|
||||
INSE_ELASTIC_URL=https://inse.nes.uni-due.de/elastic
|
||||
INSE_ELASTIC_API_KEY=your-elastic-api-key-here
|
||||
INSE_LLM_BASE_URL=https://project.nes.uni-due.de/llm2/v1/
|
||||
INSE_LLM_API_KEY=your-llm-api-key-here
|
||||
INSE_LLM_MODEL=gemma4-e4b
|
||||
@@ -0,0 +1,5 @@
|
||||
# Local secrets – never commit
|
||||
.env
|
||||
|
||||
__pycache__/
|
||||
*.pyc
|
||||
@@ -0,0 +1,95 @@
|
||||
# Background Jobs
|
||||
|
||||
Background Jobs sind Docker-Container, die regelmäßig oder manuell Elasticsearch-Daten verarbeiten. Sie werden vom Backend über den Docker-Socket gestartet.
|
||||
|
||||
**Wichtig:** Jobs sind in der **Datenbank**, nicht im Image. Das Image enthält nur die ausführbaren Skripte.
|
||||
|
||||
## Jobs anlegen
|
||||
|
||||
**Frontend** (`/jobs`):
|
||||
|
||||
- "Neuer Job" → Name + Command + optionales Image + Zeitplan
|
||||
|
||||
**API**:
|
||||
|
||||
```bash
|
||||
curl -X POST -H "Authorization: Bearer $TOKEN" \
|
||||
-d '{"name": "Sync", "command": "python sync.py --sync-delta", "schedule": "0 3 * * *"}' \
|
||||
http://localhost:8000/api/background-jobs/tasks
|
||||
```
|
||||
|
||||
Command-Beispiele:
|
||||
|
||||
```
|
||||
python service/scripts/demo/demo.py 20
|
||||
python sync.py --sync-delta
|
||||
python service/scripts/news/ude/run_pipeline.py --skip-upload --max-items 5
|
||||
python -m service.scripts.news.topic_mapper.map_news_topics --output-index docker-job_test --max-docs 50
|
||||
python -m service.scripts.projects.topic_mapper.map_project_topics --dry-run
|
||||
sh -c "cd service/scripts/projects/bund && python gpc.data.py --skip-upload"
|
||||
```
|
||||
|
||||
**Neue Jobs = kein Image-Rebuild.** Die Skripte sind bereits im Image; der Command wird direkt an Docker übergeben.
|
||||
|
||||
## Image & Dockerfile
|
||||
|
||||
Das [Dockerfile](../service/scripts/jobs-image/Dockerfile) kopiert den kompletten `service/scripts/`-Baum (Pfade im Container = Pfade im Repo) plus `background-jobs/app/` (sync.py) und hat keinen ENTRYPOINT. Neue Skripte unter `service/scripts` landen automatisch im nächsten Build — ohne Dockerfile-Änderung. Der Backend startet Container direkt:
|
||||
|
||||
```python
|
||||
docker.run(image="...", command="python sync.py --sync-delta")
|
||||
```
|
||||
|
||||
**Skripte hinzugefügt oder geändert?** → Image neu bauen + pushen:
|
||||
|
||||
```bash
|
||||
docker build -f service/scripts/jobs-image/Dockerfile -t docker.nes.uni-due.de/inse/background-jobs:latest .
|
||||
docker push docker.nes.uni-due.de/inse/background-jobs:latest
|
||||
```
|
||||
|
||||
Lokal testen ohne Pull:
|
||||
|
||||
```bash
|
||||
export BACKGROUND_JOBS_PULL_BEFORE_RUN=false
|
||||
```
|
||||
|
||||
## Scheduling
|
||||
|
||||
Job mit `schedule: "0 3 * * *"` und `enabled: true` läuft automatisch täglich um 3:00 UTC. Manuell starten: "Jetzt ausführen" Button oder API.
|
||||
|
||||
## Logs
|
||||
|
||||
Während Laufzeit: Live vom Container. Nach Beendigung: Letzte 200 Zeilen in der DB. Frontend: "Logs anzeigen" Button.
|
||||
|
||||
## Docker-Socket (Deployment)
|
||||
|
||||
```yaml
|
||||
# docker-compose
|
||||
backend:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
```
|
||||
|
||||
Ohne Socket-Mount funktioniert nichts.
|
||||
|
||||
## Env-Variablen
|
||||
|
||||
Standard-Image erhält automatisch:
|
||||
|
||||
- `INSE_ELASTIC_URL`, `INSE_ELASTIC_API_KEY`
|
||||
- `INSE_LLM_*`, `ELASTICSEARCH_INSE_*`, `SENTENCE_TRANSFORMERS_MODEL_NAME`
|
||||
|
||||
Plus `env` aus der Job-Definition.
|
||||
|
||||
**Eigene Images** bekommen nur die `env`-Variablen (Sicherheit).
|
||||
|
||||
## API
|
||||
|
||||
- `GET /api/background-jobs/tasks` — Jobs auflisten
|
||||
- `POST /api/background-jobs/tasks` — Job anlegen
|
||||
- `DELETE /api/background-jobs/tasks/{id}` — Job löschen
|
||||
- `POST /api/background-jobs/tasks/{id}/run` — Run starten
|
||||
- `PATCH /api/background-jobs/tasks/{id}` — Schedule ändern
|
||||
- `GET /api/background-jobs/runs/{id}/logs` — Logs abrufen
|
||||
- `POST /api/background-jobs/runs/{id}/stop` — Run stoppen
|
||||
|
||||
Alle Endpoints erfordern Superadmin-Auth.
|
||||
@@ -0,0 +1,152 @@
|
||||
import os
|
||||
from urllib.parse import quote
|
||||
|
||||
import requests
|
||||
from dotenv import load_dotenv
|
||||
from requests.adapters import HTTPAdapter
|
||||
|
||||
load_dotenv()
|
||||
|
||||
INSE_URL = os.getenv("INSE_ELASTIC_URL", "https://inse.nes.uni-due.de/elastic")
|
||||
INSE_API_KEY = os.getenv("INSE_ELASTIC_API_KEY")
|
||||
if not INSE_API_KEY:
|
||||
raise RuntimeError(
|
||||
"INSE_ELASTIC_API_KEY is not set. Copy .env.example to .env and fill it in, "
|
||||
"or pass it as an environment variable."
|
||||
)
|
||||
|
||||
ES_HEADERS = {
|
||||
"Authorization": f"ApiKey {INSE_API_KEY}",
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
_session = requests.Session()
|
||||
_session.headers.update(ES_HEADERS)
|
||||
_adapter = HTTPAdapter(pool_connections=32, pool_maxsize=32)
|
||||
_session.mount("https://", _adapter)
|
||||
_session.mount("http://", _adapter)
|
||||
|
||||
def _send_es_request(method: str, url: str, payload: dict = None) -> dict:
|
||||
|
||||
try:
|
||||
response = _session.request(
|
||||
method=method,
|
||||
url=url,
|
||||
json=payload,
|
||||
)
|
||||
response.raise_for_status()
|
||||
return response.json()
|
||||
except requests.RequestException as error:
|
||||
print(f"Send Request failed: ({method} {url}): {error}")
|
||||
raise
|
||||
|
||||
def add_entry(index: str, entry: dict):
|
||||
|
||||
endpoint = f"{INSE_URL}/{index}/_doc"
|
||||
|
||||
document_body = {
|
||||
"news_id": entry["news_id"],
|
||||
"relevant": int(entry["relevant"]),
|
||||
"authors": entry["authors"],
|
||||
"keywords": entry.get("keywords", []),
|
||||
}
|
||||
|
||||
response_data = _send_es_request("POST", endpoint, payload=document_body)
|
||||
|
||||
created_id = response_data["_id"]
|
||||
entry["_id"] = created_id
|
||||
|
||||
return created_id
|
||||
|
||||
def index_entry(index: str, document_id: str, entry: dict):
|
||||
|
||||
encoded_document_id = quote(document_id, safe="")
|
||||
endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
|
||||
|
||||
document_body = {
|
||||
"news_id": entry["news_id"],
|
||||
"relevant": int(entry["relevant"]),
|
||||
"authors": entry["authors"],
|
||||
"keywords": entry.get("keywords", []),
|
||||
}
|
||||
|
||||
return _send_es_request("PUT", endpoint, payload=document_body)
|
||||
|
||||
def update_entry(index: str, document_id: str, partial_doc: dict):
|
||||
|
||||
encoded_document_id = quote(document_id, safe="")
|
||||
endpoint = f"{INSE_URL}/{index}/_update/{encoded_document_id}"
|
||||
|
||||
return _send_es_request("POST", endpoint, payload={"doc": partial_doc})
|
||||
|
||||
def get_entry(index: str, document_id: str) -> dict:
|
||||
|
||||
encoded_document_id = quote(document_id, safe="")
|
||||
endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
|
||||
|
||||
return _send_es_request("GET", endpoint)
|
||||
|
||||
def delete_entry(index: str, document_id: str):
|
||||
|
||||
encoded_document_id = quote(document_id, safe="")
|
||||
endpoint = f"{INSE_URL}/{index}/_doc/{encoded_document_id}"
|
||||
|
||||
return _send_es_request("DELETE", endpoint)
|
||||
|
||||
def get_all_entries(index: str, fields: list = None) -> list:
|
||||
|
||||
if not fields:
|
||||
source_fields = True
|
||||
else:
|
||||
source_fields = fields
|
||||
|
||||
endpoint = f"{INSE_URL}/{index}/_search"
|
||||
|
||||
page_size = 1000
|
||||
results = []
|
||||
last_sort_value = None
|
||||
|
||||
while True:
|
||||
payload = {
|
||||
"query": {"match_all": {}},
|
||||
"size": page_size,
|
||||
"sort": [{"_doc": "asc"}],
|
||||
"_source": source_fields,
|
||||
}
|
||||
if last_sort_value is not None:
|
||||
payload["search_after"] = last_sort_value
|
||||
|
||||
response_data = _send_es_request("POST", endpoint, payload=payload)
|
||||
results_list = response_data["hits"]["hits"]
|
||||
|
||||
if not results_list:
|
||||
break
|
||||
|
||||
results.extend(results_list)
|
||||
last_sort_value = results_list[-1]["sort"]
|
||||
|
||||
return results
|
||||
|
||||
def delete_all_entries(index: str):
|
||||
|
||||
endpoint = f"{INSE_URL}/{index}/_delete_by_query"
|
||||
|
||||
payload = {
|
||||
"query": {"match_all": {}}
|
||||
}
|
||||
|
||||
return _send_es_request("POST", endpoint, payload=payload)
|
||||
|
||||
def remove_field_all(index: str, field: str):
|
||||
|
||||
endpoint = f"{INSE_URL}/{index}/_update_by_query"
|
||||
|
||||
payload = {
|
||||
"query": {"exists": {"field": field}},
|
||||
"script": {
|
||||
"source": f"ctx._source.remove('{field}')",
|
||||
"lang": "painless",
|
||||
},
|
||||
}
|
||||
|
||||
return _send_es_request("POST", endpoint, payload=payload)
|
||||
@@ -0,0 +1,95 @@
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
load_dotenv()
|
||||
|
||||
LLM_BASE_URL = os.getenv("INSE_LLM_BASE_URL", "https://project.nes.uni-due.de/llm2/v1/")
|
||||
LLM_API_KEY = os.getenv("INSE_LLM_API_KEY")
|
||||
if not LLM_API_KEY:
|
||||
raise RuntimeError(
|
||||
"INSE_LLM_API_KEY is not set. Copy .env.example to .env and fill it in, "
|
||||
"or pass it as an environment variable."
|
||||
)
|
||||
LLM_MODEL = os.getenv("INSE_LLM_MODEL", "gemma4-e4b")
|
||||
|
||||
SYSTEM_PROMPT_RELEVANT = ("""
|
||||
Du bewertest Nachrichtenartikel aus dem Campus-Aktuell-Bereich der Universität Duisburg-Essen.
|
||||
Entscheide, ob der Artikel inhaltlich über eine konkrete Person berichtet, also über deren Werdegang, Forschung, Leistung, Auszeichnung oder Tätigkeit.
|
||||
Falls du dir unsicher bist, ob eine Person im Mittelpunkt steht, dann entscheide dich bitte für die positivere Option (also 1), damit die Namensextraktion auf keinen Fall bei Artikeln mit Personenbezug versäumt wird.
|
||||
Antworte mit 1, wenn eine konkrete Person im Mittelpunkt steht.
|
||||
Antworte mit 0, wenn es sich um allgemeine Mitteilungen handelt, die keine einzelne Person in den Mittelpunkt stellen, zum Beispiel Veranstaltungs- und Terminhinweise, Spendenaufrufe, organisatorische Ankündigungen, allgemeine Universitätsinformationen oder Pressemitteilungen ohne Personenbezug.
|
||||
Die bloße Nennung von Namen (etwa als Autor oder Ansprechpartner) reicht für eine 1 nicht aus; die Person muss inhaltlich Thema des Artikels sein.
|
||||
Antworte ausschließlich mit einer einzigen Ziffer: 0 oder 1.
|
||||
""")
|
||||
|
||||
SYSTEM_PROMPT_NAMES = ("""
|
||||
Aus dem nachfolgenden Campus-Aktuell-Artikel der Universität Duisburg-Essen: Nenne die Namen aller konkreten Personen, um die es im Artikel inhaltlich geht.
|
||||
Es können mehrere Personen sein. Bitte achte darauf dass du nur die Namen der Personen nennst, die tatsächlich im Mittelpunkt des Artikels stehen.
|
||||
Insbesondere am Ende von Artikeln werden oft Personen genannt, die nur als Ansprechpartner oder Organisator und sollen deshalb nicht genannt werden.
|
||||
Antworte ausschließlich mit gültigem JSON in exakt diesem Format: {\"person\": [\"Vorname Nachname\", \"Vorname Nachname\"]}
|
||||
Gib keine Erklärungen und kein Markdown aus, nur das JSON.
|
||||
""")
|
||||
|
||||
SYSTEM_PROMPT_KEYWORDS = ("""
|
||||
Extrahiere aus dem nachfolgenden Campus-Aktuell-Artikel der Universität Duisburg-Essen die wichtigsten Schlagwörter (Keywords).
|
||||
Wähle ausschließlich Begriffe oder Phrasen, die tatsächlich im Text vorkommen. Erfinde keine Begriffe, verallgemeinere nicht und nenne keine Oberbegriffe, die nicht im Text stehen.
|
||||
Übersetze keine Begriffe – verwende ausschließlich Wörter und Phrasen in der Sprache des Artikels.
|
||||
Gib jedes Schlagwort in seiner Grundform an: Bei deutschen Begriffen Substantive im Nominativ Singular; bei englischen Begriffen Substantive im Singular. Verwende den Plural nur, wenn der Begriff üblicherweise im Plural gebraucht wird.
|
||||
Vermeide Redundanz: Wenn zwei mögliche Schlagwörter dieselbe Wortbasis teilen (z.B. „Forschung" und „Forschungsprojekt"), nenne nur den spezifischeren Begriff.
|
||||
Nenne maximal sechs prägnante Begriffe oder kurze Phrasen. Konzentriere dich auf inhaltlich zentrale Begriffe, nicht auf Personennamen oder Datumsangaben.
|
||||
Antworte ausschließlich mit gültigem JSON in exakt diesem Format: {\"keywords\": [\"Schlagwort\", \"Schlagwort\"]}
|
||||
Gib keine Erklärungen und kein Markdown aus, nur das JSON.
|
||||
""")
|
||||
|
||||
_client = OpenAI(
|
||||
base_url=LLM_BASE_URL,
|
||||
api_key=LLM_API_KEY,
|
||||
timeout=30,
|
||||
)
|
||||
|
||||
def call(system_prompt, user_prompt, model=LLM_MODEL, temperature=1.0, top_p=0.95):
|
||||
try:
|
||||
response = _client.chat.completions.create(
|
||||
model=model,
|
||||
messages=[
|
||||
{"role": "system", "content": system_prompt},
|
||||
{"role": "user", "content": user_prompt},
|
||||
],
|
||||
temperature=temperature,
|
||||
top_p=top_p,
|
||||
extra_body={"top_k": 64},
|
||||
)
|
||||
except APIConnectionError:
|
||||
return None
|
||||
|
||||
return response.choices[0].message.content or None
|
||||
|
||||
def is_news_relevant(text: str) -> bool:
|
||||
result = call(SYSTEM_PROMPT_RELEVANT, text)
|
||||
if result is None:
|
||||
return False
|
||||
return result.strip() == "1"
|
||||
|
||||
def extract_names(text: str) -> list[str]:
|
||||
result = call(SYSTEM_PROMPT_NAMES, text)
|
||||
if result is None:
|
||||
return []
|
||||
try:
|
||||
import json
|
||||
data = json.loads(result)
|
||||
return data.get("person", [])
|
||||
except json.JSONDecodeError:
|
||||
return []
|
||||
|
||||
def extract_keywords(text: str) -> list[str]:
|
||||
result = call(SYSTEM_PROMPT_KEYWORDS, text)
|
||||
if result is None:
|
||||
return []
|
||||
try:
|
||||
import json
|
||||
data = json.loads(result)
|
||||
return data.get("keywords", [])
|
||||
except json.JSONDecodeError:
|
||||
return []
|
||||
@@ -0,0 +1,247 @@
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
import threading
|
||||
import time
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
import elastic.client as es_client
|
||||
import llm.client as llm_client
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
POSTPROC_INDEX = "aktuell_postproc"
|
||||
|
||||
def print_pretty_json(data):
|
||||
logger.info(json.dumps(data, indent=2))
|
||||
|
||||
def sync_single_news(news_id, max_retries=3):
|
||||
attempt = 0
|
||||
while attempt < max_retries:
|
||||
try:
|
||||
news_text = es_client.get_entry("aktuell", news_id)["_source"]["full_content"]
|
||||
is_news_relevant = llm_client.is_news_relevant(news_text)
|
||||
authors = llm_client.extract_names(news_text)
|
||||
keywords = llm_client.extract_keywords(news_text)
|
||||
new_entry = {
|
||||
"news_id": news_id,
|
||||
"relevant": is_news_relevant,
|
||||
"authors": authors,
|
||||
"keywords": keywords,
|
||||
}
|
||||
es_client.add_entry("aktuell_postproc", new_entry)
|
||||
return True
|
||||
except Exception as error:
|
||||
attempt += 1
|
||||
logger.warning(f"Warning syncing news_id {news_id} (Attempt {attempt}/{max_retries})")
|
||||
if attempt < max_retries:
|
||||
time.sleep(1)
|
||||
else:
|
||||
logger.error(f"Error: {news_id} - {error}")
|
||||
return False
|
||||
|
||||
def update_keywords_single(postproc_entry, target_index=POSTPROC_INDEX, max_retries=3):
|
||||
doc_id = postproc_entry["_id"]
|
||||
source = postproc_entry["_source"]
|
||||
news_id = source["news_id"]
|
||||
attempt = 0
|
||||
while attempt < max_retries:
|
||||
try:
|
||||
news_text = es_client.get_entry("aktuell", news_id)["_source"]["full_content"]
|
||||
keywords = llm_client.extract_keywords(news_text)
|
||||
if not keywords:
|
||||
# Empty article or unparseable LLM answer: writing an empty list
|
||||
# would look like a success and block a later retry.
|
||||
logger.info(f"Skipped {news_id}: no keywords extracted.")
|
||||
return False
|
||||
if target_index == POSTPROC_INDEX:
|
||||
es_client.update_entry(POSTPROC_INDEX, doc_id, {"keywords": keywords})
|
||||
else:
|
||||
# Key the target doc on news_id so re-runs update it in place
|
||||
# instead of piling up a new document each time.
|
||||
es_client.index_entry(
|
||||
target_index,
|
||||
news_id,
|
||||
{
|
||||
"news_id": news_id,
|
||||
"relevant": source.get("relevant", 0),
|
||||
"authors": source.get("authors", []),
|
||||
"keywords": keywords,
|
||||
},
|
||||
)
|
||||
return True
|
||||
except Exception as error:
|
||||
attempt += 1
|
||||
logger.warning(f"Warning updating keywords for news_id {news_id} (Attempt {attempt}/{max_retries})")
|
||||
if attempt < max_retries:
|
||||
time.sleep(1)
|
||||
else:
|
||||
logger.error(f"Error: {news_id} - {error}")
|
||||
return False
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Synchronize news articles from 'aktuell' index to 'aktuell_postproc' index with relevance and author extraction using LLM.")
|
||||
|
||||
parser.add_argument(
|
||||
"--delete-all",
|
||||
action="store_true",
|
||||
help="Delete all entries from index 'aktuell_postproc'.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--sync-delta",
|
||||
action="store_true",
|
||||
help="Sync only missing entries from 'aktuell' to 'aktuell_postproc'.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--update-keywords",
|
||||
action="store_true",
|
||||
help="Add 'keywords' to existing 'aktuell_postproc' entries that don't have them yet (keeps relevant/authors).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--reset-keywords",
|
||||
action="store_true",
|
||||
help="Remove the 'keywords' field from all 'aktuell_postproc' entries (keeps relevant/authors). Run before re-extracting with a new prompt.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--stats",
|
||||
action="store_true",
|
||||
help="Print statistics about the entries in 'aktuell_postproc' and 'aktuell'.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--threads",
|
||||
type=int,
|
||||
default=4,
|
||||
help="Number of threads for --sync-delta (Default: 4).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--limit",
|
||||
type=int,
|
||||
default=None,
|
||||
help="Process at most this many entries (used by --update-keywords, e.g. for a smoke test).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--target-index",
|
||||
default=POSTPROC_INDEX,
|
||||
help=(
|
||||
f"Index that --update-keywords writes to (default: {POSTPROC_INDEX}). Any other "
|
||||
"index gets new documents instead of in-place updates, and every entry is "
|
||||
"re-extracted rather than only those missing keywords."
|
||||
),
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.delete_all:
|
||||
es_client.delete_all_entries("aktuell_postproc")
|
||||
|
||||
if args.reset_keywords:
|
||||
result = es_client.remove_field_all("aktuell_postproc", "keywords")
|
||||
logger.info(f"Removed 'keywords' from {result.get('updated', 0)} entries.")
|
||||
|
||||
if args.sync_delta:
|
||||
start_time = time.time()
|
||||
aktuell_ids_raw = es_client.get_all_entries("aktuell", fields=["_id"])
|
||||
postproc_ids_raw = es_client.get_all_entries("aktuell_postproc", fields=["news_id"])
|
||||
|
||||
source_ids = set(entry["_id"] for entry in aktuell_ids_raw)
|
||||
target_ids = set(entry["_source"]["news_id"] for entry in postproc_ids_raw)
|
||||
missing_ids = source_ids - target_ids
|
||||
|
||||
logger.info(f"Number of missing IDs: {len(missing_ids)}")
|
||||
|
||||
missing_ids = list(missing_ids)
|
||||
total = len(missing_ids)
|
||||
|
||||
processed = 0
|
||||
succeeded = 0
|
||||
progress_lock = threading.Lock()
|
||||
|
||||
with ThreadPoolExecutor(max_workers=args.threads) as executor:
|
||||
futures = [executor.submit(sync_single_news, news_id) for news_id in missing_ids]
|
||||
for future in as_completed(futures):
|
||||
was_successful = future.result()
|
||||
with progress_lock:
|
||||
processed += 1
|
||||
if was_successful:
|
||||
succeeded += 1
|
||||
logger.info(f"Sync: {processed} / {total}")
|
||||
|
||||
end_time = time.time()
|
||||
logger.info(f"Sync DONE: {succeeded} entries synced.")
|
||||
logger.info(f"Time taken: {end_time - start_time} seconds.")
|
||||
|
||||
if args.update_keywords:
|
||||
start_time = time.time()
|
||||
postproc_entries = es_client.get_all_entries(
|
||||
POSTPROC_INDEX, fields=["news_id", "keywords", "relevant", "authors"]
|
||||
)
|
||||
|
||||
if args.target_index == POSTPROC_INDEX:
|
||||
pending = [entry for entry in postproc_entries if not entry["_source"].get("keywords")]
|
||||
logger.info(f"Number of entries without keywords: {len(pending)}")
|
||||
else:
|
||||
# Writing elsewhere never marks the postproc entries, so the "missing
|
||||
# keywords" filter would select the same entries on every run. Pick
|
||||
# entries that already have keywords instead: those are known to come
|
||||
# from articles with actual content, unlike the empty archive stubs.
|
||||
pending = [entry for entry in postproc_entries if entry["_source"].get("keywords")]
|
||||
logger.info(f"Re-extracting keywords into '{args.target_index}': {len(pending)} candidates.")
|
||||
|
||||
if args.limit is not None:
|
||||
pending = pending[:args.limit]
|
||||
|
||||
total = len(pending)
|
||||
logger.info(f"Processing {total} entries.")
|
||||
|
||||
processed = 0
|
||||
succeeded = 0
|
||||
progress_lock = threading.Lock()
|
||||
|
||||
with ThreadPoolExecutor(max_workers=args.threads) as executor:
|
||||
futures = [
|
||||
executor.submit(update_keywords_single, entry, args.target_index)
|
||||
for entry in pending
|
||||
]
|
||||
for future in as_completed(futures):
|
||||
was_successful = future.result()
|
||||
with progress_lock:
|
||||
processed += 1
|
||||
if was_successful:
|
||||
succeeded += 1
|
||||
logger.info(f"Update keywords: {processed} / {total}")
|
||||
|
||||
end_time = time.time()
|
||||
logger.info(f"Update keywords DONE: {succeeded} entries updated.")
|
||||
logger.info(f"Time taken: {end_time - start_time} seconds.")
|
||||
|
||||
if args.stats:
|
||||
aktuell_entries = es_client.get_all_entries("aktuell", fields=["_id"])
|
||||
logger.info(f"Total entries in 'aktuell': {len(aktuell_entries)}")
|
||||
|
||||
postproc_entries = es_client.get_all_entries("aktuell_postproc", fields=["_id", "news_id", "relevant", "authors", "keywords"])
|
||||
total_entries = len(postproc_entries)
|
||||
relevant_count = sum(1 for entry in postproc_entries if entry["_source"]["relevant"] == 1)
|
||||
irrelevant_count = total_entries - relevant_count
|
||||
news_with_extracted_names = sum(1 for entry in postproc_entries if entry["_source"]["authors"])
|
||||
news_without_extracted_names = total_entries - news_with_extracted_names
|
||||
news_with_keywords = sum(1 for entry in postproc_entries if entry["_source"].get("keywords"))
|
||||
news_without_keywords = total_entries - news_with_keywords
|
||||
|
||||
logger.info(f"Total entries in 'aktuell_postproc': {total_entries}")
|
||||
logger.info(f"Relevant entries: {relevant_count}")
|
||||
logger.info(f"Irrelevant entries: {irrelevant_count}")
|
||||
logger.info(f"Entries with extracted names: {news_with_extracted_names}")
|
||||
logger.info(f"Entries without extracted names: {news_without_extracted_names}")
|
||||
logger.info(f"Entries with keywords: {news_with_keywords}")
|
||||
logger.info(f"Entries without keywords: {news_without_keywords}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -3,7 +3,6 @@ from pathlib import Path
|
||||
|
||||
from llama_parse import LlamaParse
|
||||
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
|
||||
AD_PATH = BASE_DIR / "AD.pdf"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import pymupdf4llm
|
||||
|
||||
AD_PATH = "188274\AD.pdf"
|
||||
CD_PATH = "188274\СD.pdf"
|
||||
AD_PATH = r"188274\AD.pdf"
|
||||
CD_PATH = r"188274\СD.pdf"
|
||||
|
||||
ad_md = pymupdf4llm.to_markdown(AD_PATH)
|
||||
cd_md = pymupdf4llm.to_markdown(CD_PATH)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from pathlib import Path
|
||||
import getpass
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import pymupdf
|
||||
import requests
|
||||
@@ -206,7 +206,7 @@ def make_debug_data(
|
||||
) -> dict:
|
||||
choice = {}
|
||||
|
||||
if "choices" in data and data["choices"]:
|
||||
if data.get("choices"):
|
||||
choice = data["choices"][0]
|
||||
|
||||
message = choice.get("message", {})
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from pathlib import Path
|
||||
import getpass
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import requests
|
||||
|
||||
@@ -181,7 +181,7 @@ def make_debug_data(
|
||||
):
|
||||
choice = {}
|
||||
|
||||
if "choices" in data and data["choices"]:
|
||||
if data.get("choices"):
|
||||
choice = data["choices"][0]
|
||||
|
||||
message = choice.get("message", {})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from pathlib import Path
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
SCRIPT_DIR = Path(__file__).resolve().parent
|
||||
ROOT_DIR = SCRIPT_DIR
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from pathlib import Path
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import pymupdf
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pymupdf # PyMuPDF
|
||||
|
||||
try:
|
||||
@@ -7,7 +8,7 @@ except ImportError:
|
||||
MarkItDown = None
|
||||
|
||||
|
||||
AD_PATH = Path("154115\AD.pdf")
|
||||
AD_PATH = Path(r"154115\AD.pdf")
|
||||
OUT_DIR = Path("ad_extraction_outputs3")
|
||||
OUT_DIR.mkdir(exist_ok=True)
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ from __future__ import annotations
|
||||
import argparse
|
||||
import json
|
||||
from collections import Counter
|
||||
from statistics import mean, median
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from statistics import mean, median
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
@@ -17,7 +17,7 @@ SERVICE_SOURCE_ROOT = ROOT.parents[1] / "service" / "src" / "main"
|
||||
if str(SERVICE_SOURCE_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(SERVICE_SOURCE_ROOT))
|
||||
|
||||
from inse.authors.institution_membership_query import ( # noqa: E402
|
||||
from inse.authors.institution_membership_query import (
|
||||
build_institution_membership_query,
|
||||
current_affiliation_year_cutoff,
|
||||
)
|
||||
@@ -852,9 +852,7 @@ def validate(result: dict[str, Any]) -> list[str]:
|
||||
if score is None:
|
||||
errors.append("basic_research_score_missing")
|
||||
elif score_is_usable:
|
||||
if quadrant == "pure_basic" and not 0 <= score <= 30:
|
||||
errors.append("basic_research_quadrant_score_mismatch")
|
||||
elif quadrant == "use_inspired_basic" and not 25 <= score <= 45:
|
||||
if quadrant == "pure_basic" and not 0 <= score <= 30 or quadrant == "use_inspired_basic" and not 25 <= score <= 45:
|
||||
errors.append("basic_research_quadrant_score_mismatch")
|
||||
if quadrant not in {"pure_basic", "use_inspired_basic"}:
|
||||
errors.append("basic_research_quadrant_mismatch")
|
||||
|
||||
@@ -26,12 +26,12 @@ import json
|
||||
import os
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
from collections.abc import Iterable
|
||||
from pathlib import Path
|
||||
from typing import Any, Iterable
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
DEFAULT_AUTHOR_ID = "A5034365278"
|
||||
DEFAULT_WORK_YEAR_GTE = 1950
|
||||
SOURCE_INDEX = "openalex-works*"
|
||||
|
||||
@@ -373,8 +373,8 @@ def interval_distance(value: float, minimum: float, maximum: float) -> float:
|
||||
|
||||
|
||||
def safe_rate(
|
||||
numerator: int | float,
|
||||
denominator: int | float,
|
||||
numerator: float,
|
||||
denominator: float,
|
||||
) -> float | None:
|
||||
if not denominator:
|
||||
return None
|
||||
|
||||
+1
-2
@@ -13,7 +13,6 @@ from typing import Any
|
||||
|
||||
from openai import OpenAI
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
PROMPT_FILE = ROOT.parent / "prompt_frascati_hard_ranges_v2.txt"
|
||||
CONSENSUS_FILE = ROOT / "consensus_reference.json"
|
||||
@@ -282,7 +281,7 @@ def interval_distance(value: float, minimum: float, maximum: float) -> float:
|
||||
return 0.0
|
||||
|
||||
|
||||
def safe_rate(numerator: int | float, denominator: int | float) -> float | None:
|
||||
def safe_rate(numerator: float, denominator: float) -> float | None:
|
||||
if not denominator:
|
||||
return None
|
||||
return numerator / denominator
|
||||
|
||||
+2
-2
@@ -3,13 +3,13 @@ from __future__ import annotations
|
||||
import argparse
|
||||
import json
|
||||
from collections import Counter
|
||||
from collections.abc import Callable, Iterable
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from typing import Any, Callable, Iterable
|
||||
from typing import Any
|
||||
|
||||
import requests
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
|
||||
ES_BASE_URL = "https://project.nes.uni-due.de/elastic"
|
||||
|
||||
@@ -8,7 +8,6 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
from ollama import Client
|
||||
|
||||
|
||||
ENDPOINT = os.environ.get("OLLAMA_HOST", "https://project.nes.uni-due.de/llm2/")
|
||||
MODEL = os.environ.get("OLLAMA_MODEL", "gemma4:e4b-it-bf16")
|
||||
DATA_FOLDER = "data"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from time import time
|
||||
|
||||
from openai import OpenAI, APIConnectionError
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
DATA_FOLDER = "data2"
|
||||
BATCH_SIZE = 6
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import requests, json
|
||||
import json
|
||||
|
||||
import helpers
|
||||
import requests
|
||||
|
||||
AUTHOR_OPEN_ALEXID = helpers.get_all_author_ids_from_specific_university("University of Duisburg-Essen")
|
||||
#AUTHOR_OPEN_ALEXID = ["A5047117780"]
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import requests, json
|
||||
import json
|
||||
|
||||
import helpers
|
||||
import requests
|
||||
|
||||
AUTHOR_OPEN_ALEXID = helpers.get_all_author_ids_from_specific_university("University of Duisburg-Essen")
|
||||
#AUTHOR_OPEN_ALEXID = ["A5093075883", "A5047117780", "A5007170803"]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
|
||||
import requests
|
||||
|
||||
ELASTICSEARCH_URL = os.environ.get("ELASTICSEARCH_URL", "https://project.nes.uni-due.de/elastic")
|
||||
|
||||
@@ -2,8 +2,8 @@ import os
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from time import time
|
||||
|
||||
from openai import OpenAI, APIConnectionError
|
||||
import helpers
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
DATA_FOLDER = "data2"
|
||||
BATCH_SIZE = 6
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
from typing import Any, Iterator
|
||||
from elasticsearch import Elasticsearch
|
||||
from collections import defaultdict
|
||||
import json
|
||||
from collections import defaultdict
|
||||
from collections.abc import Iterator
|
||||
from pathlib import Path
|
||||
from elasticsearch import NotFoundError
|
||||
from typing import Any
|
||||
|
||||
from elasticsearch import Elasticsearch, NotFoundError
|
||||
|
||||
# elasticseach library required. Here used elasticsearch==8.0.0
|
||||
# estimated execution time: 3-5 Minutes
|
||||
|
||||
|
||||
@@ -15,10 +15,11 @@ The objective is to measure match coverage and determine which ID-matching strat
|
||||
|
||||
Source: `cordis_eu_fp7_project_iprs`
|
||||
Patents tested: 5196(total) - 2270(others) -> 2926 (EP and US patents)
|
||||
| Prefix | Count |
|
||||
|
||||
| Prefix | Count |
|
||||
| --------- | --------: |
|
||||
| EP | 1,952 |
|
||||
| US | 974 |
|
||||
| EP | 1,952 |
|
||||
| US | 974 |
|
||||
| **Total** | **2,926** |
|
||||
|
||||
## Matching Strategies
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
from time import time
|
||||
|
||||
from llm_classify_news import call, parse_label, parse_persons
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Baut aus den JSON-Dateien in data2/ eine eigenstaendige viewer.html.
|
||||
|
||||
@@ -8,8 +7,8 @@ mit Vor/Zurueck durch die News blaettern. Oben stehen _id, llm_label und
|
||||
llm_persons, darunter der full_content als reiner Text (kein Parsing).
|
||||
"""
|
||||
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
|
||||
DATA_FOLDER = "validation_data"
|
||||
OUTPUT_FILE = "viewer.html"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
|
||||
import requests
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
|
||||
import requests
|
||||
from openai import OpenAI, APIConnectionError
|
||||
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
INSE_URL = "https://inse.nes.uni-due.de/elastic"
|
||||
INDEX_URL = f"{INSE_URL}/aktuell"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
import json
|
||||
import os
|
||||
|
||||
DATA_FOLDER = "data2"
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
|
||||
from tabulate import tabulate
|
||||
|
||||
result_files = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from urllib.parse import quote
|
||||
|
||||
import requests
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib.parse import quote
|
||||
|
||||
INSE_URL = "https://inse.nes.uni-due.de/elastic"
|
||||
INSE_API_KEY = "bG1NSWc1NEJPZ3FnTGZCZXRSSEg6VnJXRFd5SnpSTTNWc1VPT01FMEhMZw=="
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import requests
|
||||
from openai import OpenAI, APIConnectionError
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
LLM_BASE_URL = "https://project.nes.uni-due.de/llm2/v1/"
|
||||
LLM_API_KEY = "c2d5e7ccf7a4760dd3d19bed2caed9d85ff7437400e0ea82a6d6f912ebc2f212"
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import argparse
|
||||
import json
|
||||
import threading
|
||||
import time
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
import elastic.client as es_client
|
||||
import llm.client as llm_client
|
||||
import json
|
||||
import argparse
|
||||
import time
|
||||
import threading
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
|
||||
def print_pretty_json(data):
|
||||
print(json.dumps(data, indent=2))
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Perhaps not the final version. I did not find the files inside my local git branch. I most likely did not save them, however i made backups sometimes, so i hope these versions are the final ones.
|
||||
@@ -0,0 +1,429 @@
|
||||
#!/usr/bin/env python3
|
||||
import asyncio
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
import numpy as np
|
||||
|
||||
# Load service environment config
|
||||
current_dir = Path(__file__).parent.resolve()
|
||||
project_root = current_dir.parent.parent.resolve()
|
||||
env_path = project_root / "service" / "src" / "main" / "inse" / ".env"
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv(dotenv_path=env_path)
|
||||
|
||||
sys.path.append(str(project_root / "service" / "src" / "main"))
|
||||
|
||||
from inse.config import settings
|
||||
from inse.util import get_model
|
||||
|
||||
ELASTIC_URL = settings.elasticsearch_url
|
||||
if ELASTIC_URL and not ELASTIC_URL.endswith("/"):
|
||||
ELASTIC_URL += "/"
|
||||
API_KEY = settings.elasticsearch_api_key
|
||||
|
||||
headers = {
|
||||
"Authorization": f"ApiKey {API_KEY}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
FIELDS = [
|
||||
"Social Sciences", "Medicine", "Engineering", "Computer Science",
|
||||
"Arts and Humanities", "Biochemistry, Genetics and Molecular Biology",
|
||||
"Agricultural and Biological Sciences", "Environmental Science",
|
||||
"Business, Management and Accounting", "Psychology", "Materials Science",
|
||||
"Economics, Econometrics and Finance", "Health Professions",
|
||||
"Physics and Astronomy", "Chemistry", "Mathematics", "Neuroscience",
|
||||
"Decision Sciences", "Earth and Planetary Sciences", "Immunology and Microbiology",
|
||||
"Energy", "Pharmacology, Toxicology and Pharmaceutics", "Nursing",
|
||||
"Chemical Engineering", "Dentistry", "Veterinary"
|
||||
]
|
||||
|
||||
QUERIES_FILE = current_dir / "evaluation_queries.json"
|
||||
|
||||
def load_queries():
|
||||
if QUERIES_FILE.exists():
|
||||
print(f"Loading cached queries from {QUERIES_FILE}...")
|
||||
with open(QUERIES_FILE, "r", encoding="utf-8") as f:
|
||||
return json.load(f)
|
||||
else:
|
||||
raise FileNotFoundError(f"Evaluation queries file not found at {QUERIES_FILE}")
|
||||
|
||||
def make_es_payload(query_vector, query_str, config_type, limit=10):
|
||||
if config_type == "display_name":
|
||||
clause = {
|
||||
"knn": {
|
||||
"field": "display_name_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
}
|
||||
query_body = {"query": clause}
|
||||
elif config_type == "description":
|
||||
clause = {
|
||||
"knn": {
|
||||
"field": "description_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
}
|
||||
query_body = {"query": clause}
|
||||
elif config_type == "keywords":
|
||||
clause = {
|
||||
"nested": {
|
||||
"path": "keyword_vectors",
|
||||
"query": {
|
||||
"knn": {
|
||||
"field": "keyword_vectors.vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
"score_mode": "max"
|
||||
}
|
||||
}
|
||||
query_body = {"query": clause}
|
||||
elif config_type == "display_name_and_keywords":
|
||||
query_body = {
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"knn": {
|
||||
"field": "display_name_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"nested": {
|
||||
"path": "keyword_vectors",
|
||||
"query": {
|
||||
"knn": {
|
||||
"field": "keyword_vectors.vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
"score_mode": "max"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
elif config_type == "display_name_and_description":
|
||||
query_body = {
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"knn": {
|
||||
"field": "display_name_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"knn": {
|
||||
"field": "description_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
elif config_type == "combined":
|
||||
query_body = {
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"knn": {
|
||||
"field": "display_name_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"knn": {
|
||||
"field": "description_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"nested": {
|
||||
"path": "keyword_vectors",
|
||||
"query": {
|
||||
"knn": {
|
||||
"field": "keyword_vectors.vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
"score_mode": "max"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
elif config_type == "lexical_only":
|
||||
query_body = {
|
||||
"query": {
|
||||
"multi_match": {
|
||||
"query": query_str,
|
||||
"fields": ["display_name^3", "keywords^2", "description^1"]
|
||||
}
|
||||
}
|
||||
}
|
||||
elif config_type == "hybrid":
|
||||
query_body = {
|
||||
"query": {
|
||||
"bool": {
|
||||
"should": [
|
||||
{
|
||||
"multi_match": {
|
||||
"query": query_str,
|
||||
"fields": ["display_name^3", "keywords^2", "description^1"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"knn": {
|
||||
"field": "display_name_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"knn": {
|
||||
"field": "description_vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
{
|
||||
"nested": {
|
||||
"path": "keyword_vectors",
|
||||
"query": {
|
||||
"knn": {
|
||||
"field": "keyword_vectors.vector",
|
||||
"query_vector": query_vector,
|
||||
"k": limit,
|
||||
"num_candidates": 100,
|
||||
"similarity": 0.62
|
||||
}
|
||||
},
|
||||
"score_mode": "max"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
else:
|
||||
raise ValueError(f"Unknown config_type: {config_type}")
|
||||
|
||||
query_body["_source"] = {
|
||||
"excludes": ["display_name_vector", "description_vector", "keyword_vectors", "description"]
|
||||
}
|
||||
query_body["size"] = limit
|
||||
return query_body
|
||||
|
||||
async def evaluate():
|
||||
queries_by_field = load_queries()
|
||||
|
||||
# 1. Warm up model and connection
|
||||
print("\nWarming up model and Elasticsearch connection...")
|
||||
model = get_model()
|
||||
model.encode("warmup search term")
|
||||
|
||||
# Run a dummy check on ES
|
||||
dummy_vector = [0.1] * 768
|
||||
dummy_payload = make_es_payload(dummy_vector, "warmup search term", "display_name")
|
||||
try:
|
||||
with httpx.Client(timeout=10.0) as client:
|
||||
client.post(f"{ELASTIC_URL}topicvectors/_search", json=dummy_payload, headers=headers)
|
||||
print("Warmup complete.")
|
||||
except Exception as exc:
|
||||
print(f"Warmup query failed: {exc}")
|
||||
|
||||
results = []
|
||||
print("\nRunning comprehensive latency evaluation on 520 queries...")
|
||||
query_count = 0
|
||||
|
||||
config_list = [
|
||||
"display_name", "description", "keywords",
|
||||
"display_name_and_keywords", "display_name_and_description",
|
||||
"combined", "lexical_only", "hybrid"
|
||||
]
|
||||
|
||||
with httpx.Client(timeout=30.0) as client:
|
||||
for field, queries in queries_by_field.items():
|
||||
for q in queries:
|
||||
query_count += 1
|
||||
if query_count % 50 == 0:
|
||||
print(f"Processed {query_count} / 520 queries...")
|
||||
|
||||
# Measure encoding latency
|
||||
t0 = time.perf_counter()
|
||||
query_vector = model.encode(q).tolist()
|
||||
t1 = time.perf_counter()
|
||||
encode_time = (t1 - t0) * 1000.0 # ms
|
||||
|
||||
latencies = {}
|
||||
|
||||
# Benchmark each configuration
|
||||
for config in config_list:
|
||||
payload = make_es_payload(query_vector, q, config)
|
||||
t0 = time.perf_counter()
|
||||
try:
|
||||
resp = client.post(f"{ELASTIC_URL}topicvectors/_search", json=payload, headers=headers)
|
||||
resp.raise_for_status()
|
||||
except Exception:
|
||||
# Log error but don't crash
|
||||
pass
|
||||
t1 = time.perf_counter()
|
||||
latencies[config] = (t1 - t0) * 1000.0 # ms
|
||||
|
||||
results.append({
|
||||
"query": q,
|
||||
"field": field,
|
||||
"encode_latency_ms": encode_time,
|
||||
"display_name_latency_ms": latencies.get("display_name", 0.0),
|
||||
"description_latency_ms": latencies.get("description", 0.0),
|
||||
"keywords_latency_ms": latencies.get("keywords", 0.0),
|
||||
"display_name_and_keywords_latency_ms": latencies.get("display_name_and_keywords", 0.0),
|
||||
"display_name_and_description_latency_ms": latencies.get("display_name_and_description", 0.0),
|
||||
"combined_latency_ms": latencies.get("combined", 0.0),
|
||||
"lexical_only_latency_ms": latencies.get("lexical_only", 0.0),
|
||||
"hybrid_latency_ms": latencies.get("hybrid", 0.0)
|
||||
})
|
||||
|
||||
# Calculate global stats
|
||||
encode_l = [r["encode_latency_ms"] for r in results]
|
||||
display_name_l = [r["display_name_latency_ms"] for r in results]
|
||||
description_l = [r["description_latency_ms"] for r in results]
|
||||
keywords_l = [r["keywords_latency_ms"] for r in results]
|
||||
display_name_and_keywords_l = [r["display_name_and_keywords_latency_ms"] for r in results]
|
||||
display_name_and_description_l = [r["display_name_and_description_latency_ms"] for r in results]
|
||||
combined_l = [r["combined_latency_ms"] for r in results]
|
||||
lexical_only_l = [r["lexical_only_latency_ms"] for r in results]
|
||||
hybrid_l = [r["hybrid_latency_ms"] for r in results]
|
||||
|
||||
summary = {
|
||||
"total_queries": len(results),
|
||||
"encode": {
|
||||
"mean": np.mean(encode_l), "median": np.median(encode_l),
|
||||
"p90": np.percentile(encode_l, 90), "p95": np.percentile(encode_l, 95)
|
||||
},
|
||||
"display_name": {
|
||||
"mean": np.mean(display_name_l), "median": np.median(display_name_l),
|
||||
"p90": np.percentile(display_name_l, 90), "p95": np.percentile(display_name_l, 95)
|
||||
},
|
||||
"description": {
|
||||
"mean": np.mean(description_l), "median": np.median(description_l),
|
||||
"p90": np.percentile(description_l, 90), "p95": np.percentile(description_l, 95)
|
||||
},
|
||||
"keywords": {
|
||||
"mean": np.mean(keywords_l), "median": np.median(keywords_l),
|
||||
"p90": np.percentile(keywords_l, 90), "p95": np.percentile(keywords_l, 95)
|
||||
},
|
||||
"display_name_and_keywords": {
|
||||
"mean": np.mean(display_name_and_keywords_l), "median": np.median(display_name_and_keywords_l),
|
||||
"p90": np.percentile(display_name_and_keywords_l, 90), "p95": np.percentile(display_name_and_keywords_l, 95)
|
||||
},
|
||||
"display_name_and_description": {
|
||||
"mean": np.mean(display_name_and_description_l), "median": np.median(display_name_and_description_l),
|
||||
"p90": np.percentile(display_name_and_description_l, 90), "p95": np.percentile(display_name_and_description_l, 95)
|
||||
},
|
||||
"combined": {
|
||||
"mean": np.mean(combined_l), "median": np.median(combined_l),
|
||||
"p90": np.percentile(combined_l, 90), "p95": np.percentile(combined_l, 95)
|
||||
},
|
||||
"lexical_only": {
|
||||
"mean": np.mean(lexical_only_l), "median": np.median(lexical_only_l),
|
||||
"p90": np.percentile(lexical_only_l, 90), "p95": np.percentile(lexical_only_l, 95)
|
||||
},
|
||||
"hybrid": {
|
||||
"mean": np.mean(hybrid_l), "median": np.median(hybrid_l),
|
||||
"p90": np.percentile(hybrid_l, 90), "p95": np.percentile(hybrid_l, 95)
|
||||
}
|
||||
}
|
||||
|
||||
# Save full report to json
|
||||
report_json_path = current_dir / "evaluation_report.json"
|
||||
with open(report_json_path, "w", encoding="utf-8") as f:
|
||||
json.dump({"summary": summary, "results": results}, f, indent=2, ensure_ascii=False)
|
||||
print(f"\nSaved detailed JSON report to {report_json_path}")
|
||||
|
||||
# Generate and save markdown report
|
||||
md_report_path = current_dir / "evaluation_report.md"
|
||||
md_content = f"""# Vector Search Configuration Latency Report
|
||||
Generated on: {time.strftime('%Y-%m-%d %H:%M:%S')}
|
||||
|
||||
This report documents the latency breakdown for different Elasticsearch query configurations across 520 queries, measuring flat vector searches, nested searches, multi-field combinations, pure lexical searches, and full hybrid queries.
|
||||
|
||||
## Latency Summary Table (ms)
|
||||
|
||||
| Query Configuration | Mean | Median | p90 | p95 |
|
||||
| :--- | :---: | :---: | :---: | :---: |
|
||||
| **Embedding Encode** | {summary["encode"]["mean"]:.2f} | {summary["encode"]["median"]:.2f} | {summary["encode"]["p90"]:.2f} | {summary["encode"]["p95"]:.2f} |
|
||||
| **Pure Lexical Search (`multi_match`)** | {summary["lexical_only"]["mean"]:.2f} | {summary["lexical_only"]["median"]:.2f} | {summary["lexical_only"]["p90"]:.2f} | {summary["lexical_only"]["p95"]:.2f} |
|
||||
| **Description Only (`description_vector`)** | {summary["description"]["mean"]:.2f} | {summary["description"]["median"]:.2f} | {summary["description"]["p90"]:.2f} | {summary["description"]["p95"]:.2f} |
|
||||
| **Display Name Only (`display_name_vector`)** | {summary["display_name"]["mean"]:.2f} | {summary["display_name"]["median"]:.2f} | {summary["display_name"]["p90"]:.2f} | {summary["display_name"]["p95"]:.2f} |
|
||||
| **Keywords Only (`keyword_vectors` - Nested)** | {summary["keywords"]["mean"]:.2f} | {summary["keywords"]["median"]:.2f} | {summary["keywords"]["p90"]:.2f} | {summary["keywords"]["p95"]:.2f} |
|
||||
| **Display Name & Description** | {summary["display_name_and_description"]["mean"]:.2f} | {summary["display_name_and_description"]["median"]:.2f} | {summary["display_name_and_description"]["p90"]:.2f} | {summary["display_name_and_description"]["p95"]:.2f} |
|
||||
| **Display Name & Keywords (Nested)** | {summary["display_name_and_keywords"]["mean"]:.2f} | {summary["display_name_and_keywords"]["median"]:.2f} | {summary["display_name_and_keywords"]["p90"]:.2f} | {summary["display_name_and_keywords"]["p95"]:.2f} |
|
||||
| **Combined (All 3 vector fields)** | {summary["combined"]["mean"]:.2f} | {summary["combined"]["median"]:.2f} | {summary["combined"]["p90"]:.2f} | {summary["combined"]["p95"]:.2f} |
|
||||
| **Hybrid Search (Lexical + All 3 vector fields)** | {summary["hybrid"]["mean"]:.2f} | {summary["hybrid"]["median"]:.2f} | {summary["hybrid"]["p90"]:.2f} | {summary["hybrid"]["p95"]:.2f} |
|
||||
|
||||
---
|
||||
|
||||
## 💡 Latency Bottleneck & Configuration Analysis
|
||||
|
||||
1. **Lexical Baseline**: **Pure Lexical Search** has extremely low latency (mean: **{summary["lexical_only"]["mean"]:.2f} ms**), representing standard BM25 keyword matching speed.
|
||||
2. **Impact of Nested Fields**:
|
||||
- Compares **Keywords Only (Nested)** (mean: **{summary["keywords"]["mean"]:.2f} ms**) with **Description Only (Flat)** (mean: **{summary["description"]["mean"]:.2f} ms**).
|
||||
- Combining Display Name with the flat Description (**Display Name & Description**: **{summary["display_name_and_description"]["mean"]:.2f} ms**) is faster than combining Display Name with nested Keywords (**Display Name & Keywords**: **{summary["display_name_and_keywords"]["mean"]:.2f} ms**), demonstrating that nested vector joins add a steady latency premium.
|
||||
3. **Compound Parallel Execution**:
|
||||
- Adding lexical queries to the 3 combined vector queries (**Hybrid Search**: **{summary["hybrid"]["mean"]:.2f} ms**) introduces virtually no latency overhead compared to **Combined** vector-only search (mean: **{summary["combined"]["mean"]:.2f} ms**), proving that standard lexical match is executed concurrently with HNSW vector retrieval.
|
||||
"""
|
||||
with open(md_report_path, "w", encoding="utf-8") as f:
|
||||
f.write(md_content)
|
||||
print(f"Saved Markdown report summary to {md_report_path}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(evaluate())
|
||||
@@ -0,0 +1,391 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Professional evaluation pipeline to benchmark different Sentence Transformer models
|
||||
on the OpenAlex topics dataset. Measures Information Retrieval (IR) metrics,
|
||||
Taxonomy Clustering metrics, and operational performance metrics.
|
||||
"""
|
||||
import argparse
|
||||
import json
|
||||
import random
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
import httpx
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Add service/src/main to python path to load settings
|
||||
current_dir = Path(__file__).parent.resolve()
|
||||
project_root = current_dir.parent.parent.resolve()
|
||||
env_path = project_root / "service" / "src" / "main" / "inse" / ".env"
|
||||
load_dotenv(dotenv_path=env_path)
|
||||
|
||||
sys.path.append(str(project_root / "service" / "src" / "main"))
|
||||
from inse.config import settings
|
||||
|
||||
ELASTIC_URL = settings.elasticsearch_url
|
||||
API_KEY = settings.elasticsearch_api_key
|
||||
|
||||
# Import evaluation libraries
|
||||
from sentence_transformers import SentenceTransformer
|
||||
from sentence_transformers.evaluation import InformationRetrievalEvaluator
|
||||
from sklearn import metrics
|
||||
from sklearn.cluster import KMeans
|
||||
|
||||
DEFAULT_MODELS = [
|
||||
"paraphrase-multilingual-mpnet-base-v2",
|
||||
"BAAI/bge-m3",
|
||||
"google/embeddinggemma-300m",
|
||||
"intfloat/multilingual-e5-small",
|
||||
"intfloat/multilingual-e5-base",
|
||||
"intfloat/multilingual-e5-large",
|
||||
"sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
|
||||
#english
|
||||
"sentence-transformers/all-MiniLM-L6-v2",
|
||||
"intfloat/e5-large-v2",
|
||||
"BAAI/bge-large-en-v1.5"
|
||||
]
|
||||
|
||||
def fetch_all_topics():
|
||||
topics = []
|
||||
size = 1000
|
||||
offset = 0
|
||||
headers = {
|
||||
"Authorization": f"ApiKey {API_KEY}",
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
with httpx.Client(timeout=60.0) as client:
|
||||
while True:
|
||||
payload = {
|
||||
"query": {"match_all": {}},
|
||||
"from": offset,
|
||||
"size": size
|
||||
}
|
||||
resp = client.post(
|
||||
f"{ELASTIC_URL.rstrip('/')}/openalex-topics/_search",
|
||||
json=payload,
|
||||
headers=headers
|
||||
)
|
||||
resp.raise_for_status()
|
||||
data = resp.json()
|
||||
hits = data.get("hits", {}).get("hits", [])
|
||||
if not hits:
|
||||
break
|
||||
topics.extend(hits)
|
||||
offset += len(hits)
|
||||
print(f"Fetched {len(topics)} topics...")
|
||||
if len(hits) < size:
|
||||
break
|
||||
|
||||
print(f"Total topics loaded: {len(topics)}")
|
||||
return topics
|
||||
|
||||
def prepare_data(topics, sample_size=None):
|
||||
"""
|
||||
Formulate the IR dataset and clustering taxonomy ground truth labels.
|
||||
"""
|
||||
corpus = {}
|
||||
queries = {}
|
||||
relevant_docs = {}
|
||||
|
||||
# Clustering labels
|
||||
topic_ids = []
|
||||
names_for_clustering = []
|
||||
descriptions_for_clustering = []
|
||||
labels_subfield = []
|
||||
labels_field = []
|
||||
labels_domain = []
|
||||
|
||||
# Build complete corpus dictionary of documents
|
||||
for t in topics:
|
||||
source = t["_source"]
|
||||
doc_id = source["id"]
|
||||
display_name = source.get("display_name") or ""
|
||||
description = source.get("description") or ""
|
||||
doc_text = f"{display_name} {description}".strip()
|
||||
|
||||
corpus[doc_id] = doc_text
|
||||
|
||||
# Taxonomy labels
|
||||
topic_ids.append(doc_id)
|
||||
names_for_clustering.append(display_name.strip())
|
||||
descriptions_for_clustering.append(description.strip())
|
||||
labels_subfield.append(source.get("subfield", {}).get("id") or "unknown_subfield")
|
||||
labels_field.append(source.get("field", {}).get("id") or "unknown_field")
|
||||
labels_domain.append(source.get("domain", {}).get("id") or "unknown_domain")
|
||||
|
||||
sampled_topics = topics
|
||||
if sample_size and sample_size < len(topics):
|
||||
print(f"Sampling {sample_size} topics for query/keyword generation...")
|
||||
sampled_topics = random.sample(topics, sample_size)
|
||||
|
||||
query_count = 0
|
||||
for t in sampled_topics:
|
||||
source = t["_source"]
|
||||
doc_id = source["id"]
|
||||
keywords = source.get("keywords") or []
|
||||
|
||||
for keyword in keywords:
|
||||
if not keyword.strip():
|
||||
continue
|
||||
query_id = f"q_{query_count}"
|
||||
queries[query_id] = keyword
|
||||
|
||||
# Ground truth relevant documents: topic name
|
||||
rel_docs = {doc_id}
|
||||
relevant_docs[query_id] = rel_docs
|
||||
query_count += 1
|
||||
|
||||
print(f"Dataset Formulated: {len(corpus)} corpus documents, {len(queries)} queries.")
|
||||
|
||||
return {
|
||||
"corpus": corpus,
|
||||
"queries": queries,
|
||||
"relevant_docs": relevant_docs,
|
||||
"clustering": {
|
||||
"ids": topic_ids,
|
||||
"names": names_for_clustering,
|
||||
"descriptions": descriptions_for_clustering,
|
||||
"subfield": labels_subfield,
|
||||
"field": labels_field,
|
||||
"domain": labels_domain
|
||||
}
|
||||
}
|
||||
|
||||
def evaluate_model(model_name, data, output_dir):
|
||||
"""
|
||||
Load a model, measure operational speed, and calculate IR + clustering quality.
|
||||
"""
|
||||
model_safe_name = model_name.replace("/", "_").replace("-", "_")
|
||||
report_file = output_dir / f"model_report_{model_safe_name}.json"
|
||||
|
||||
print("\n==================================================")
|
||||
print(f"Evaluating Model: '{model_name}'")
|
||||
print("==================================================")
|
||||
|
||||
start_load = time.time()
|
||||
try:
|
||||
model = SentenceTransformer(model_name)
|
||||
except Exception as exc:
|
||||
print(f"ERROR: Failed to load model '{model_name}': {exc}")
|
||||
return None
|
||||
|
||||
load_time = time.time() - start_load
|
||||
print(f"Model loaded in {load_time:.2f} seconds.")
|
||||
|
||||
num_params = sum(p.numel() for p in model.parameters())
|
||||
param_count_m = num_params / 1_000_000
|
||||
vector_dim = model.get_sentence_embedding_dimension()
|
||||
print(f"Parameters: {param_count_m:.1f}M, Vector Dimension: {vector_dim}")
|
||||
|
||||
# --- FIXED: Perform a warm-up to initialize computation graphs ---
|
||||
print("Warming up model...")
|
||||
_ = model.encode(["warmup sentence"])
|
||||
|
||||
# 2. Measure Query Latency
|
||||
sample_queries = list(data["queries"].values())[:100]
|
||||
if not sample_queries:
|
||||
sample_queries = ["artificial intelligence", "machine learning"]
|
||||
|
||||
start_lat = time.time()
|
||||
for q in sample_queries:
|
||||
_ = model.encode(q)
|
||||
latency_ms = ((time.time() - start_lat) / len(sample_queries)) * 1000
|
||||
print(f"Average Query Latency: {latency_ms:.2f} ms")
|
||||
|
||||
# 3. Measure Ingestion Throughput
|
||||
sample_docs = list(data["corpus"].values())[:200]
|
||||
start_batch = time.time()
|
||||
_ = model.encode(sample_docs, batch_size=32)
|
||||
batch_time = time.time() - start_batch
|
||||
throughput_docs_sec = len(sample_docs) / batch_time
|
||||
print(f"Ingestion Throughput: {throughput_docs_sec:.2f} docs/sec")
|
||||
|
||||
# 4. Information Retrieval Evaluation
|
||||
print("Running Information Retrieval evaluation (NDCG, MRR, Recall)...")
|
||||
|
||||
# --- FIXED: Use precision_recall_at_k for true recall metrics ---
|
||||
evaluator = InformationRetrievalEvaluator(
|
||||
data["queries"],
|
||||
data["corpus"],
|
||||
data["relevant_docs"], # The evaluator natively accepts sets, no need to cast to lists
|
||||
name=model_safe_name,
|
||||
mrr_at_k=[10],
|
||||
ndcg_at_k=[10],
|
||||
precision_recall_at_k=[10] # This ensures true Recall is calculated across multiple sibling matches
|
||||
)
|
||||
|
||||
ir_results = evaluator(model)
|
||||
|
||||
# Extract keys safely
|
||||
ndcg_key = f"{model_safe_name}_cosine_ndcg@10"
|
||||
mrr_key = f"{model_safe_name}_cosine_mrr@10"
|
||||
recall_key = f"{model_safe_name}_cosine_recall@10" # Changed from accuracy to recall
|
||||
|
||||
ndcg_score = ir_results.get(ndcg_key, 0.0)
|
||||
mrr_score = ir_results.get(mrr_key, 0.0)
|
||||
recall_score = ir_results.get(recall_key, 0.0)
|
||||
|
||||
print(f"NDCG@10: {ndcg_score:.4f}, MRR@10: {mrr_score:.4f}, Recall@10: {recall_score:.4f}")
|
||||
|
||||
# 5. Clustering evaluation against ground-truth taxonomy
|
||||
print("Running Taxonomy Clustering evaluation (NMI)...")
|
||||
|
||||
unique_subfields = list(set(data["clustering"]["subfield"]))
|
||||
n_clusters = len(unique_subfields)
|
||||
|
||||
# Topic Names Clustering
|
||||
print("Clustering Topic Names...")
|
||||
clustering_names = data["clustering"]["names"]
|
||||
name_embeddings = model.encode(clustering_names, show_progress_bar=False, batch_size=64)
|
||||
|
||||
nmi_name = 0.0
|
||||
ari_name = 0.0
|
||||
if n_clusters > 1 and len(name_embeddings) > n_clusters:
|
||||
kmeans_name = KMeans(n_clusters=n_clusters, random_state=42, n_init='auto')
|
||||
assignments_name = kmeans_name.fit_predict(name_embeddings)
|
||||
nmi_name = metrics.normalized_mutual_info_score(data["clustering"]["subfield"], assignments_name)
|
||||
ari_name = metrics.adjusted_rand_score(data["clustering"]["subfield"], assignments_name)
|
||||
print(f"Names - Subfield Clustering NMI: {nmi_name:.4f}, ARI: {ari_name:.4f}")
|
||||
|
||||
# Topic Descriptions Clustering
|
||||
print("Clustering Topic Descriptions...")
|
||||
clustering_descs = data["clustering"]["descriptions"]
|
||||
desc_embeddings = model.encode(clustering_descs, show_progress_bar=False, batch_size=64)
|
||||
|
||||
nmi_desc = 0.0
|
||||
ari_desc = 0.0
|
||||
if n_clusters > 1 and len(desc_embeddings) > n_clusters:
|
||||
kmeans_desc = KMeans(n_clusters=n_clusters, random_state=42, n_init='auto')
|
||||
assignments_desc = kmeans_desc.fit_predict(desc_embeddings)
|
||||
nmi_desc = metrics.normalized_mutual_info_score(data["clustering"]["subfield"], assignments_desc)
|
||||
ari_desc = metrics.adjusted_rand_score(data["clustering"]["subfield"], assignments_desc)
|
||||
print(f"Descriptions - Subfield Clustering NMI: {nmi_desc:.4f}, ARI: {ari_desc:.4f}")
|
||||
|
||||
report = {
|
||||
"model_name": model_name,
|
||||
"parameters_m": param_count_m,
|
||||
"vector_dim": vector_dim,
|
||||
"latency_ms": latency_ms,
|
||||
"throughput_docs_sec": throughput_docs_sec,
|
||||
"ndcg_at_10": ndcg_score,
|
||||
"mrr_at_10": mrr_score,
|
||||
"recall_at_10": recall_score,
|
||||
"name_nmi": nmi_name,
|
||||
"name_ari": ari_name,
|
||||
"desc_nmi": nmi_desc,
|
||||
"desc_ari": ari_desc
|
||||
}
|
||||
|
||||
with open(report_file, "w", encoding="utf-8") as f:
|
||||
json.dump(report, f, indent=2, ensure_ascii=False)
|
||||
print(f"Saved model report to {report_file}")
|
||||
|
||||
return report
|
||||
|
||||
def generate_consolidated_report(output_dir, reports):
|
||||
if not reports:
|
||||
print("No reports to consolidate.")
|
||||
return
|
||||
|
||||
report_file = output_dir / "model_evaluation_report.md"
|
||||
print(f"\nCompiling consolidated report into {report_file}...")
|
||||
|
||||
sorted_reports = sorted(reports, key=lambda x: x["ndcg_at_10"], reverse=True)
|
||||
|
||||
lines = [
|
||||
"# Sentence Transformer Model Evaluation Report",
|
||||
"",
|
||||
"This report aggregates performance metrics and accuracy benchmarks for different Sentence Transformer models evaluated against the OpenAlex topic keywords dataset.",
|
||||
"",
|
||||
"## Overall Leaderboard",
|
||||
"",
|
||||
"| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |",
|
||||
"| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |"
|
||||
]
|
||||
|
||||
for idx, r in enumerate(sorted_reports):
|
||||
name_nmi = r.get("name_nmi", 0.0)
|
||||
desc_nmi = r.get("desc_nmi", 0.0)
|
||||
lines.append(
|
||||
f"| {idx+1} | `{r['model_name']}` | {r['vector_dim']} | {r['parameters_m']:.1f}M | {r['latency_ms']:.2f}ms | {r['throughput_docs_sec']:.1f} | **{r['ndcg_at_10']:.4f}** | {r['mrr_at_10']:.4f} | {r['recall_at_10']:.4f} | {name_nmi:.4f} | {desc_nmi:.4f} |"
|
||||
)
|
||||
|
||||
lines.extend([
|
||||
"",
|
||||
"### Metric Definitions:",
|
||||
"* **NDCG@10**: Normalized Discounted Cumulative Gain. Measures how well the query maps to the target topic at the top 10 positions.",
|
||||
"* **MRR@10**: Mean Reciprocal Rank. Looks at the average of `1 / rank` for the first correctly matched topic.",
|
||||
"* **Recall@10**: Percentage of times the target document (excluding sibling topics) was successfully retrieved in the top 10.",
|
||||
"* **Name NMI**: Normalized Mutual Information of K-Means clusters of topic display names against ground truth OpenAlex subfields.",
|
||||
"* **Desc NMI**: Normalized Mutual Information of K-Means clusters of topic descriptions against ground truth OpenAlex subfields.",
|
||||
"* **Query Latency**: Time to encode a single search keyword.",
|
||||
"* **Throughput**: Ingestion batch encoding speed."
|
||||
])
|
||||
|
||||
with open(report_file, "w", encoding="utf-8") as f:
|
||||
f.write("\n".join(lines))
|
||||
print(f"Report compiled successfully at {report_file}")
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Evaluate Sentence Transformer models on OpenAlex topics.")
|
||||
parser.add_argument("--model", type=str, help="Specific model to evaluate (skips others).")
|
||||
parser.add_argument("--sample-size", type=int, help="Sample size of topics to evaluate keywords for (faster run).")
|
||||
parser.add_argument("--all", action="store_true", help="Evaluate all topics/keywords (default if sample-size omitted).")
|
||||
parser.add_argument("--output-dir", type=str, help="Custom directory to save reports.")
|
||||
parser.add_argument("--force-refresh", action="store_true", help="Force reload topics from Elasticsearch instead of cache.")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if Path("/data").is_dir():
|
||||
data_dir = Path("/data")
|
||||
else:
|
||||
project_root = Path(__file__).parent.parent.parent.parent.parent.resolve()
|
||||
data_dir = project_root / "service" / "src" / "data"
|
||||
data_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
output_dir = Path(args.output_dir) if args.output_dir else data_dir
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
cache_file = data_dir / "raw_topics_cache.json"
|
||||
if cache_file.exists() and not args.force_refresh:
|
||||
print(f"Loading topics from local cache: {cache_file}")
|
||||
with open(cache_file, "r", encoding="utf-8") as f:
|
||||
topics = json.load(f)
|
||||
else:
|
||||
topics = fetch_all_topics()
|
||||
with open(cache_file, "w", encoding="utf-8") as f:
|
||||
json.dump(topics, f, indent=2, ensure_ascii=False)
|
||||
print(f"Cached {len(topics)} topics to {cache_file}")
|
||||
|
||||
if not topics:
|
||||
print("Error: No topics dataset available. Make sure Elasticsearch is running or cache exists.")
|
||||
sys.exit(1)
|
||||
|
||||
data = prepare_data(topics, sample_size=args.sample_size)
|
||||
|
||||
models_to_evaluate = DEFAULT_MODELS
|
||||
if args.model:
|
||||
models_to_evaluate = [args.model]
|
||||
|
||||
print(f"Models scheduled for evaluation: {models_to_evaluate}")
|
||||
|
||||
reports = []
|
||||
for m in models_to_evaluate:
|
||||
model_safe_name = m.replace("/", "_").replace("-", "_")
|
||||
report_file = output_dir / f"model_report_{model_safe_name}.json"
|
||||
|
||||
if report_file.exists() and not args.model:
|
||||
print(f"Loading cached evaluation report for '{m}' from {report_file}")
|
||||
with open(report_file, "r", encoding="utf-8") as f:
|
||||
reports.append(json.load(f))
|
||||
else:
|
||||
rep = evaluate_model(m, data, output_dir)
|
||||
if rep:
|
||||
reports.append(rep)
|
||||
|
||||
generate_consolidated_report(output_dir, reports)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,159 @@
|
||||
# Performance Summary
|
||||
|
||||
520 Keywords as query against hybrid & semantic search
|
||||
|
||||
- Search fields:
|
||||
- display name (Keyword & single vector)
|
||||
- description (Keyword & single vector)
|
||||
- keywords (Keyword & nested vectors)
|
||||
|
||||
- 26 Fields: 20 examples each
|
||||
| # | OpenAlex Field Name | Complete Test Queries |
|
||||
|---|---------------------|-----------------------------------------|
|
||||
| 01 | **Social Sciences** | `sociology, gender inequality in workplace, urbanization trends, political polarization, human rights law, social mobility, qualitative research methods, demographic shifts, cultural anthropology, criminal justice reform, public policy analysis, indigenous languages, voter behavior, globalization effects, community development, media studies, social movements, migration patterns, welfare systems, family dynamics` |
|
||||
| 02 | **Medicine** | `cardiology, diabetes management, oncology treatment options, clinical trials, pediatric care, chronic pain relief, cardiovascular disease prevention, surgical procedures, infectious disease outbreak, medical imaging techniques, hypertension guidelines, patient outcomes, immunotherapy for cancer, epidemiology study, stroke rehabilitation, genetic disorders, telemedicine adoption, internal medicine, diagnostic accuracy, palliative care` |
|
||||
| 03 | **Engineering** | `civil engineering, structural integrity, aerospace propulsion, mechanical design, robotics automation, geotechnical analysis, bridge construction, renewable energy grid, fluid mechanics, electrical circuits, thermodynamics applications, manufacturing optimization, control systems engineering, materials fatigue, hvac design, biomedical devices, transportation infrastructure, signal processing, solid mechanics, industrial engineering` |
|
||||
| 04 | **Computer Science** | `machine learning, natural language processing, cybersecurity protocols, cloud computing architecture, neural networks, database optimization, software engineering practices, computer vision algorithms, blockchain technology, artificial intelligence ethics, human computer interaction, operating systems, distributed ledgers, compiler design, data mining techniques, cryptographic keys, quantum computing algorithms, web development frameworks, reinforcement learning, graph databases` |
|
||||
| 05 | **Arts and Humanities** | `art history, literary criticism, philosophy of mind, renaissance architecture, linguistics morphology, creative writing, musical composition, theater history, postmodern literature, ethics and morality, historical archives, film analysis, religious studies, classical archaeology, metaphysics, cultural heritage preservation, comparative literature, linguistic semantics, medieval art, epistemology` |
|
||||
| 06 | **Biochemistry, Genetics and Molecular Biology** | `dna replication, crispr gene editing, protein folding, rna sequencing, enzyme kinetics, cellular signaling pathways, metabolic pathways, genomic sequencing, molecular cloning, apoptosis mechanism, mitochondrial DNA, epigenetic modifications, proteomics analysis, gene expression regulation, chromatin remodeling, amino acid synthesis, nucleic acids, cellular differentiation, lipid metabolism, transcription factors` |
|
||||
| 07 | **Agricultural and Biological Sciences** | `crop yield optimization, plant physiology, marine biology, soil microbiology, entomology study, botany research, sustainable agriculture, animal behavior, ecology systems, pest management, forestry conservation, photosynthesis mechanism, biodiversity preservation, aquaculture techniques, agronomy practices, seed germination, horticulture science, wildlife ecology, plant pathology, livestock breeding` |
|
||||
| 08 | **Environmental Science** | `climate change mitigation, renewable resource management, air pollution monitoring, microplastics in oceans, deforestation rates, waste management systems, carbon footprint reduction, biodiversity loss, global warming impacts, ecosystem restoration, water quality analysis, urban sustainability, environmental impact assessment, glacier melting, conservation biology, greenhouse gas emissions, soil erosion control, renewable energy transition, climate adaptation strategies, acid rain causes` |
|
||||
| 09 | **Business, Management and Accounting** | `corporate strategy, supply chain logistics, financial auditing, marketing analytics, human resource management, organizational behavior, consumer behavior trends, risk assessment framework, entrepreneurship ecosystems, project management methodologies, accounting principles, brand equity, leadership styles, business ethics, digital transformation strategy, operations management, corporate governance, market segmentation, strategic planning, financial reporting standards` |
|
||||
| 10 | **Psychology** | `cognitive behavioral therapy, developmental psychology, social anxiety disorder, memory retention techniques, neuropsychology assessment, human behavior analysis, mental health counseling, personality traits theory, child development stages, addiction recovery mechanisms, emotional intelligence, perception and sensation, group dynamics psychology, depression treatment outcomes, stress management interventions, motivation theories, cognitive dissonance, behavioral psychology, mindfulness practices, sleep disorders psychology` |
|
||||
| 11 | **Materials Science** | `nanomaterials synthesis, graphene applications, polymers characterization, metallurgy engineering, semiconductor fabrication, composite materials design, biomaterials tissue engineering, thin film deposition, corrosion resistance, superconductors properties, ceramic engineering, alloy development, material degradation, photovoltaic materials, mechanical testing of alloys, smart materials technology, crystal structure analysis, carbon nanotubes research, thermal conductivity materials, magnetic materials applications` |
|
||||
| 12 | **Economics, Econometrics and Finance** | `macroeconomic policy, econometric modeling, financial market analysis, monetary theory, microeconomics principles, game theory applications, inflation rates forecast, labor economics, behavioral finance, portfolio optimization, international trade agreements, fiscal policy impact, time series analysis, asset pricing models, poverty reduction strategies, economic growth models, corporate finance theory, cryptocurrency economics, market equilibrium, public finance management` |
|
||||
| 13 | **Health Professions** | `physical therapy techniques, occupational therapy interventions, speech language pathology, radiologic technology, emergency medical services, healthcare administration, audiology assessments, rehabilitation sciences, clinical nutrition, paramedic protocols, respiratory therapy management, health informatics systems, dietetics practice, patient care quality, medical laboratory technology, orthotics and prosthetics, interprofessional healthcare collaboration, community health education, sports medicine rehabilitation, physician assistant training` |
|
||||
| 14 | **Physics and Astronomy** | `quantum mechanics, astrophysics research, dark matter detection, particle physics collision, general relativity theory, cosmology evolution, exoplanet discovery, nuclear fusion energy, condensed matter physics, string theory concepts, optics and photonics, black hole thermodynamics, gravitational waves detection, statistical mechanics, plasma physics applications, stellar evolution models, high energy physics, quantum entanglement experiments, spectroscopy techniques, thermodynamics principles` |
|
||||
| 15 | **Chemistry** | `organic synthesis, analytical chemistry methods, inorganic compounds coordination, physical chemistry thermodynamics, spectroscopy chemical analysis, catalysis mechanism design, polymer chemistry polymerization, electrochemistry batteries, medicinal chemistry design, chromatography separation techniques, chemical kinetics reactions, mass spectrometry profiling, computational chemistry modeling, environmental chemistry monitoring, photochemistry solar conversion, biophysical chemistry structure, green chemistry principles, molecular orbital theory, supramolecular architecture, crystallography structure determination` |
|
||||
| 16 | **Mathematics** | `linear algebra, differential equations solution, algebraic topology, number theory cryptography, calculus fundamentals, probability and statistics, discrete mathematics structures, numerical analysis algorithms, complex analysis functions, geometry axiom theories, combinatorics counting techniques, mathematical modeling simulation, set theory foundations, graph theory applications, real analysis limits, partial differential equations, abstract algebra groups, optimization theory algorithms, stochastic processes modeling, chaos theory dynamics` |
|
||||
| 17 | **Neuroscience** | `synaptic plasticity, neurodegenerative diseases mechanisms, brain mapping fmri, cognitive neuroscience memory, neurotransmitter receptors pathways, neural network architecture, behavioral neuroscience addiction, neurogenesis adult brain, axon guidance development, spinal cord injury, sensory processing systems, motor control pathways, alzheimer disease pathology, parkinson motor deficits, neuroimmunology inflammation, sleep neural circuits, epilepsy seizure mechanisms, computational neuroscience models, neuropharmacology drugs action, brain computer interface` |
|
||||
| 18 | **Decision Sciences** | `operations research optimization, decision analysis models, multi criteria decision making, game theory strategies, risk analysis management, linear programming applications, forecasting methods business, supply chain optimization, stochastic modeling systems, queuing theory performance, decision tree classification, predictive analytics framework, statistical decision theory, heuristic search optimization, inventory control models, simulation optimization methods, behavioral decision making, utility theory choices, data driven decision support, dynamic programming problems` |
|
||||
| 19 | **Earth and Planetary Sciences** | `plate tectonics geology, seismology earthquake prediction, volcanology eruption monitoring, paleoclimatology proxy data, planetary geology mars, mineralogy crystal structures, sedimentology deposition environments, stratigraphy rock layers, geomorphology landscape evolution, hydrology water cycle, meteorology weather forecasting, oceanography ocean currents, geochemistry isotopic analysis, remote sensing earth, petrology rock formation, impact cratering planetary, paleontology fossil records, glaciology ice sheets, geophysics magnetic fields, environmental geology hazards` |
|
||||
| 20 | **Immunology and Microbiology** | `t cell activation, antibody response mechanics, bacterial resistance antibiotics, viral replication cycle, autoimmune disease pathogenesis, innate immunity defense, vaccine development strategies, microbiome gut health, macrophage polarization function, pathogen virulence factors, cytokine storm response, mycology fungal infections, parasitology host interaction, adaptive immune system, antigen presentation pathway, bacteriophage therapy applications, immunotherapy cancer treatment, microbial biofilms formation, virology host defense, inflammation signaling pathways` |
|
||||
| 21 | **Energy** | `solar cell efficiency, wind turbine aerodynamics, battery energy storage, hydrogen fuel cells, nuclear power generation, biofuel production technologies, geothermal energy extraction, energy grid optimization, fossil fuel alternative, hydroelectric power systems, energy efficiency buildings, carbon capture storage, renewable energy policy, smart grid infrastructure, tidal energy conversion, thermal energy storage, power electronics converters, microgrid energy systems, biomass combustion processes, energy consumption forecasting` |
|
||||
| 22 | **Pharmacology, Toxicology and Pharmaceutics** | `drug delivery systems, pharmacokinetics modeling analysis, pharmacodynamics receptor binding, toxicology safety assessment, pharmaceutical formulation design, bioavailability drug absorption, cytotoxicity assays testing, clinical pharmacology trials, neuropharmacology drug effects, cardiotoxicity drug evaluation, nanoparticle drug carriers, pharmacogenomics personalized medicine, drug metabolism enzymes, adverse drug reactions, controlled release tablets, heavy metal toxicology, target identification drug, natural product pharmacology, dosage form optimization, endocrine disruptors toxicology` |
|
||||
| 23 | **Nursing** | `patient care management, nursing education curriculum, clinical nursing practice, geriatric nursing care, pediatric nursing interventions, critical care nursing, palliative nursing care, nursing leadership styles, community health nursing, evidence based nursing, mental health nursing, maternal newborn nursing, wound care management, nurse practitioner roles, patient safety protocols, nursing burnout prevention, oncology nursing practices, chronic disease management, telehealth nursing care, infection control nursing` |
|
||||
| 24 | **Chemical Engineering** | `process systems engineering, chemical reactor design, transport phenomena fluid, separation processes distillation, catalytic reaction engineering, bioprocess engineering fermentation, thermodynamics chemical mixtures, heat exchanger network, polymer processing extrusion, mass transfer operations, process safety management, fluidized bed reactor, chemical plant optimization, multi phase flow, computational fluid dynamics, industrial scale synthesis, green chemical engineering, adsorption separation kinetics, process control loops, materials processing chemical` |
|
||||
| 25 | **Dentistry** | `endodontic treatment procedures, periodontal disease therapy, orthodontic alignment techniques, dental implant surgery, prosthodontics crown design, pediatric dentistry prevention, oral maxillofacial surgery, dental caries prevention, restorative dentistry materials, oral pathology diagnosis, laser dentistry applications, dental biomaterials wear, cone beam ct, salivary diagnostics biomarkers, aesthetic dentistry veneers, root canal morphology, gingival recession treatment, fluoride treatment efficacy, dental pulp stem cells, temporomandibular joint disorders` |
|
||||
| 26 | **Veterinary** | `veterinary medicine diagnosis, canine parvovirus treatment, feline leukemia virus, equine sports medicine, bovine mastitis control, veterinary surgery techniques, animal nutrition guidelines, zoonotic disease transmission, veterinary oncology treatment, avian medicine care, small animal internal, livestock herd health, veterinary pharmacology drugs, animal welfare assessment, veterinary radiology imaging, feline behavior issues, canine hip dysplasia, veterinary epidemiology outbreaks, companion animal care, exotic pet medicine` |
|
||||
|
||||
## Latency results
|
||||
|
||||
| Query Configuration | Mean | Median | p95 |
|
||||
| :-------------------------------------- | :---: | :----: | :---: |
|
||||
| **Embedding Encode** | 35.81 | 35.11 | 42.98 |
|
||||
| **Pure Lexical Search (`multi_match`)** | 44.03 | 43.21 | 52.12 |
|
||||
|
||||
|
|
||||
| **Description Only (`description_vector`)** | 27.11 | 24.83 | 40.23 |
|
||||
| **Display Name Only (`display_name_vector`)** | 42.71 | 45.33 | 55.51 |
|
||||
| **Keywords Only (`keyword_vectors` - Nested)** | 47.65 | 47.06 | 56.88 |
|
||||
| **Display Name & Description** | 46.62 | 49.22 | 59.43 |
|
||||
| **Display Name & Keywords (Nested)** | 52.11 | 51.36 | 61.22 |
|
||||
| **Combined (All 3 vector fields)** | 57.06 | 55.65 | 67.32 |
|
||||
|
|
||||
| **Hybrid Search (Lexical + All 3 vector fields)** | 58.65 | 57.09 | 69.10 |
|
||||
|
||||
- should query runs hybrid and semantic concurrently => nested Keyword vector search bottleneck
|
||||
- Hybrid returns more results overall due to partailly matching words in display name & Keywords
|
||||
- Query: "Cell Adhesion Molecules Research"
|
||||
- Low rank return: "Q Methodology Applications"
|
||||
- because: ["**Research** Methods", "Qualitative **Research**"] Keywords
|
||||
|
||||
- Changed k & num_candidates to 500 (fixed bug, where not all keywords were considered):
|
||||
| Query Configuration | Mean | Median | p95 |
|
||||
| :--- | :---: | :---: | :---: |
|
||||
| **Embedding Encode** | 38.25 | 37.41 | 45.48 |
|
||||
| **Pure Lexical Search (`multi_match`)** | 44.98 | 43.69 | 55.21 |
|
||||
| **Description Only (`description_vector`)** | 29.69 | 27.76 | 45.46 |
|
||||
| **Display Name Only (`display_name_vector`)** | 45.20 | 46.68 | 59.47 |
|
||||
| **Keywords Only (`keyword_vectors` - Nested)** | 50.00 | 48.89 | 60.61 |
|
||||
| **Display Name & Description** | 49.84 | 51.16 | 66.37 |
|
||||
| **Display Name & Keywords (Nested)** | 55.50 | 54.16 | 66.12 |
|
||||
| **Combined (All 3 vector fields)** | 61.81 | 59.74 | 75.30 |
|
||||
| **Hybrid Search (Lexical + All 3 vector fields)** | 63.25 | 61.05 | 76.39 |
|
||||
|
||||
# Search Score Breakdown & Weight Analysis Report
|
||||
|
||||
---
|
||||
|
||||
## Global Score Contribution
|
||||
|
||||
| Weight Component | Boost | Avg. Score Contribution | Percentage of Total Score |
|
||||
| :-------------------------------------------- | :---: | :---------------------: | :-----------------------: |
|
||||
| **Lexical Match (`multi_match`)** | 1.0 | 36.2275 | 54.31% |
|
||||
| **Title Vector (`display_name_vector`)** | 30.0 | 17.9748 | 26.95% |
|
||||
| **Description Vector (`description_vector`)** | 15.0 | 2.5502 | 3.82% |
|
||||
| **Nested Keywords (`keyword_vectors`)** | 25.0 | 9.9531 | 14.92% |
|
||||
|
||||
| After fix:
|
||||
| **Lexical Match (`multi_match`)** | 1.0 | 38.2910 | 44.79% |
|
||||
| **Title Vector (`display_name_vector`)** | 30.0 | 22.5727 | 26.40% |
|
||||
| **Description Vector (`description_vector`)** | 15.0 | 3.3518 | 3.92% |
|
||||
| **Nested Keywords (`keyword_vectors`)** | 25.0 | 21.2808 | 24.89% |
|
||||
|
||||
---
|
||||
|
||||
## Contribution Breakdown by Field
|
||||
|
||||
| Field | Avg. Score | Lexical % | Title Vector % | Description Vector % | Keywords Vector % |
|
||||
| :------------------------------------------- | :--------: | :-------: | :------------: | :------------------: | :---------------: |
|
||||
| Social Sciences | 76.10 | 42.6% | 27.0% | 6.2% | 24.2% |
|
||||
| Medicine | 71.58 | 43.9% | 26.5% | 4.1% | 25.5% |
|
||||
| Engineering | 67.73 | 43.8% | 27.6% | 3.5% | 25.2% |
|
||||
| Computer Science | 69.63 | 47.3% | 23.4% | 4.0% | 25.3% |
|
||||
| Arts and Humanities | 75.38 | 40.2% | 28.7% | 5.9% | 25.1% |
|
||||
| Biochemistry, Genetics and Molecular Biology | 64.32 | 43.5% | 26.7% | 1.6% | 28.1% |
|
||||
| Agricultural and Biological Sciences | 70.48 | 38.0% | 30.7% | 4.2% | 27.1% |
|
||||
| Environmental Science | 72.92 | 44.3% | 26.3% | 5.0% | 24.3% |
|
||||
| Business, Management and Accounting | 75.14 | 47.1% | 25.8% | 2.7% | 24.5% |
|
||||
| Psychology | 67.50 | 40.8% | 28.5% | 4.9% | 25.8% |
|
||||
| Materials Science | 75.99 | 40.4% | 28.5% | 6.4% | 24.7% |
|
||||
| Economics, Econometrics and Finance | 67.58 | 43.0% | 25.3% | 5.7% | 25.9% |
|
||||
| Health Professions | 62.96 | 41.9% | 28.4% | 3.2% | 26.5% |
|
||||
| Physics and Astronomy | 70.10 | 47.5% | 24.4% | 3.6% | 24.5% |
|
||||
| Chemistry | 73.17 | 44.6% | 26.8% | 4.2% | 24.4% |
|
||||
| Mathematics | 74.83 | 48.1% | 24.7% | 4.4% | 22.9% |
|
||||
| Neuroscience | 68.20 | 45.2% | 24.6% | 5.2% | 25.0% |
|
||||
| Decision Sciences | 67.13 | 49.5% | 23.3% | 2.4% | 24.8% |
|
||||
| Earth and Planetary Sciences | 64.59 | 41.3% | 28.9% | 2.4% | 27.3% |
|
||||
| Immunology and Microbiology | 68.62 | 44.9% | 25.7% | 3.6% | 25.9% |
|
||||
| Energy | 80.04 | 50.3% | 22.8% | 5.4% | 21.6% |
|
||||
| Pharmacology, Toxicology and Pharmaceutics | 64.61 | 45.2% | 26.1% | 2.4% | 26.2% |
|
||||
| Nursing | 75.86 | 47.8% | 26.5% | 2.8% | 22.8% |
|
||||
| Chemical Engineering | 59.12 | 48.5% | 26.0% | 1.1% | 24.4% |
|
||||
| Dentistry | 62.51 | 44.1% | 28.1% | 3.1% | 24.7% |
|
||||
| Veterinary | 53.56 | 49.2% | 26.9% | 1.9% | 22.0% |
|
||||
|
||||
---
|
||||
|
||||
## Score Breakdown Examples (Top Match per Field Sample)
|
||||
|
||||
| Field & Query | Fixed Variant Performance | Bug Variant Performance |
|
||||
| :------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| **Social Sciences**<br>`"sociology"` | **Topic**: Emile Durkheim and Sociology<br>**Total Score**: 80.7964<br><br>• Lexical: 33.6289<br>• Title KNN: 25.3876<br>• Desc KNN: 12.1561<br>• Key KNN: 24.9897<br><br>**Keywords**:<br>• 'sociology' (0.9996)<br>• 'social conditions' (0.8254) | **Topic**: Emile Durkheim and Sociology<br>**Total Score**: 55.4088<br><br>• Lexical: 33.6289<br>• Title KNN: 0.0000<br>• Desc KNN: 12.1561<br>• Key KNN: 24.9897<br><br>**Keywords**:<br>• 'sociology' (0.9996)<br>• 'social conditions' (0.8254) |
|
||||
| **Medicine**<br>`"cardiology"` | **Topic**: Cardiomyopathy and Myosin Studies<br>**Total Score**: 62.3436<br><br>• Lexical: 0.0000<br>• Title KNN: 26.0134<br>• Desc KNN: 12.4090<br>• Key KNN: 23.9212<br><br>**Keywords**:<br>• 'Cardiomyopathies' (0.9568)<br>• 'Cardiac Imaging' (0.9192) | **Topic**: Cardiac Imaging and Diagnostics<br>**Total Score**: 27.6677<br><br>• Lexical: 0.0000<br>• Title KNN: 27.6677<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Cardiac Imaging' (0.9192)<br>• 'Myocardial Infarction' (0.8564) |
|
||||
| **Engineering**<br>`"civil engineering"` | **Topic**: Civil and Structural Engineering Research<br>**Total Score**: 97.2652<br><br>• Lexical: 60.8415<br>• Title KNN: 28.1018<br>• Desc KNN: 12.3099<br>• Key KNN: 24.8941<br><br>**Keywords**:<br>• 'Civil Engineering' (0.9958)<br>• 'Construction' (0.8388) | **Topic**: Civil and Structural Engineering Research<br>**Total Score**: 97.2652<br><br>• Lexical: 60.8415<br>• Title KNN: 28.1018<br>• Desc KNN: 12.3099<br>• Key KNN: 24.8941<br><br>**Keywords**:<br>• 'Civil Engineering' (0.9958)<br>• 'Construction' (0.8388) |
|
||||
| **Computer Science**<br>`"machine learning"` | **Topic**: Machine Learning and Algorithms<br>**Total Score**: 99.2549<br><br>• Lexical: 55.5562<br>• Title KNN: 29.2590<br>• Desc KNN: 12.5187<br>• Key KNN: 24.9693<br><br>**Keywords**:<br>• 'Machine Learning' (0.9988)<br>• 'Deep Learning' (0.9119) | **Topic**: Machine Learning and Algorithms<br>**Total Score**: 74.2856<br><br>• Lexical: 55.5562<br>• Title KNN: 29.2590<br>• Desc KNN: 12.5187<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Machine Learning' (0.9988)<br>• 'Deep Learning' (0.9119) |
|
||||
| **Arts and Humanities**<br>`"art history"` | **Topic**: Art, Politics, and Modernism<br>**Total Score**: 79.6751<br><br>• Lexical: 41.4462<br>• Title KNN: 26.8390<br>• Desc KNN: 12.2412<br>• Key KNN: 23.1472<br><br>**Keywords**:<br>• 'Contemporary Art' (0.9259)<br>• 'Art Theory' (0.8902) | **Topic**: Art History and Market Analysis<br>**Total Score**: 54.6477<br><br>• Lexical: 44.3255<br>• Title KNN: 27.6256<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Art Market' (0.8499) |
|
||||
| **Biochemistry, Genetics...**<br>`"dna replication"` | **Topic**: DNA Repair Mechanisms<br>**Total Score**: 69.5873<br><br>• Lexical: 37.9645<br>• Title KNN: 25.5676<br>• Desc KNN: 0.0000<br>• Key KNN: 21.2950<br><br>**Keywords**:<br>• 'Homologous Recombination' (0.8518) | **Topic**: DNA Repair Mechanisms<br>**Total Score**: 48.2923<br><br>• Lexical: 37.9645<br>• Title KNN: 25.5676<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Homologous Recombination' (0.8518) |
|
||||
| **Agricultural Sciences**<br>`"crop yield optimization"` | **Topic**: Crop Yield and Soil Fertility<br>**Total Score**: 86.9026<br><br>• Lexical: 72.9192<br>• Title KNN: 25.6184<br>• Desc KNN: 0.0000<br>• Key KNN: 21.9673<br><br>**Keywords**:<br>• 'Crop Management' (0.8787)<br>• 'Maize Yield' (0.8515) | **Topic**: Soil Management and Crop Yield<br>**Total Score**: 65.6488<br><br>• Lexical: 58.5754<br>• Title KNN: 26.3319<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'No-till Crop Production' (0.8136) |
|
||||
| **Environmental Science**<br>`"climate change mitigation"` | **Topic**: Climate Change, Adaptation, Migration<br>**Total Score**: 95.6090<br><br>• Lexical: 55.1717<br>• Title KNN: 24.9003<br>• Desc KNN: 12.3419<br>• Key KNN: 23.2867<br><br>**Keywords**:<br>• 'Climate Change' (0.9315) | **Topic**: Climate Change and Sustainable Development<br>**Total Score**: 72.0562<br><br>• Lexical: 52.0331<br>• Title KNN: 27.6359<br>• Desc KNN: 12.3920<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Climate Change' (0.9314)<br>• 'Environmental Policy' (0.8447) |
|
||||
| **Business & Accounting**<br>`"corporate strategy"` | **Topic**: Political Influence and Corporate Strategies<br>**Total Score**: 70.1485<br><br>• Lexical: 43.3796<br>• Title KNN: 25.4050<br>• Desc KNN: 0.0000<br>• Key KNN: 23.5512<br><br>**Keywords**:<br>• 'Business Strategy' (0.9420)<br>• 'Corporate Governance' (0.8537) | **Topic**: Corporate Management and Leadership<br>**Total Score**: 44.0634<br><br>• Lexical: 18.0385<br>• Title KNN: 26.0249<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• _None matched_ |
|
||||
| **Psychology**<br>`"cognitive behavioral therapy"` | **Topic**: Psychological Treatments and Assessments<br>**Total Score**: 74.0625<br><br>• Lexical: 33.9552<br>• Title KNN: 26.3648<br>• Desc KNN: 0.0000<br>• Key KNN: 24.8575<br><br>**Keywords**:<br>• 'Cognitive Behavioral Therapy' (0.9943)<br>• 'Rational Emotive Behavior Therapy' (0.8906) | **Topic**: Psychological Treatments and Assessments<br>**Total Score**: 74.0625<br><br>• Lexical: 33.9552<br>• Title KNN: 26.3648<br>• Desc KNN: 0.0000<br>• Key KNN: 24.8575<br><br>**Keywords**:<br>• 'Cognitive Behavioral Therapy' (0.9943)<br>• 'Rational Emotive Behavior Therapy' (0.8906) |
|
||||
| **Materials Science**<br>`"nanomaterials synthesis"` | **Topic**: Copper-based nanomaterials and applications<br>**Total Score**: 79.3170<br><br>• Lexical: 31.3198<br>• Title KNN: 25.5626<br>• Desc KNN: 12.8334<br>• Key KNN: 23.2389<br><br>**Keywords**:<br>• 'Nanostructures' (0.9296)<br>• 'Nanocrystals' (0.8989) | **Topic**: Nanoparticles: synthesis and applications<br>**Total Score**: 51.4193<br><br>• Lexical: 41.6580<br>• Title KNN: 28.1196<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Nanomaterials' (0.9593)<br>• 'Nanoparticles' (0.9017) |
|
||||
| **Economics & Finance**<br>`"macroeconomic policy"` | **Topic**: Monetary Policy and Economic Impact<br>**Total Score**: 77.2466<br><br>• Lexical: 33.6052<br>• Title KNN: 27.9601<br>• Desc KNN: 12.7554<br>• Key KNN: 23.1466<br><br>**Keywords**:<br>• 'Monetary Policy' (0.9259)<br>• 'Fiscal Policy' (0.8719) | **Topic**: Monetary Policy and Economic Impact<br>**Total Score**: 54.1000<br><br>• Lexical: 33.6052<br>• Title KNN: 27.9601<br>• Desc KNN: 12.7554<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Monetary Policy' (0.9259)<br>• 'Fiscal Policy' (0.8719) |
|
||||
| **Health Professions**<br>`"physical therapy techniques"` | **Topic**: Physical Activity and Health<br>**Total Score**: 63.6719<br><br>• Lexical: 35.4732<br>• Title KNN: 24.8417<br>• Desc KNN: 0.0000<br>• Key KNN: 21.5571<br><br>**Keywords**:<br>• 'Physical Fitness' (0.8623)<br>• 'Exercise' (0.8567) | **Topic**: Physical Education and Training Studies<br>**Total Score**: 41.6865<br><br>• Lexical: 34.0993<br>• Title KNN: 25.9162<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Physical Education' (0.8518)<br>• 'Athletic Training' (0.8386) |
|
||||
| **Physics and Astronomy**<br>`"quantum mechanics"` | **Topic**: Quantum Mechanics and Applications<br>**Total Score**: 100.0179<br><br>• Lexical: 62.6773<br>• Title KNN: 29.4806<br>• Desc KNN: 12.8902<br>• Key KNN: 23.1009<br><br>**Keywords**:<br>• 'Quantum Interpretations' (0.9240)<br>• 'Quantum Measurement' (0.9195) | **Topic**: Quantum Mechanics and Non-Hermitian Physics<br>**Total Score**: 82.1469<br><br>• Lexical: 59.7515<br>• Title KNN: 28.2917<br>• Desc KNN: 0.0000<br>• Key KNN: 24.8390<br><br>**Keywords**:<br>• 'Quantum Mechanics' (0.9936)<br>• 'Non-Hermitian Physics' (0.8265) |
|
||||
| **Chemistry**<br>`"organic synthesis"` | **Topic**: Organic Chemistry Synthesis Methods<br>**Total Score**: 93.3478<br><br>• Lexical: 51.1392<br>• Title KNN: 28.8346<br>• Desc KNN: 12.8016<br>• Key KNN: 21.2545<br><br>**Keywords**:<br>• 'Total Synthesis' (0.8502) | **Topic**: Organic Chemistry Synthesis Methods<br>**Total Score**: 72.0932<br><br>• Lexical: 51.1392<br>• Title KNN: 28.8346<br>• Desc KNN: 12.8016<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Total Synthesis' (0.8502) |
|
||||
| **Mathematics**<br>`"linear algebra"` | **Topic**: Advanced Algebra and Logic<br>**Total Score**: 69.1804<br><br>• Lexical: 21.0841<br>• Title KNN: 26.3365<br>• Desc KNN: 0.0000<br>• Key KNN: 21.7598<br><br>**Keywords**:<br>• 'MV-algebras' (0.8704)<br>• 'Algebraic Semantics' (0.8542) | **Topic**: Matrix Theory and Algorithms<br>**Total Score**: 51.1267<br><br>• Lexical: 42.7259<br>• Title KNN: 0.0000<br>• Desc KNN: 0.0000<br>• Key KNN: 24.3482<br><br>**Keywords**:<br>• 'Numerical Linear Algebra' (0.9739) |
|
||||
| **Neuroscience**<br>`"synaptic plasticity"` | **Topic**: Neuroscience and Neuropharmacology Research<br>**Total Score**: 59.8949<br><br>• Lexical: 34.7332<br>• Title KNN: 0.0000<br>• Desc KNN: 13.1294<br>• Key KNN: 24.0698<br><br>**Keywords**:<br>• 'Synaptic Plasticity' (0.9628)<br>• 'Neuronal Circuits' (0.8298) | **Topic**: Neuroscience and Neuropharmacology Research<br>**Total Score**: 59.8949<br><br>• Lexical: 34.7332<br>• Title KNN: 0.0000<br>• Desc KNN: 13.1294<br>• Key KNN: 24.0698<br><br>**Keywords**:<br>• 'Synaptic Plasticity' (0.9628)<br>• 'Neuronal Circuits' (0.8298) |
|
||||
| **Decision Sciences**<br>`"operations research optimization"` | **Topic**: Operations Management Techniques<br>**Total Score**: 72.2617<br><br>• Lexical: 45.7187<br>• Title KNN: 25.8359<br>• Desc KNN: 0.0000<br>• Key KNN: 20.3829<br><br>**Keywords**:<br>• 'Operations Management' (0.8153) | **Topic**: Management and Optimization Techniques<br>**Total Score**: 67.5272<br><br>• Lexical: 38.2684<br>• Title KNN: 27.0016<br>• Desc KNN: 0.0000<br>• Key KNN: 22.7133<br><br>**Keywords**:<br>• 'Operations Research' (0.9085) |
|
||||
| **Earth Sciences**<br>`"plate tectonics geology"` | **Topic**: Geological and Geochemical Analysis<br>**Total Score**: 81.4082<br><br>• Lexical: 47.1954<br>• Title KNN: 24.9384<br>• Desc KNN: 0.0000<br>• Key KNN: 24.0854<br><br>**Keywords**:<br>• 'Plate Tectonics' (0.9634)<br>• 'Tectonics' (0.9412) | **Topic**: Geological and Geophysical Studies<br>**Total Score**: 76.8806<br><br>• Lexical: 33.5170<br>• Title KNN: 25.9864<br>• Desc KNN: 0.0000<br>• Key KNN: 24.0846<br><br>**Keywords**:<br>• 'Plate Tectonics' (0.9634)<br>• 'Tectonic Model' (0.8970) |
|
||||
| **Immunology & Micro.**<br>`"t cell activation"` | **Topic**: T-cell and B-cell Immunology<br>**Total Score**: 101.7294<br><br>• Lexical: 58.5911<br>• Title KNN: 26.2074<br>• Desc KNN: 12.7561<br>• Key KNN: 22.2172<br><br>**Keywords**:<br>• 'Memory T Cells' (0.8887)<br>• 'TGF-ß' (0.8379) | **Topic**: T-cell and B-cell Immunology<br>**Total Score**: 79.5122<br><br>• Lexical: 58.5911<br>• Title KNN: 26.2074<br>• Desc KNN: 12.7561<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Memory T Cells' (0.8887)<br>• 'TGF-ß' (0.8379) |
|
||||
| **Energy**<br>`"solar cell efficiency"` | **Topic**: solar cell performance optimization<br>**Total Score**: 100.7331<br><br>• Lexical: 69.7479<br>• Title KNN: 28.9188<br>• Desc KNN: 12.4518<br>• Key KNN: 21.6075<br><br>**Keywords**:<br>• 'Energy Conversion Efficiency' (0.8643)<br>• 'Multijunction Solar Cells' (0.8636) | **Topic**: solar cell performance optimization<br>**Total Score**: 79.1256<br><br>• Lexical: 69.7479<br>• Title KNN: 28.9188<br>• Desc KNN: 12.4518<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Energy Conversion Efficiency' (0.8643)<br>• 'Multijunction Solar Cells' (0.8636) |
|
||||
| **Pharmacology & Tox.**<br>`"drug delivery systems"` | **Topic**: Advanced Drug Delivery Systems<br>**Total Score**: 101.0864<br><br>• Lexical: 82.7073<br>• Title KNN: 29.0884<br>• Desc KNN: 0.0000<br>• Key KNN: 23.9235<br><br>**Keywords**:<br>• 'Drug Delivery' (0.9569) | **Topic**: Advanced Drug Delivery Systems<br>**Total Score**: 77.1629<br><br>• Lexical: 82.7073<br>• Title KNN: 29.0884<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• 'Drug Delivery' (0.9569) |
|
||||
| **Nursing**<br>`"patient care management"` | **Topic**: Family and Patient Care in ICU<br>**Total Score**: 81.2835<br><br>• Lexical: 62.5713<br>• Title KNN: 25.2221<br>• Desc KNN: 0.0000<br>• Key KNN: 23.3629<br><br>**Keywords**:<br>• 'Patient-Centered Care' (0.9345)<br>• 'Critical Care' (0.8654) | **Topic**: Health Services Management and Policy<br>**Total Score**: 49.0703<br><br>• Lexical: 44.9180<br>• Title KNN: 0.0000<br>• Desc KNN: 0.0000<br>• Key KNN: 24.1204<br><br>**Keywords**:<br>• 'patient care' (0.9648)<br>• 'hospital management' (0.9044) |
|
||||
| **Chemical Engineering**<br>`"process systems engineering"` | **Topic**: Systems Engineering Methodologies<br>**Total Score**: 69.4196<br><br>• Lexical: 46.7857<br>• Title KNN: 27.1586<br>• Desc KNN: 0.0000<br>• Key KNN: 21.4144<br><br>**Keywords**:<br>• 'Interdisciplinary System Eng.' (0.8566)<br>• 'Model-Based Systems Eng.' (0.8462) | **Topic**: Control Systems in Engineering<br>**Total Score**: 48.0307<br><br>• Lexical: 30.2824<br>• Title KNN: 25.1976<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• _None matched_ |
|
||||
| **Dentistry**<br>`"endodontic treatment procedures"` | **Topic**: Endodontics and Root Canal Treatments<br>**Total Score**: 85.0595<br><br>• Lexical: 33.2248<br>• Title KNN: 27.3373<br>• Desc KNN: 12.9073<br>• Key KNN: 24.7433<br><br>**Keywords**:<br>• 'Endodontic Treatment' (0.9897)<br>• 'Regenerative Endodontics' (0.9185) | **Topic**: Endodontics and Root Canal Treatments<br>**Total Score**: 85.0595<br><br>• Lexical: 33.2248<br>• Title KNN: 27.3373<br>• Desc KNN: 12.9073<br>• Key KNN: 24.7433<br><br>**Keywords**:<br>• 'Endodontic Treatment' (0.9897)<br>• 'Regenerative Endodontics' (0.9185) |
|
||||
| **Veterinary**<br>`"veterinary medicine diagnosis"` | **Topic**: Animal health and immunology<br>**Total Score**: 70.5398<br><br>• Lexical: 36.6445<br>• Title KNN: 24.4738<br>• Desc KNN: 0.0000<br>• Key KNN: 24.6649<br><br>**Keywords**:<br>• 'Veterinary Diagnosis' (0.9866) | **Topic**: Veterinary Medicine and Surgery<br>**Total Score**: 63.5579<br><br>• Lexical: 36.3745<br>• Title KNN: 27.1833<br>• Desc KNN: 0.0000<br>• Key KNN: 0.0000<br><br>**Keywords**:<br>• _None matched_ |
|
||||
+31375
File diff suppressed because it is too large
Load Diff
+28540
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,64 @@
|
||||
# Approach
|
||||
|
||||
**NDCG@10**, **MRR@10**, **Recall@10** :
|
||||
|
||||
- Topic: Document
|
||||
- OpenAlex: "display_name": "Impact of Light on Environment and Health",
|
||||
- Keyword: Query
|
||||
- OpenAlex: "keywords": [
|
||||
"Nighttime Light Data",
|
||||
"Economic Growth",
|
||||
"Light Pollution",
|
||||
"Remote Sensing",
|
||||
"Population Mapping",
|
||||
"Urbanization Dynamics",
|
||||
"Artificial Light",
|
||||
"Satellite Imagery",
|
||||
"Poverty Prediction",
|
||||
"Ecological Impacts" ]
|
||||
|
||||
Each Keyword is searched in the Topic display name Vector space
|
||||
|
||||
# Overall Leaderboard
|
||||
|
||||
> **Note** First round is invalid
|
||||
|
||||
First round (all topics, but included sibling topics messed up metrics)
|
||||
| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Subfield NMI |
|
||||
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| 1 | `intfloat/e5-large-v2` | 1024 | 335.1M | 96.63ms | 5.7 | **0.2304** | 0.5054 | 0.0691 | 0.5917 |
|
||||
| 2 | `BAAI/bge-large-en-v1.5` | 1024 | 335.1M | 96.24ms | 5.8 | **0.2292** | 0.4944 | 0.0691 | 0.5921 |
|
||||
| 3 | `intfloat/multilingual-e5-large` | 1024 | 559.9M | 104.13ms | 4.8 | **0.2131** | 0.4789 | 0.0636 | 0.5900 |
|
||||
| 4 | `google/embeddinggemma-300m` | 768 | 307.6M | 47.11ms | 14.0 | **0.2121** | 0.4479 | 0.0637 | 0.6054 |
|
||||
| 5 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 29.11ms | 16.3 | **0.2100** | 0.4641 | 0.0620 | 0.5919 |
|
||||
| 6 | `intfloat/multilingual-e5-small` | 384 | 117.7M | 12.15ms | 55.3 | **0.2021** | 0.4446 | 0.0594 | 0.5880 |
|
||||
| 7 | `BAAI/bge-m3` | 1024 | 567.8M | 96.92ms | 4.8 | **0.1879** | 0.4219 | 0.0544 | 0.5929 |
|
||||
| 8 | `paraphrase-multilingual-mpnet-base-v2` | 768 | 278.0M | 29.65ms | 17.0 | **0.1792** | 0.3565 | 0.0520 | 0.6010 |
|
||||
| 9 | `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | 384 | 117.7M | 12.12ms | 58.1 | **0.1748** | 0.3494 | 0.0514 | 0.5940 |
|
||||
|
||||
Second adjusted round (500 topics sample size)(seperated clustering into name and description fields)
|
||||
| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |
|
||||
| :--- | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| 1 | `intfloat/e5-large-v2` | 1024 | 335.1M | 101.71ms | 5.6 | **0.4261** | 0.3797 | 0.5758 | 0.5254 | 0.5947 |
|
||||
| 2 | `BAAI/bge-large-en-v1.5` | 1024 | 335.1M | 98.38ms | 5.6 | **0.4084** | 0.3628 | 0.5546 | 0.5591 | 0.5961 |
|
||||
| 3 | `intfloat/multilingual-e5-large` | 1024 | 559.9M | 111.27ms | 4.8 | **0.3956** | 0.3501 | 0.5424 | 0.5171 | 0.5845 |
|
||||
| 4 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 28.86ms | 17.9 | **0.3807** | 0.3357 | 0.5256 | 0.5374 | 0.5851 |
|
||||
| 5 | `google/embeddinggemma-300m` | 768 | 307.6M | 45.55ms | 15.7 | **0.3558** | 0.3121 | 0.4976 | 0.5485 | 0.6148 |
|
||||
| 6 | `intfloat/multilingual-e5-small` | 384 | 117.7M | 11.74ms | 57.6 | **0.3531** | 0.3050 | 0.5078 | 0.5450 | 0.5914 |
|
||||
| 7 | `sentence-transformers/all-MiniLM-L6-v2` | 384 | 22.7M | 7.07ms | 117.0 | **0.3471** | 0.3034 | 0.4882 | 0.5636 | 0.5936 |
|
||||
| 8 | `BAAI/bge-m3` | 1024 | 567.8M | 96.19ms | 4.9 | **0.3221** | 0.2829 | 0.4484 | 0.5246 | 0.5885 |
|
||||
| 9 | `sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | 384 | 117.7M | 12.63ms | 58.0 | **0.2350** | 0.2005 | 0.3468 | 0.5544 | 0.5984 |
|
||||
| 10 | `paraphrase-multilingual-mpnet-base-v2` | 768 | 278.0M | 24.67ms | 22.2 | **0.2347** | 0.1999 | 0.3480 | 0.5638 | 0.6043 |
|
||||
Baseline with all topics for second round:
|
||||
| Rank | Model Name | Vector Dim | Params (M) | Query Latency (ms) | Throughput (docs/s) | NDCG@10 | MRR@10 | Recall@10 | Name NMI | Desc NMI |
|
||||
| 1 | `intfloat/multilingual-e5-base` | 768 | 278.0M | 32.83ms | 16.5 | **0.3751** | 0.3290 | 0.5234 | 0.5374 | 0.5851 |
|
||||
|
||||
## Metric Definitions:
|
||||
|
||||
- **NDCG@10**: Normalized Discounted Cumulative Gain. Measures how well the query maps to the target topic at the top 10 positions.
|
||||
- **MRR@10**: Mean Reciprocal Rank. Looks at the average of `1 / rank` for the first correctly matched topic.
|
||||
- **Recall@10**: Percentage of times the target document (excluding sibling topics) was successfully retrieved in the top 10.
|
||||
- **Name NMI**: Normalized Mutual Information of K-Means clusters of topic display names against ground truth OpenAlex subfields.
|
||||
- **Desc NMI**: Normalized Mutual Information of K-Means clusters of topic descriptions against ground truth OpenAlex subfields.
|
||||
- **Query Latency**: Time to encode a single search keyword.
|
||||
- **Throughput**: Ingestion batch encoding speed.
|
||||
+3
-1
@@ -20,7 +20,9 @@ RUN pip install --root-user-action=ignore --no-cache-dir --disable-pip-version-c
|
||||
"sqlmodel~=0.0.33" \
|
||||
"argon2-cffi~=25.1.0" \
|
||||
"pandas~=2.3.3" \
|
||||
"pypdf==6.14.2"
|
||||
"pypdf==6.14.2"\
|
||||
"docker~=7.1.0" \
|
||||
"croniter~=6.0.0"
|
||||
|
||||
COPY [ "src/main", "/home" ]
|
||||
COPY [ "src/data", "/data" ]
|
||||
|
||||
+10
-1
@@ -6,5 +6,14 @@ RUN mkdir /test && \
|
||||
pip install --root-user-action=ignore --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu && \
|
||||
pip install --root-user-action=ignore --no-cache-dir "sentence-transformers~=5.5.1"
|
||||
|
||||
ARG MODEL_NAME=intfloat/multilingual-e5-base
|
||||
ENV MODEL_NAME=${MODEL_NAME}
|
||||
ENV SENTENCE_TRANSFORMERS_HOME=/models
|
||||
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('intfloat/multilingual-e5-base')"
|
||||
ENV HF_HOME=/models
|
||||
|
||||
RUN python -c "import os, sentence_transformers; sentence_transformers.SentenceTransformer(os.environ['MODEL_NAME'])"
|
||||
|
||||
ENV HF_HUB_OFFLINE=1
|
||||
ENV TRANSFORMERS_OFFLINE=1
|
||||
ENV HF_DATASETS_OFFLINE=1
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ task exportOpenApiSpec(type: Exec) {
|
||||
|
||||
task runServeContainer(type: Exec) {
|
||||
dependsOn createImage
|
||||
commandLine 'docker', 'run', '--rm', '-v', "${projectDir}/src/main:/home", '-v', "${projectDir}/src/data:/data", '-p', '8000:8000', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '-e', "INSE_AUTH_STANDALONE=true", '-e', 'INSE_OPENALEX_WORKS_API_KEY', '--name', "${imageName}-service-serve", '--detach', "${imagePrefix}-service:${imageVersion}", 'run', '--reload', '--reload-dir', './inse'
|
||||
commandLine 'docker', 'run', '--rm', '-v', "${projectDir}/src/main:/home", '-v', "${projectDir}/src/data:/data", '-v', '/var/run/docker.sock:/var/run/docker.sock', '-p', '8000:8000', '-e', "DOCKER_DEFAULT_PLATFORM='${targetPlatform}'", '-e', "INSE_AUTH_STANDALONE=true", '-e', 'INSE_OPENALEX_WORKS_API_KEY', '--name', "${imageName}-service-serve", '--detach', "${imagePrefix}-service:${imageVersion}", 'run', '--reload', '--reload-dir', './inse'
|
||||
}
|
||||
|
||||
task stopServeContainer(type: Exec) {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
seconds = int(sys.argv[1]) if len(sys.argv) > 1 else 20
|
||||
logger.info(f"Demo job started, running for {seconds} seconds.")
|
||||
for elapsed in range(1, seconds + 1):
|
||||
time.sleep(1)
|
||||
if elapsed % 5 == 0:
|
||||
logger.info(f"Progress: {elapsed}/{seconds} seconds.")
|
||||
logger.info("Demo job finished successfully.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,21 @@
|
||||
# Background-jobs worker image. Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/Dockerfile -t docker.nes.uni-due.de/inse/background-jobs:latest .
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Headless Chrome for the bund foerderportal crawler (Selenium).
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends chromium chromium-driver \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ENV CHROME_BIN=/usr/bin/chromium \
|
||||
CHROMEDRIVER_PATH=/usr/bin/chromedriver
|
||||
|
||||
# Install dependencies
|
||||
COPY service/scripts/jobs-image/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the job code.
|
||||
COPY background-jobs/app/ ./
|
||||
|
||||
COPY service/scripts/ ./service/scripts/
|
||||
@@ -0,0 +1,137 @@
|
||||
# Job Images
|
||||
|
||||
## Anlegen und Bearbeiten eines Jobs (UI)
|
||||
|
||||
Ein Job im Frontend ist nur eine **Definition** in der Datenbank, die auf ein
|
||||
Image zeigt. Der eigentliche Job-Code steckt im Image. Reihenfolge daher immer:
|
||||
**erst das Image nach Nexus pushen, dann den Job in der UI anlegen.**
|
||||
|
||||
### 1. Image bauen und pushen
|
||||
|
||||
Aus dem Repo-Root (Build-Kontext = Root), Beispiel News-Crawler (jedes
|
||||
Dockerfile nennt in seinem Kopf den eigenen Build-Befehl):
|
||||
|
||||
```bash
|
||||
docker build -f service/scripts/jobs-image/news-crawl/Dockerfile \
|
||||
-t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
|
||||
docker push docker.nes.uni-due.de/inse/jobs/news-crawl:latest
|
||||
```
|
||||
|
||||
Login zu Nexus vorher, falls nötig: `docker login docker.nes.uni-due.de`
|
||||
(Zugangsdaten wie in der Backend-`.env`, `BACKGROUND_JOBS_REGISTRY_*`).
|
||||
|
||||
Erst wenn Push erfolgreich war, taucht das Image in der Image-Auswahl der UI auf.
|
||||
|
||||
### 2. Job anlegen
|
||||
|
||||
1. Als **Superadmin** anmelden und die Seite **Jobs** öffnen.
|
||||
2. Oben rechts prüfen, dass die Karten **Docker-Daemon** und **Nexus-Registry**
|
||||
grün („Erreichbar") sind. Ist Nexus rot, bleibt die Image-Auswahl leer —
|
||||
dann Registry/`.env` prüfen, bevor es weitergeht.
|
||||
3. Auf **Neuer Job** klicken. Im Dialog:
|
||||
- **Name** – Pflichtfeld, muss eindeutig sein (sonst 409).
|
||||
- **Beschreibung**, **Ziel-Index** – optional, nur zur Anzeige.
|
||||
- **Image** – Pflichtfeld. In das Feld tippen und aus der
|
||||
Nexus-Autovervollständigung den passenden Tag wählen, z. B.
|
||||
`docker.nes.uni-due.de/inse/jobs/news-crawl:latest`. Leer = Fehler.
|
||||
- **Befehl** – optional. Wird an den `ENTRYPOINT` des Images **angehängt**
|
||||
(z. B. `--max-items 50`). Leer lassen, wenn die Image-Defaults reichen.
|
||||
- **Umgebungsvariablen** – optional, `KEY=VALUE` pro Zeile. Bei
|
||||
Nexus-Images werden die INSE-Zugangsdaten (Elasticsearch/LLM) ohnehin
|
||||
automatisch ergänzt; hier nur Zusätzliches/Overrides.
|
||||
4. **Speichern**. Der Job erscheint in der Tabelle, zunächst ohne Zeitplan
|
||||
(= nur manuell).
|
||||
|
||||
### 3. Job ausführen und beobachten
|
||||
|
||||
- **▶ Jetzt ausführen** startet einen Lauf. Das Backend pullt das Image und
|
||||
startet einen Container namens `<job-slug>-run-<id>`.
|
||||
- **⏹ Stoppen** bricht einen laufenden Lauf ab.
|
||||
- **🗎 Logs** zeigt die Container-Logs (live während des Laufs, danach die in der
|
||||
DB gespeicherten letzten Zeilen) sowie Dauer bzw. „läuft seit".
|
||||
- Schlägt der Pull fehl (Image gelöscht/nicht gepusht), wird der Lauf
|
||||
**fehlgeschlagen** mit `failed to pull image …` im Log — dann Image neu pushen.
|
||||
|
||||
### 4. Job bearbeiten
|
||||
|
||||
- In der **Name**-Spalte erscheint beim Hovern ein **Stift**-Symbol → öffnet den
|
||||
Bearbeiten-Dialog. Dort lassen sich **Name, Beschreibung, Ziel-Index, Image,
|
||||
Befehl und Env** ändern (gleiche Validierung wie beim Anlegen).
|
||||
- Das **Kalender**-Symbol in der Aktionsspalte öffnet den **Zeitplan**-Dialog:
|
||||
Cron-Ausdruck setzen (5 Felder) und Job aktiv/inaktiv schalten. Ein Zeitplan
|
||||
macht aus einem manuellen Job einen automatisch laufenden.
|
||||
- Bearbeiten ist gesperrt, solange ein Lauf des Jobs läuft.
|
||||
|
||||
### 5. Job löschen
|
||||
|
||||
Das **Papierkorb**-Symbol entfernt die Job-Definition. Das Image in Nexus bleibt
|
||||
davon unberührt (siehe unten zum Image-Löschen).
|
||||
|
||||
One Docker image per job script. Each image installs only its own dependencies
|
||||
and bakes its script as the `ENTRYPOINT`. Most jobs then run with no `command`
|
||||
override — the job definition just points `image` at the matching tag. Where
|
||||
several jobs share one script (the demos), they point at the same image and
|
||||
differ only by their `command`.
|
||||
|
||||
## Images
|
||||
|
||||
| Job (DB name) | Image | Entrypoint | Notes |
|
||||
| ----------------------- | --------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
||||
| News-Crawler | `jobs/news-crawl` | `run_pipeline.py` | scrapy<2.13, Twisted<24.7; uploads to `NEWS_UPLOAD_INDEX` |
|
||||
| Bund-Crawler | `jobs/bund-crawl` | `gpc.data.py --max-rows 200` | headless Chrome; uploads to `BUND_UPLOAD_INDEX`; capped, full export is ~300k rows |
|
||||
| Project-Topic-Mapping | `jobs/project-topics` | `map_project_topics --output-index docker-job_test` | reads projects_bund_v1; needs host backend |
|
||||
| News-Topic-Mapping | `jobs/news-topics` | `map_news_topics --output-index aktuell_openalex_topics` | bundles both topic_mapper pkgs; needs host backend |
|
||||
| News-Keyword-Extraction | `jobs/news-keywords` | `sync.py --update-keywords --target-index docker-job_test` | ES + LLM creds; writes to test index |
|
||||
| Demo-Job A / B / C | `jobs/demo` | `demo.py` (seconds via command: `20` / `25` / `30`) | no dependencies; one image, three job rows |
|
||||
|
||||
Each image is its own repository under the `jobs/` path namespace, prefixed
|
||||
`docker.nes.uni-due.de/inse/` (e.g. `docker.nes.uni-due.de/inse/jobs/news-crawl:latest`).
|
||||
The three demo jobs share the single `jobs/demo` repository.
|
||||
|
||||
The entrypoints carry no run limits: anything set in the job's `command` field is
|
||||
appended to the entrypoint, so limits (`--max-items`, `--max-docs`, `--limit`) are
|
||||
passed per run from the UI. The one exception is the Bund-Crawler, which keeps a
|
||||
`--max-rows` cap in the image because its full export is ~300k rows.
|
||||
|
||||
## Build
|
||||
|
||||
From the repo root (the build context must be the repo root so the Dockerfiles
|
||||
can copy `service/scripts/…` and `background-jobs/app/`):
|
||||
|
||||
```bash
|
||||
docker build -f service/scripts/jobs-image/news-crawl/Dockerfile \
|
||||
-t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
|
||||
docker push docker.nes.uni-due.de/inse/jobs/news-crawl:latest
|
||||
```
|
||||
|
||||
Each image's Dockerfile header lists its own build command.
|
||||
|
||||
## Running locally without pushing
|
||||
|
||||
Before each run the backend pulls the job's image from the registry when it is a
|
||||
registry image (host `docker.nes.uni-due.de`). **There is no fallback to a local
|
||||
copy:** if the pull fails, the run is marked _failed_ and the error is written to
|
||||
the run log — a stale local image is never used silently. To run a locally built
|
||||
image without pushing it, skip the pull attempt entirely:
|
||||
|
||||
```bash
|
||||
export BACKGROUND_JOBS_PULL_BEFORE_RUN=false
|
||||
```
|
||||
|
||||
With the pull disabled the backend uses whatever image with that tag exists on
|
||||
the Docker host, so `docker build -t docker.nes.uni-due.de/inse/jobs/<name>:latest .`
|
||||
is enough for local runs.
|
||||
|
||||
## Env vars
|
||||
|
||||
Because every tag lives under the `docker.nes.uni-due.de` registry host, the
|
||||
backend treats these as registry images and injects the INSE Elasticsearch / LLM
|
||||
credentials automatically (plus any per-job `env`).
|
||||
|
||||
Most images write to the test index by default: the crawlers upload into the
|
||||
index named by `NEWS_UPLOAD_INDEX` / `BUND_UPLOAD_INDEX` (both baked to
|
||||
`docker-job_test` in their Dockerfile), and the project mapper and the keyword
|
||||
extraction write to `docker-job_test` via `--output-index` / `--target-index`.
|
||||
The exception is News-Topic-Mapping, which writes to `aktuell_openalex_topics`.
|
||||
To not contact Elasticsearch at all, pass `--skip-upload` (crawlers) or
|
||||
`--dry-run` (mappers) through the job's command field.
|
||||
@@ -0,0 +1,28 @@
|
||||
# Bund-Crawler (foerderportal export via headless Chrome). Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/bund-crawl/Dockerfile -t docker.nes.uni-due.de/inse/jobs/bund-crawl:latest .
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
# Upload the crawled projects into the shared test index (gpc.data.py reads
|
||||
# ELASTICSEARCH_INSE_* creds + BUND_UPLOAD_INDEX from the env).
|
||||
ENV BUND_UPLOAD_INDEX=docker-job_test
|
||||
|
||||
# Headless Chrome for the Selenium crawler.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends chromium chromium-driver \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
ENV CHROME_BIN=/usr/bin/chromium \
|
||||
CHROMEDRIVER_PATH=/usr/bin/chromedriver
|
||||
|
||||
COPY service/scripts/jobs-image/bund-crawl/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY service/scripts/projects/bund/ ./service/scripts/projects/bund/
|
||||
|
||||
WORKDIR /app/service/scripts/projects/bund
|
||||
|
||||
# Capped on purpose: the full export is ~300k rows, so an uncapped run would
|
||||
# write that entire volume into BUND_UPLOAD_INDEX. Raise or drop the cap by
|
||||
# passing --max-rows N through the job's command field.
|
||||
ENTRYPOINT ["python", "gpc.data.py", "--max-rows", "200"]
|
||||
@@ -0,0 +1,3 @@
|
||||
selenium~=4.20
|
||||
pandas~=2.2
|
||||
requests~=2.32
|
||||
@@ -0,0 +1,21 @@
|
||||
# News-Crawler (UDE 'aktuell'). Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/news-crawl/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-crawl:latest .
|
||||
#
|
||||
# scrapy<2.13 + Twisted<24.7 are load-bearing: the spiders use the removed
|
||||
# start_requests() hook, and newer versions silently crawl 0 items.
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
# Upload the crawled articles into the shared test index (see upload_aktuell.py,
|
||||
# which reads ELASTICSEARCH_INSE_* creds + NEWS_UPLOAD_INDEX from the env).
|
||||
ENV NEWS_UPLOAD_INDEX=docker-job_test
|
||||
|
||||
COPY service/scripts/jobs-image/news-crawl/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY service/scripts/news/ude/ ./service/scripts/news/ude/
|
||||
|
||||
# Uncapped: crawls every article and uploads to NEWS_UPLOAD_INDEX. Limit a run by
|
||||
# passing --max-items N through the job's command field.
|
||||
ENTRYPOINT ["python", "service/scripts/news/ude/run_pipeline.py"]
|
||||
@@ -0,0 +1,3 @@
|
||||
scrapy>=2.11,<2.13
|
||||
Twisted>=22.10,<24.7
|
||||
requests~=2.32
|
||||
@@ -0,0 +1,21 @@
|
||||
# News keyword extraction (LLM keyword extraction into docker-job_test).
|
||||
# Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/news-keywords/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-keywords:latest .
|
||||
#
|
||||
# Needs Elasticsearch + LLM creds (injected as env vars by the backend for
|
||||
# registry images). Calls the LLM once per entry.
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
COPY service/scripts/jobs-image/news-keywords/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY background-jobs/app/ ./
|
||||
|
||||
# Writes into docker-job_test, leaving production aktuell_postproc untouched.
|
||||
# A non-postproc target re-extracts entries that already have keywords (real
|
||||
# content) and updates them in place, keyed on news_id (re-runs overwrite, no
|
||||
# duplicates). Cap a run by appending --limit N via the job's command field.
|
||||
ENTRYPOINT ["python", "sync.py", "--update-keywords", "--target-index", "docker-job_test"]
|
||||
@@ -0,0 +1,3 @@
|
||||
requests~=2.32
|
||||
openai~=2.41
|
||||
python-dotenv~=1.0
|
||||
@@ -0,0 +1,24 @@
|
||||
# News-Topic-Mapping (news keywords -> OpenAlex topics). Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/news-topics/Dockerfile -t docker.nes.uni-due.de/inse/jobs/news-topics:latest .
|
||||
#
|
||||
# map_news_topics imports map_project_topics as its "base", so both topic_mapper
|
||||
# packages must be present. Needs a reachable backend and Elasticsearch creds
|
||||
# (injected as env vars by the backend for registry images).
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
COPY service/scripts/jobs-image/news-topics/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY service/scripts/news/topic_mapper/ ./service/scripts/news/topic_mapper/
|
||||
COPY service/scripts/projects/topic_mapper/ ./service/scripts/projects/topic_mapper/
|
||||
|
||||
# Writes topic mappings into aktuell_openalex_topics. Only maps (article, keyword)
|
||||
# pairs not already present in the output index; pass --overwrite to re-map all.
|
||||
# Uncapped: limit a run by passing --max-docs N through the job's command field.
|
||||
# host.docker.internal reaches the host backend for vector search.
|
||||
ENTRYPOINT ["python", "-m", "service.scripts.news.topic_mapper.map_news_topics", \
|
||||
"--output-index", "aktuell_openalex_topics", \
|
||||
"--api-base-url", "http://host.docker.internal:8000"]
|
||||
@@ -0,0 +1,2 @@
|
||||
httpx>=0.27
|
||||
python-dotenv>=1.0
|
||||
@@ -0,0 +1,25 @@
|
||||
# Projekt-Topic-Mapping (bund keywords -> OpenAlex topics). Build from the repo root:
|
||||
# docker build -f service/scripts/jobs-image/project-topics/Dockerfile -t docker.nes.uni-due.de/inse/jobs/project-topics:latest .
|
||||
#
|
||||
# Needs a reachable backend (vector search) and Elasticsearch creds. The creds
|
||||
# arrive as env vars injected by the backend for registry images.
|
||||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
COPY service/scripts/jobs-image/project-topics/requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY service/scripts/projects/topic_mapper/ ./service/scripts/projects/topic_mapper/
|
||||
|
||||
# Writes topic mappings into docker-job_test. Only maps (project, keyword) pairs
|
||||
# not already present in the output index, so an interrupted run can be resumed.
|
||||
# There is no overwrite flag: to re-map all, point --output-index at a fresh index.
|
||||
# Uncapped: limit a run by passing --max-docs N through the job's command field.
|
||||
# host.docker.internal reaches the host backend for vector search.
|
||||
ENTRYPOINT ["python", "-m", "service.scripts.projects.topic_mapper.map_project_topics", \
|
||||
"--source-index", "projects_bund_v1", \
|
||||
"--text-field", "Leistungsplansystematik_fullname", \
|
||||
"--output-index", "docker-job_test", \
|
||||
"--api-base-url", "http://host.docker.internal:8000"]
|
||||
@@ -0,0 +1,2 @@
|
||||
httpx>=0.27
|
||||
python-dotenv>=1.0
|
||||
@@ -0,0 +1,9 @@
|
||||
requests~=2.32
|
||||
openai~=2.41
|
||||
python-dotenv~=1.0
|
||||
scrapy>=2.11,<2.13
|
||||
Twisted>=22.10,<24.7
|
||||
httpx~=0.27
|
||||
selenium~=4.20
|
||||
pandas~=2.2
|
||||
elasticsearch>=7.17,<8
|
||||
@@ -0,0 +1,80 @@
|
||||
# News → OpenAlex topic mapping
|
||||
|
||||
Batch counterpart to `news.logic._match_topics_for_keywords`, which matches an
|
||||
article's keywords on every detail request without persisting the result. This
|
||||
script maps the LLM-extracted `keywords` of the enriched articles in
|
||||
`aktuell_postproc` to OpenAlex topics via the backend's
|
||||
`/api/topics/vector-search` endpoint, and persists one document per
|
||||
(article, keyword) pair into an output index with the explicit mapping from
|
||||
`news_mapping.py`:
|
||||
|
||||
```json
|
||||
{
|
||||
"news_id": "...",
|
||||
"keyword": "<one of the article's keywords>",
|
||||
"source_index": "aktuell_postproc",
|
||||
"source_field": "keywords",
|
||||
"topic_matches": [
|
||||
{
|
||||
"rank": 1,
|
||||
"topic_id": "...",
|
||||
"topic_display_name": "...",
|
||||
"subfield": "...",
|
||||
"field": "...",
|
||||
"domain": "...",
|
||||
"match_score": null
|
||||
}
|
||||
],
|
||||
"match_method": "sentence_transformer",
|
||||
"model_name": "...",
|
||||
"built_at": "..."
|
||||
}
|
||||
```
|
||||
|
||||
`match_score` is `null` because the endpoint does not expose Elasticsearch
|
||||
scores; `rank` preserves the search result order.
|
||||
|
||||
This script only ever **reads** `aktuell_postproc` and writes into the separate test index. Caching the topics back into `aktuell_postproc` is done by the news detail endpoint (`news/logic.py`), not here.
|
||||
|
||||
Keywords are **not** extracted here. `background-jobs/app/sync.py` (job `news`)
|
||||
writes them into `aktuell_postproc` first, the same way the bund projects
|
||||
already carry their keyword field before `map_project_topics.py` runs.
|
||||
|
||||
The Elasticsearch plumbing (point-in-time scan, batched topic search, bulk
|
||||
indexing, retries) is imported from
|
||||
`service/scripts/projects/topic_mapper/map_project_topics.py` rather than
|
||||
duplicated — that directory must stay next to this one.
|
||||
|
||||
## Setup
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
Credentials are read from `service/src/main/inse/.env` by default (override
|
||||
with `--env-file`), and the backend must be running (e.g. `./gradlew serve`)
|
||||
because the topic search goes through its API.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
python map_news_topics.py --output-index docker-job_test
|
||||
```
|
||||
|
||||
Test run against a few articles without writing anything:
|
||||
|
||||
```bash
|
||||
python map_news_topics.py --output-index docker-job_test --dry-run --max-docs 50
|
||||
```
|
||||
|
||||
Runs are resumable: (article, keyword) pairs already present in the output
|
||||
index are skipped, and each unique keyword is searched only once across all
|
||||
articles that use it. Pairs whose search failed are left unwritten so the next
|
||||
run retries them.
|
||||
|
||||
## As a background job
|
||||
|
||||
Packaged as the `news-topics` registry image (see
|
||||
`service/scripts/jobs-image/news-topics/Dockerfile`), writing into
|
||||
`aktuell_openalex_topics`. The run is uncapped; limit a run by passing
|
||||
`--max-docs N` through the job's command field.
|
||||
@@ -0,0 +1,329 @@
|
||||
|
||||
"""
|
||||
map_news_topics.py — Map news keywords to OpenAlex topics.
|
||||
|
||||
Batch counterpart to news.logic._match_topics_for_keywords. This script streams
|
||||
the enriched articles from aktuell_postproc, reads their LLM-extracted
|
||||
'keywords', matches every unique keyword against OpenAlex topics and persists
|
||||
one document per (article, keyword) pair into a separate output index:
|
||||
|
||||
{news_id, keyword, source_index, source_field, topic_matches[],
|
||||
match_method, model_name, built_at}
|
||||
|
||||
The source index is only ever read. Writing the topics back into
|
||||
aktuell_postproc is the job of the news detail endpoint, not of this script.
|
||||
|
||||
Keywords are not extracted here — sync.py (job 'news') writes them into
|
||||
aktuell_postproc, the same way the bund projects already carry their keyword
|
||||
field before map_project_topics.py runs.
|
||||
|
||||
The run is resumable: (article, keyword) pairs already present in the output
|
||||
index are skipped, so an interrupted run can simply be restarted. Each unique
|
||||
keyword is searched only once, across all articles that use it.
|
||||
|
||||
Usage:
|
||||
python map_news_topics.py --output-index docker-job_test
|
||||
|
||||
Requires ELASTICSEARCH_INSE_URL/ELASTICSEARCH_INSE_API_KEY in the environment
|
||||
or in the service .env, plus a running backend serving
|
||||
/api/topics/vector-search (e.g. ./gradlew serve).
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import hashlib
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "projects" / "topic_mapper"))
|
||||
import map_project_topics as base
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
from news_mapping import NEWS_TOPICS_MAPPING
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
SOURCE_INDEX = "aktuell_postproc"
|
||||
KEYWORD_FIELD = "keywords"
|
||||
NEWS_ID_FIELD = "news_id"
|
||||
|
||||
|
||||
async def ensure_index(index: str, cluster: str) -> None:
|
||||
"""Creates the output index with the explicit mapping if it does not exist."""
|
||||
url, headers = base.es_headers(cluster)
|
||||
client = base.get_http_client()
|
||||
|
||||
response = await client.head(f"{url}/{index}", headers=headers)
|
||||
if response.status_code == 200:
|
||||
logger.info("Output index '%s' already exists.", index)
|
||||
return
|
||||
|
||||
response = await client.put(
|
||||
f"{url}/{index}", json={"mappings": NEWS_TOPICS_MAPPING}, headers=headers
|
||||
)
|
||||
response.raise_for_status()
|
||||
logger.info("Created output index '%s' with explicit mapping.", index)
|
||||
|
||||
|
||||
def output_doc_id(news_id: str, keyword: str) -> str:
|
||||
"""Stable id per (article, keyword) pair.
|
||||
|
||||
Derived from news_id rather than the aktuell_postproc document id, so a
|
||||
reindex of the postproc index does not duplicate the mappings.
|
||||
"""
|
||||
digest = hashlib.sha1(keyword.encode("utf-8")).hexdigest()[:12]
|
||||
return f"{news_id}::{digest}"
|
||||
|
||||
|
||||
async def fetch_source_entries(cluster: str, max_docs: int | None) -> dict[str, tuple[str, str]]:
|
||||
"""Returns output_doc_id -> (news_id, keyword) for every enriched article."""
|
||||
entries: dict[str, tuple[str, str]] = {}
|
||||
total = 0
|
||||
docs_with_keywords = 0
|
||||
|
||||
async for hit in base.scan(
|
||||
index=SOURCE_INDEX,
|
||||
cluster=cluster,
|
||||
query={"exists": {"field": KEYWORD_FIELD}},
|
||||
source=[NEWS_ID_FIELD, KEYWORD_FIELD],
|
||||
):
|
||||
total += 1
|
||||
doc_source = hit.get("_source", {})
|
||||
keywords = base.extract_text_values(doc_source, KEYWORD_FIELD)
|
||||
news_id = doc_source.get(NEWS_ID_FIELD)
|
||||
if keywords and news_id:
|
||||
docs_with_keywords += 1
|
||||
for keyword in keywords:
|
||||
entries[output_doc_id(news_id, keyword)] = (news_id, keyword)
|
||||
if total % 50000 == 0:
|
||||
logger.info("Scanned %d source documents...", total)
|
||||
if max_docs and total >= max_docs:
|
||||
logger.info("Stopping scan at --max-docs=%d.", max_docs)
|
||||
break
|
||||
|
||||
logger.info(
|
||||
"Scanned %d documents from '%s', %d with non-empty '%s' (%d article/keyword pairs).",
|
||||
total,
|
||||
SOURCE_INDEX,
|
||||
docs_with_keywords,
|
||||
KEYWORD_FIELD,
|
||||
len(entries),
|
||||
)
|
||||
return entries
|
||||
|
||||
|
||||
async def run(args: argparse.Namespace) -> None:
|
||||
built_at = datetime.now(UTC).isoformat()
|
||||
model_name = os.getenv("SENTENCE_TRANSFORMERS_MODEL_NAME")
|
||||
|
||||
await base.check_backend(args.api_base_url)
|
||||
|
||||
if not args.dry_run:
|
||||
await ensure_index(index=args.output_index, cluster=args.output_cluster)
|
||||
|
||||
entries = await fetch_source_entries(cluster=args.source_cluster, max_docs=args.max_docs)
|
||||
if not entries:
|
||||
logger.warning("No keywords in '%s' — run the 'news' job first.", SOURCE_INDEX)
|
||||
return
|
||||
|
||||
if args.overwrite:
|
||||
logger.info("--overwrite: re-mapping every pair, existing documents are replaced.")
|
||||
covered = set()
|
||||
else:
|
||||
covered = await base.fetch_covered_doc_ids(
|
||||
index=args.output_index, cluster=args.output_cluster
|
||||
)
|
||||
pending = {doc_id: entry for doc_id, entry in entries.items() if doc_id not in covered}
|
||||
logger.info(
|
||||
"Coverage: %d/%d pairs already in '%s', %d still to be processed.",
|
||||
len(entries) - len(pending),
|
||||
len(entries),
|
||||
args.output_index,
|
||||
len(pending),
|
||||
)
|
||||
if not pending:
|
||||
logger.info("Nothing left to process.")
|
||||
return
|
||||
|
||||
docs_by_keyword: dict[str, list[tuple[str, str]]] = {}
|
||||
for doc_id, (news_id, keyword) in pending.items():
|
||||
docs_by_keyword.setdefault(keyword, []).append((doc_id, news_id))
|
||||
unique_keywords = sorted(docs_by_keyword)
|
||||
logger.info(
|
||||
"%d unique keywords cover the %d pending pairs.", len(unique_keywords), len(pending)
|
||||
)
|
||||
|
||||
backup_docs: list[dict] = []
|
||||
docs_done = 0
|
||||
keywords_done = 0
|
||||
|
||||
for start in range(0, len(unique_keywords), args.text_batch_size):
|
||||
chunk = unique_keywords[start : start + args.text_batch_size]
|
||||
matches_by_keyword = await base.match_keywords(
|
||||
chunk,
|
||||
api_base_url=args.api_base_url,
|
||||
top_k=args.top_k,
|
||||
search_type=args.search_type,
|
||||
)
|
||||
|
||||
documents = []
|
||||
for keyword in chunk:
|
||||
if keyword not in matches_by_keyword:
|
||||
continue # search failed — left for the next run
|
||||
for doc_id, news_id in docs_by_keyword[keyword]:
|
||||
documents.append(
|
||||
(
|
||||
doc_id,
|
||||
{
|
||||
"news_id": news_id,
|
||||
"keyword": keyword,
|
||||
"source_index": SOURCE_INDEX,
|
||||
"source_field": KEYWORD_FIELD,
|
||||
"topic_matches": matches_by_keyword[keyword],
|
||||
"match_method": base.MATCH_METHOD,
|
||||
"model_name": model_name,
|
||||
"built_at": built_at,
|
||||
},
|
||||
)
|
||||
)
|
||||
|
||||
if documents and not args.dry_run:
|
||||
await base.bulk_index(
|
||||
index=args.output_index, cluster=args.output_cluster, documents=documents
|
||||
)
|
||||
if args.output:
|
||||
backup_docs.extend(doc for _, doc in documents)
|
||||
|
||||
keywords_done += len(chunk)
|
||||
docs_done += len(documents)
|
||||
logger.info(
|
||||
"Progress: %d/%d keywords, %d/%d pending pairs indexed into '%s'.",
|
||||
keywords_done,
|
||||
len(unique_keywords),
|
||||
docs_done,
|
||||
len(pending),
|
||||
args.output_index,
|
||||
)
|
||||
|
||||
skipped = len(pending) - docs_done
|
||||
if skipped:
|
||||
logger.warning(
|
||||
"%d pairs were NOT indexed due to failed searches — rerun the script to retry.",
|
||||
skipped,
|
||||
)
|
||||
|
||||
if args.output:
|
||||
output_path = Path(args.output)
|
||||
output_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
output_path.write_text(
|
||||
json.dumps(backup_docs, indent=2, ensure_ascii=False), encoding="utf-8"
|
||||
)
|
||||
logger.info("Wrote local JSON backup (%d documents) to %s", len(backup_docs), output_path)
|
||||
|
||||
logger.info(
|
||||
"Done. %d documents indexed this run, %d covered in total.",
|
||||
docs_done,
|
||||
len(covered) + docs_done,
|
||||
)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Map the keywords of enriched news articles to OpenAlex topics.",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
epilog=(
|
||||
"Examples:\n"
|
||||
" python map_news_topics.py --output-index docker-job_test\n"
|
||||
" python map_news_topics.py --output-index docker-job_test --dry-run --max-docs 50"
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output-index", required=True, help="Index to persist the topic mappings into"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--source-cluster",
|
||||
default="inse",
|
||||
choices=["inse", "nes"],
|
||||
help=f"Cluster holding '{SOURCE_INDEX}' (default: inse)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output-cluster",
|
||||
default="inse",
|
||||
choices=["inse", "nes"],
|
||||
help="Cluster of the output index (default: inse)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--api-base-url",
|
||||
default=base.DEFAULT_API_BASE_URL,
|
||||
help=f"Base URL of the running backend (default: {base.DEFAULT_API_BASE_URL})",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--top-k",
|
||||
type=int,
|
||||
default=1,
|
||||
help=(
|
||||
"Number of topic matches per keyword (default: 1, matching the single "
|
||||
"match the news detail endpoint shows). Only truncates the result list; "
|
||||
"ranking is unaffected."
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--search-type",
|
||||
default="hybrid",
|
||||
choices=["hybrid", "semantic"],
|
||||
help="Topic search type, mirrors vector_search_topics (default: hybrid)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--text-batch-size",
|
||||
type=int,
|
||||
default=base.TEXT_BATCH_SIZE,
|
||||
help=f"Unique keywords searched per chunk (default: {base.TEXT_BATCH_SIZE})",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--env-file",
|
||||
default=str(base.DEFAULT_ENV_FILE),
|
||||
help=f"Path to a .env with Elasticsearch credentials (default: {base.DEFAULT_ENV_FILE})",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-docs",
|
||||
type=int,
|
||||
default=None,
|
||||
help=f"Stop scanning '{SOURCE_INDEX}' after N documents (for test runs)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--output",
|
||||
default=None,
|
||||
help="Optional path for a local JSON backup of the documents built this run",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--overwrite",
|
||||
action="store_true",
|
||||
help=(
|
||||
"Re-map pairs that are already in the output index instead of skipping "
|
||||
"them; document ids are deterministic, so they are replaced in place "
|
||||
"(use after changing --top-k or --search-type)"
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dry-run",
|
||||
action="store_true",
|
||||
help="Build the mapping without creating/writing the output index",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.env_file and Path(args.env_file).exists():
|
||||
load_dotenv(dotenv_path=args.env_file)
|
||||
|
||||
asyncio.run(run(args))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,30 @@
|
||||
"""Elasticsearch mapping for news -> OpenAlex topic mapping indices.
|
||||
|
||||
One document per (news article, keyword) pair. Articles in aktuell_postproc
|
||||
carry up to KEYWORD_LIMIT keywords each, so an article normally yields
|
||||
several documents.
|
||||
"""
|
||||
|
||||
NEWS_TOPICS_MAPPING = {
|
||||
"properties": {
|
||||
"news_id": {"type": "keyword"},
|
||||
"keyword": {"type": "text", "fields": {"keyword": {"type": "keyword"}}},
|
||||
"source_index": {"type": "keyword"},
|
||||
"source_field": {"type": "keyword"},
|
||||
"topic_matches": {
|
||||
"type": "nested",
|
||||
"properties": {
|
||||
"rank": {"type": "integer"},
|
||||
"topic_id": {"type": "keyword"},
|
||||
"topic_display_name": {"type": "keyword"},
|
||||
"subfield": {"type": "keyword"},
|
||||
"field": {"type": "keyword"},
|
||||
"domain": {"type": "keyword"},
|
||||
"match_score": {"type": "float"},
|
||||
},
|
||||
},
|
||||
"match_method": {"type": "keyword"},
|
||||
"model_name": {"type": "keyword"},
|
||||
"built_at": {"type": "date"},
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
httpx>=0.27
|
||||
python-dotenv>=1.0
|
||||
@@ -3,10 +3,8 @@
|
||||
# See documentation in:
|
||||
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
|
||||
|
||||
from scrapy import signals
|
||||
|
||||
# useful for handling different item types with a single interface
|
||||
from itemadapter import is_item, ItemAdapter
|
||||
from scrapy import signals
|
||||
|
||||
|
||||
class AktuellSpiderMiddleware:
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
|
||||
# useful for handling different item types with a single interface
|
||||
from itemadapter import ItemAdapter
|
||||
|
||||
|
||||
class AktuellPipeline:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import scrapy
|
||||
|
||||
|
||||
class LinksCrawler(scrapy.Spider):
|
||||
name = "aktuell-links"
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import scrapy
|
||||
import json
|
||||
from scrapy.linkextractors import LinkExtractor
|
||||
import os
|
||||
|
||||
import scrapy
|
||||
from scrapy.linkextractors import LinkExtractor
|
||||
|
||||
|
||||
class MetaDataCrawler(scrapy.Spider):
|
||||
name = "aktuell-metadata"
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.common.exceptions import NoSuchElementException
|
||||
from selenium.webdriver.firefox.options import Options
|
||||
from random import randint
|
||||
import time
|
||||
import sys
|
||||
import time
|
||||
from random import randint
|
||||
|
||||
from elasticsearch import Elasticsearch
|
||||
from selenium import webdriver
|
||||
from selenium.common.exceptions import NoSuchElementException
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.firefox.options import Options
|
||||
|
||||
es = Elasticsearch()
|
||||
|
||||
@@ -32,7 +33,7 @@ def getLinks(link, driver):
|
||||
elem = driver.find_element(By.XPATH, "/html/body/main/div[2]/div/div/div/div/div/div/div[" + str(counter) + "]/b").text
|
||||
if elem == "Zurück zum Gesamtüberblick":
|
||||
break
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
break
|
||||
|
||||
# get date
|
||||
@@ -45,7 +46,7 @@ def getLinks(link, driver):
|
||||
link = ""
|
||||
try:
|
||||
link = driver.find_element(By.XPATH, "/html/body/main/div[2]/div/div/div/div/div/div/div[" + str(counter) + "]/b/a").get_attribute('href')
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
continue
|
||||
|
||||
links.append(link)
|
||||
@@ -67,17 +68,17 @@ def getData(driver, link, date, date_year, date_num):
|
||||
subtitle = ""
|
||||
try:
|
||||
subtitle = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/hgroup/h3").text
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
maintitle = ""
|
||||
try:
|
||||
maintitle = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/hgroup/h2").text
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
redaktion = ""
|
||||
try:
|
||||
redaktion = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/p[2]").text
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
author = ""
|
||||
if redaktion != "":
|
||||
@@ -86,7 +87,7 @@ def getData(driver, link, date, date_year, date_num):
|
||||
main_content = ""
|
||||
try:
|
||||
main_content = driver.find_element(By.XPATH, "/html/body/main/div[3]/div/div/div/div[1]/div[1]/div/p[1]").text
|
||||
except NoSuchElementException as nsee:
|
||||
except NoSuchElementException:
|
||||
pass
|
||||
|
||||
full_content = main_content
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
import subprocess
|
||||
import sys
|
||||
import argparse
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def run_command(command, cwd=None):
|
||||
"""Run a shell command and exit if it fails."""
|
||||
result = subprocess.run(command,
|
||||
@@ -12,11 +18,27 @@ def run_command(command, cwd=None):
|
||||
#capture_output=True, #supresses output from subprocess
|
||||
text=True)
|
||||
if result.returncode != 0:
|
||||
print(f"Command failed: {command}")
|
||||
print("Error output:\n", result.stderr)
|
||||
logger.error(f"Command failed: {command}")
|
||||
logger.error(f"Error output:\n{result.stderr}")
|
||||
sys.exit(result.returncode)
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Crawl the UDE 'aktuell' news pages and upload the articles to Elasticsearch."
|
||||
)
|
||||
parser.add_argument(
|
||||
"--skip-upload",
|
||||
action="store_true",
|
||||
help="Only crawl into out/*.json and never connect to Elasticsearch",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-items",
|
||||
type=int,
|
||||
default=None,
|
||||
help="Stop each spider after N items (for short test runs)",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
start_time = time.time()
|
||||
|
||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
@@ -31,19 +53,27 @@ if __name__ == "__main__":
|
||||
output_file_meta = os.path.join(out_dir, "meta.json")
|
||||
|
||||
|
||||
print("Running Scrapy link crawler...")
|
||||
run_command(f"scrapy crawl aktuell-links -O \"{output_file_links}\"", cwd=crawler_dir)
|
||||
limit = f" -s CLOSESPIDER_ITEMCOUNT={args.max_items}" if args.max_items else ""
|
||||
|
||||
print("Running Scrapy meta crawler...")
|
||||
run_command(f"scrapy crawl aktuell-metadata -O \"{output_file_meta}\"", cwd=crawler_dir)
|
||||
logger.info("Running Scrapy link crawler...")
|
||||
run_command(f"scrapy crawl aktuell-links -O \"{output_file_links}\"{limit}", cwd=crawler_dir)
|
||||
|
||||
print("Running upload script")
|
||||
run_command(f"{sys.executable} upload_aktuell.py {output_file_meta}", cwd=base_dir)
|
||||
logger.info("Running Scrapy meta crawler...")
|
||||
run_command(f"scrapy crawl aktuell-metadata -O \"{output_file_meta}\"{limit}", cwd=crawler_dir)
|
||||
|
||||
if args.skip_upload:
|
||||
logger.info("Skipping upload (--skip-upload): Elasticsearch was not contacted.")
|
||||
else:
|
||||
logger.info("Running upload script")
|
||||
run_command(f"{sys.executable} upload_aktuell.py {output_file_meta}", cwd=base_dir)
|
||||
|
||||
end_time = time.time()
|
||||
runtime_seconds = end_time - start_time
|
||||
runtime_hours = runtime_seconds / 3600
|
||||
|
||||
print(f"Runtime: {runtime_hours:.2f} hours")
|
||||
print("Finished crawling and uploading UDE news articles.")
|
||||
runtime_hours = runtime_seconds / 3600
|
||||
|
||||
logger.info(f"Runtime: {runtime_hours:.2f} hours")
|
||||
if args.skip_upload:
|
||||
logger.info("Finished crawling UDE news articles (no upload).")
|
||||
else:
|
||||
logger.info("Finished crawling and uploading UDE news articles.")
|
||||
|
||||
|
||||
@@ -1,231 +1,39 @@
|
||||
from elasticsearch import Elasticsearch
|
||||
import sys
|
||||
import os
|
||||
import json
|
||||
from datetime import datetime
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from urllib.parse import quote
|
||||
|
||||
# elasticsearch-connection should be adjusted
|
||||
# uni-server
|
||||
es = Elasticsearch()
|
||||
import requests
|
||||
|
||||
index_name = "aktuell-test" #test indices to make sure everything works before uploading to the real index, ps. you lack rights to push to the real index, please contact the admin if you want to push to the real index
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# The INSE key is index-scoped and can't hit cluster endpoints (e.g. GET /), so
|
||||
# the elasticsearch client's ping/product-check would 403. We talk to the index
|
||||
# endpoint directly over HTTP with the ApiKey header, like the other jobs do.
|
||||
ES_URL = os.getenv("ELASTICSEARCH_INSE_URL", "http://localhost:9200").rstrip("/")
|
||||
ES_API_KEY = os.getenv("ELASTICSEARCH_INSE_API_KEY")
|
||||
# Default is a test index — you lack rights to push to the production index;
|
||||
# contact the ES admin for that. Override via NEWS_UPLOAD_INDEX.
|
||||
# The target index is never created here: an index that doesn't exist yet gets
|
||||
# ES dynamic mapping, without the searchabilityAnalyzer the search relies on.
|
||||
# Create it with the proper mapping before pointing a run at a new index.
|
||||
INDEX_NAME = os.getenv("NEWS_UPLOAD_INDEX", "aktuell-test")
|
||||
|
||||
# checks if elastic is up and creates the index if not already done
|
||||
def check_elastic():
|
||||
if not es.ping():
|
||||
sys.exit("No connection to Elasticsearch")
|
||||
_session = requests.Session()
|
||||
_session.headers.update({"Content-Type": "application/json"})
|
||||
if ES_API_KEY:
|
||||
_session.headers.update({"Authorization": f"ApiKey {ES_API_KEY}"})
|
||||
|
||||
if not es.indices.exists(index=index_name):
|
||||
settings = {
|
||||
"analysis": {
|
||||
"analyzer": {
|
||||
"searchabilityAnalyzer": {
|
||||
"type": "custom",
|
||||
"tokenizer": "standard",
|
||||
"filter": [
|
||||
"lowercase",
|
||||
"asciifolding"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
mappings = {
|
||||
"properties": {
|
||||
"subtitle": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"maintitle": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"author": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"date": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"date_year": {
|
||||
"type": "long",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"date_full": {
|
||||
"type": "long",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"intro_content": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"main_content": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"further_content": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"redaktion": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"full_content": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 256
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags_nested": {
|
||||
"type": "nested",
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 250
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
#"links": {
|
||||
# "type": "text",
|
||||
# "analyzer": "searchabilityAnalyzer",
|
||||
# "search_analyzer": "searchabilityAnalyzer",
|
||||
# "fields": {
|
||||
# "keyword": {
|
||||
# "type": "keyword",
|
||||
# "ignore_above": 256
|
||||
# }
|
||||
# }
|
||||
#},
|
||||
"links_nested": {
|
||||
"type": "nested",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 250
|
||||
}
|
||||
}
|
||||
},
|
||||
"text": {
|
||||
"type": "text",
|
||||
"analyzer": "searchabilityAnalyzer",
|
||||
"search_analyzer": "searchabilityAnalyzer",
|
||||
"fields": {
|
||||
"keyword": {
|
||||
"type": "keyword",
|
||||
"ignore_above": 250
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
es.indices.create(index=index_name, mappings=mappings, settings=settings)
|
||||
|
||||
def upload(path):
|
||||
with open(path, "r", encoding='utf-8') as json_file:
|
||||
|
||||
with open(path, "r", encoding="utf-8") as json_file:
|
||||
try:
|
||||
json_loaded = json.load(json_file)
|
||||
|
||||
uploaded = 0
|
||||
for news in json_loaded:
|
||||
time.sleep(10 / 1000)
|
||||
id = (str(news["date"]) + "_" + str(news["author"]) + "_" + str(news["maintitle"])).replace(" ", "").replace("/", "").replace("ö", "").replace("ä", "").replace("ü", "").replace("Ö", "").replace("Ä", "").replace("Ü", "").replace(".", "").replace("?", "")
|
||||
@@ -241,7 +49,7 @@ def upload(path):
|
||||
for p in range(len(tags)):
|
||||
tags_nested.append({"tag": tags[p]})
|
||||
|
||||
dict = {
|
||||
document = {
|
||||
"subtitle": news["subtitle"],
|
||||
"maintitle": news["maintitle"],
|
||||
"tags": news["tags"],
|
||||
@@ -255,21 +63,25 @@ def upload(path):
|
||||
"tags_nested": tags_nested,
|
||||
"date_year": news["date_year"],
|
||||
"date_full": news["date_full"],
|
||||
#"links": news["links"],
|
||||
"links_nested": links_nested,
|
||||
"url": news["url"]
|
||||
}
|
||||
|
||||
es.index(index=index_name, id=id, document=dict)
|
||||
response = _session.put(
|
||||
f"{ES_URL}/{INDEX_NAME}/_doc/{quote(id, safe='')}",
|
||||
json=document,
|
||||
)
|
||||
response.raise_for_status()
|
||||
uploaded += 1
|
||||
|
||||
logger.info(f"Uploaded {uploaded} news articles to '{INDEX_NAME}'.")
|
||||
|
||||
except Exception as e:
|
||||
print("--- Failed to upload news.")
|
||||
print(e)
|
||||
logger.error(f"Failed to upload news: {e}")
|
||||
|
||||
|
||||
# main - entry point
|
||||
if __name__ == '__main__':
|
||||
check_elastic()
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
sys.exit("No path given.")
|
||||
upload(sys.argv[1])
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
build_patents_openalex_keywords.py — Build IPC/CPC → OpenAlex topic/keyword matches.
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# Author→patent final architecture
|
||||
|
||||
Runtime path:
|
||||
|
||||
```text
|
||||
Patent Search → Name Matching → Family Expansion → IPC/CPC Enrichment
|
||||
→ Production Filter → Semantic Topic Fallback V1
|
||||
→ Final Identity Guard (ambiguous authors only) → API
|
||||
```
|
||||
|
||||
Flags (demo enabled): `ENABLE_SEMANTIC_TOPIC_FALLBACK`, `ENABLE_AMBIGUOUS_AUTHOR_IDENTITY_GUARD`.
|
||||
|
||||
## Runtime
|
||||
|
||||
| File | Why |
|
||||
| --- | --- |
|
||||
| `service/src/main/inse/patents/authors/logic.py` | Wires the final pipeline only. |
|
||||
| `service/src/main/inse/config.py` | The two flags above. |
|
||||
| `topic_filter.py` | Production topic filter. |
|
||||
| `semantic_topic_fallback.py` | Combined production + semantic V1. |
|
||||
| `semantic_topic_fallback_v1_frozen.py` | Frozen semantic decision rules. |
|
||||
| `final_ambiguous_author_identity_guard.py` | Frozen identity guard. Runtime entry. |
|
||||
| `ambiguous_author_identity_guard.py` | Helper library imported by the final guard. Not called from `logic.py`. |
|
||||
| `ambiguous_author_identity_guard_v2.py` | Helper library imported by the final guard. Not called from `logic.py`. |
|
||||
| `identity.py`, `name_matching.py`, `name_variants.py` | Name matching and ambiguity. |
|
||||
| `ipc_openalex_mapping.py`, `search_pagination.py`, `search_queries.py`, `service.py` | Search and mapping. |
|
||||
|
||||
## Tests
|
||||
|
||||
| File | Why |
|
||||
| --- | --- |
|
||||
| `test_final_ambiguous_author_identity_guard.py` | Frozen final-guard contract. |
|
||||
| `test_semantic_topic_fallback.py` | Frozen semantic V1 contract. |
|
||||
| `test_identity.py` | Name/ambiguity helpers. |
|
||||
| `test_ipc_openalex_mapping.py` | IPC mapping. |
|
||||
| `test_orthosis_family_identity.py` | Family identity. |
|
||||
| `test_search_pagination.py` | Search pagination. |
|
||||
| `service/scripts/patents/test_evaluate_author_patent_search.py` | Join helpers for original evaluate. |
|
||||
|
||||
## Evaluation inputs
|
||||
|
||||
| Path | Why |
|
||||
| --- | --- |
|
||||
| `experiment_1/`, `experiment_2/`, `experiment_3/` | Original gold, pools, and reports. |
|
||||
| `aggregate_field_analysis/field_error_analysis/` | Frozen sample diagnosis (`field_error_analysis.json`). |
|
||||
| `experiments/semantic_topic_fallback_v1/candidate_decisions.json` | Frozen semantic decisions for the 131-candidate sample. |
|
||||
| `diagnosis_ui_mismatches/{author_id}.json` plus `diagnosis.json` | Live dump inputs for the final evaluation. |
|
||||
|
||||
## Evaluation outputs and runners
|
||||
|
||||
| Path | Why |
|
||||
| --- | --- |
|
||||
| `experiments/semantic_topic_fallback_v1/` | Semantic V1 standalone metrics. |
|
||||
| `experiments/production_with_semantic_fallback_v1/` | Combined semantic metrics. |
|
||||
| `experiments/final_ambiguous_author_identity_guard/` | Frozen final-guard evaluation and presentation. |
|
||||
| `run_experiment_final_ambiguous_author_identity_guard.py` | Reproducible final evaluation (historical V1/V2 numbers are constants). |
|
||||
| `experiment_semantic_topic_fallback_v1.py` | Reproducible semantic V1 evaluation. |
|
||||
| `evaluate_author_patent_search.py` | Original experiment evaluate. |
|
||||
|
||||
Historical Guard V1/V2 comparison numbers live in the final evaluation markdown/CSVs as frozen constants. The old V1/V2 experiment folders and apply paths are not kept.
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
# Evaluation
|
||||
|
||||
## Fixed Sample
|
||||
|
||||
```text
|
||||
18 Autoren
|
||||
131 Kandidaten
|
||||
89 positiv
|
||||
42 negativ
|
||||
```
|
||||
|
||||
## Production
|
||||
|
||||
```text
|
||||
P=0.941
|
||||
R=0.360
|
||||
F1=0.520
|
||||
```
|
||||
|
||||
## Field Error Analysis
|
||||
|
||||
Siehe `field_error_analysis/`.
|
||||
|
||||
## Semantic Topic Fallback
|
||||
|
||||
```text
|
||||
P=0.912
|
||||
R=0.584
|
||||
F1=0.712
|
||||
```
|
||||
|
||||
## Production + Semantic Fallback
|
||||
|
||||
```text
|
||||
P=0.923
|
||||
R=0.674
|
||||
F1=0.779
|
||||
```
|
||||
|
||||
Family-Level:
|
||||
|
||||
```text
|
||||
P=0.907
|
||||
R=0.731
|
||||
F1=0.810
|
||||
```
|
||||
|
||||
## Final Identity Guard
|
||||
|
||||
Siehe `experiments/final_ambiguous_author_identity_guard/`.
|
||||
|
||||
Candidate:
|
||||
|
||||
```text
|
||||
P=0.966
|
||||
R=0.640
|
||||
F1=0.770
|
||||
```
|
||||
|
||||
Family-Level:
|
||||
|
||||
```text
|
||||
P=0.959
|
||||
R=0.701
|
||||
F1=0.810
|
||||
```
|
||||
|
||||
## Status
|
||||
|
||||
```text
|
||||
final / frozen after evaluation
|
||||
demo flags enabled
|
||||
independent validation remains desirable
|
||||
```
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
# Final Ambiguous Author Identity Guard
|
||||
|
||||
Status: **FINAL / FROZEN AFTER EVALUATION**
|
||||
|
||||
Variant: `production_with_semantic_fallback_v1_and_final_identity_guard`
|
||||
|
||||
Feature flag: `ENABLE_AMBIGUOUS_AUTHOR_IDENTITY_GUARD` (demo **enabled**).
|
||||
|
||||
Semantic V1 decision rules were not changed. Production topic-filter internals
|
||||
were not changed. This evaluation was run once; rules were not retuned afterwards.
|
||||
|
||||
## Runtime pipeline
|
||||
|
||||
```text
|
||||
Production KEEP → KEEP
|
||||
|
||||
Production REJECT → Semantic V1
|
||||
Semantic REJECT → REJECT
|
||||
Semantic KEEP
|
||||
unique author → KEEP
|
||||
ambiguous author → robust identity evidence → KEEP, else REJECT
|
||||
```
|
||||
|
||||
## Coauthor rule (frozen before evaluation)
|
||||
|
||||
```text
|
||||
Full-name OA coauthor alone is STRONG: no
|
||||
Context required: yes
|
||||
|
||||
Variant A: >= 2 independently confirmed full-name coauthors
|
||||
Variant B: 1 confirmed coauthor + robust institution
|
||||
Variant C: 1 confirmed coauthor + identity family anchor
|
||||
Variant D: >= 3 shared works, >= 2 distinct years,
|
||||
year window ±8 around the patent year when known,
|
||||
and shared-work institution overlap with assignee or last-known
|
||||
```
|
||||
|
||||
## Candidate metrics
|
||||
|
||||
| Variante | TP | FP | FN | TN | P | R | F1 |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| Production | 32 | 2 | 57 | 40 | 0.941 | 0.360 | 0.520 |
|
||||
| Semantic V1 | 60 | 5 | 29 | 37 | 0.923 | 0.674 | 0.779 |
|
||||
| Guard V1 | 52 | 2 | 37 | 40 | 0.963 | 0.584 | 0.727 |
|
||||
| Guard V2 | 60 | 2 | 29 | 40 | 0.968 | 0.674 | 0.795 |
|
||||
| FINAL | 57 | 2 | 32 | 40 | 0.966 | 0.640 | 0.770 |
|
||||
|
||||
## Family metrics
|
||||
|
||||
| Variante | TP | FP | FN | TN | P | R | F1 |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| Production | 30 | 2 | 37 | 33 | 0.938 | 0.448 | 0.606 |
|
||||
| Semantic V1 | 49 | 5 | 18 | 30 | 0.907 | 0.731 | 0.810 |
|
||||
| Guard V1 | 43 | 2 | 24 | 33 | 0.956 | 0.642 | 0.768 |
|
||||
| Guard V2 | 49 | 2 | 18 | 33 | 0.961 | 0.731 | 0.831 |
|
||||
| FINAL | 47 | 2 | 20 | 33 | 0.959 | 0.701 | 0.810 |
|
||||
|
||||
Unique-name behaviour unchanged: True
|
||||
|
||||
FINAL is more conservative than Guard V2 by design: three gold TPs that V2
|
||||
kept on a single full-name OpenAlex coauthor without extra context are now
|
||||
`identity_reject:coauthor_without_context` (Berroth / Weigel). FP stays 2.
|
||||
No rule was changed after this run.
|
||||
|
||||
## Live cases
|
||||
|
||||
| author | semantic_v1 | guard_v1 | guard_v2 | final |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| Thomas Kaiser A5111380960 | 149 | 22 | 25 | 25 |
|
||||
| Thomas Kaiser A5071644998 | 43 | 3 | 4 | 4 |
|
||||
| Dirk Schadendorf | 6 | 5 | 6 | 6 |
|
||||
| Christian Weber | 13 | 9 | 13 | 11 |
|
||||
| Xiaohong Chen | 31 | 8 | 10 | 8 |
|
||||
| Richard Smith | 19 | 2 | 2 | 2 |
|
||||
|
||||
Live reconstruction follows the Guard V2 dump replay (same patent_map_key
|
||||
behaviour). Published Guard V1/V2 columns are taken from the frozen experiment
|
||||
CSVs; `final` is this run.
|
||||
|
||||
Interpretation (no retuning):
|
||||
|
||||
- Schadendorf stays at 6 (DKFZ case kept via cluster/institution evidence,
|
||||
not a name-only coauthor hit).
|
||||
- Xiaohong Chen returns to 8 (production only): the two V2 coauthor-name
|
||||
additions are gone.
|
||||
- Christian Weber 13 → 11: two coauthor-without-context additions dropped.
|
||||
- Kaiser A5111380960 stays at 25 because three dump rows share a production
|
||||
map key; Production KEEP is never dropped.
|
||||
- Kaiser A5071644998 stays at 4, same as V2, under this dump replay.
|
||||
|
||||
## Semantic-addition reasons (ambiguous authors)
|
||||
|
||||
```text
|
||||
{
|
||||
"identity_reject:name_only": 1,
|
||||
"identity_reject:semantic_only": 2,
|
||||
"identity_keep:multiple_confirmed_coauthors": 17,
|
||||
"identity_keep:coauthor_plus_institution": 1,
|
||||
"identity_reject:coauthor_without_context": 3
|
||||
}
|
||||
```
|
||||
|
||||
## Checks
|
||||
|
||||
```text
|
||||
city-only Lakeside Robotics vs Lakeside University: False (city_only)
|
||||
generic-token Medical Research: False (generic_token)
|
||||
legal-form / country suffix Northwind: True
|
||||
hardcoding audit clean: True
|
||||
Semantic V1 frozen file present: True
|
||||
Gold in runtime: no
|
||||
```
|
||||
|
||||
## Performance
|
||||
|
||||
```text
|
||||
additional_queries: 65
|
||||
cache_hits: 0
|
||||
shared_works_queries: 17
|
||||
coauthor_loads: 24
|
||||
alias_loads: 24
|
||||
wall_clock_seconds: 278.4
|
||||
```
|
||||
|
||||
See `performance.json`.
|
||||
|
||||
## Limitation
|
||||
|
||||
OpenAlex author profiles themselves may contain merge/disambiguation errors.
|
||||
Independent validation remains desirable.
|
||||
|
||||
## Wording
|
||||
|
||||
Die finale Lösung trennt thematische Relevanz von Personenidentität und
|
||||
reduziert dadurch Fehlzuordnungen bei mehrdeutigen Namen deutlich.
|
||||
|
||||
Nicht behauptet: 100 % korrekte Autorenzuordnung, Homonyme vollständig gelöst.
|
||||
|
||||
## Verdict
|
||||
|
||||
```text
|
||||
FINAL_IDENTITY_GUARD_ACCEPTED
|
||||
```
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
# Autor→Patent: finale Disambiguierung
|
||||
|
||||
## Problem
|
||||
|
||||
Strict Topic-ID Matching hat eine hohe Precision, aber einen niedrigen Recall.
|
||||
|
||||
## Semantic Lösung
|
||||
|
||||
Ein Semantic Fallback erhöht den Recall, indem fachlich ähnliche Patente
|
||||
wieder aufgenommen werden, auch ohne exakte Topic-ID.
|
||||
|
||||
## Neues Problem
|
||||
|
||||
Bei häufigen Namen können Homonyme fachlich ähnlich wirken. Semantic Matching
|
||||
prüft Themenähnlichkeit, nicht Personenidentität.
|
||||
|
||||
## Finale Lösung
|
||||
|
||||
Semantic prüft Themenähnlichkeit.
|
||||
Der Identity Guard prüft Personenidentität — nur bei mehrdeutigen Namen und
|
||||
nur für Semantic-Additions. Production KEEP bleibt erhalten.
|
||||
|
||||
## Identity Evidence
|
||||
|
||||
- Institution (ID / ROR / robuster Alias, nicht nur Orts- oder Generictoken)
|
||||
- Personal Identity (spezifischer Name, vom OpenAlex-Profil gestützt)
|
||||
- Patent Family (nur von nicht-semantischer Identity Evidence)
|
||||
- Coauthor plus zusätzlicher Kontext (mehrere Coauthors, Institution oder
|
||||
wiederholte gemeinsame Works)
|
||||
|
||||
Ein bloßer OpenAlex-Coauthor-Name ist allein nicht stark genug.
|
||||
|
||||
## Ergebnis
|
||||
|
||||
Candidate FINAL: TP=57 FP=2 FN=32 TN=40
|
||||
P=0.966 R=0.640 F1=0.770
|
||||
|
||||
Family FINAL: TP=47 FP=2 FN=20 TN=33
|
||||
P=0.959 R=0.701 F1=0.810
|
||||
|
||||
Die finale Lösung trennt thematische Relevanz von Personenidentität und
|
||||
reduziert dadurch Fehlzuordnungen bei mehrdeutigen Namen deutlich.
|
||||
|
||||
## Limitation
|
||||
|
||||
OpenAlex kann selbst gemischte Author-Profile enthalten.
|
||||
Independent validation remains desirable.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"variant": "production_with_semantic_fallback_v1_and_final_identity_guard",
|
||||
"status": "FINAL / FROZEN AFTER EVALUATION",
|
||||
"created_utc": "20260824T232810Z",
|
||||
"enable_semantic_topic_fallback": true,
|
||||
"enable_ambiguous_author_identity_guard": true,
|
||||
"is_final_identity_guard_enabled": true,
|
||||
"final_source": "C:\\Users\\yvan\\Documents\\AIIS Patente Final\\smartguide\\service\\src\\main\\inse\\patents\\authors\\final_ambiguous_author_identity_guard.py",
|
||||
"diagnosis_sha256": "bff41149298eff42acde2ce3867a541ee64bd2620268e1f593f3a80a2f0cb538",
|
||||
"semantic_decisions_sha256": "1cc3adac579f00cfb12ad3fe8f4294da8812cef1de8ee1ccabf809c2e108c9db",
|
||||
"verdict": "FINAL_IDENTITY_GUARD_ACCEPTED"
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
variant,tp,fp,fn,tn,precision,recall,f1
|
||||
production,30,2,37,33,0.9375,0.44776119402985076,0.6060606060606061
|
||||
production_with_semantic_fallback_v1,49,5,18,30,0.9074074074074074,0.7313432835820896,0.8099173553719008
|
||||
identity_guard_v1,43,2,24,33,0.9555555555555556,0.6417910447761194,0.7678571428571429
|
||||
identity_guard_v2,49,2,18,33,0.9607843137254902,0.7313432835820896,0.8305084745762712
|
||||
final_identity_guard,47,2,20,33,0.9591836734693877,0.7014925373134329,0.810344827586207
|
||||
|
+132
@@ -0,0 +1,132 @@
|
||||
author_id,author_name,candidate_key,patent_id,source,title,gold,evaluation_field,patent_family_key,author_ambiguous,name_match_type,production_decision,production_reason,semantic_decision,semantic_reason,identity_level,institution_evidence,institution_reason,personal_identity_evidence,coauthor_candidates,confirmed_coauthors,coauthor_context,family_evidence,final_decision,final_reason,temporal_affiliation_status,extra_unattested_given_names,openalex_full_name_count,openalex_coauthor_count
|
||||
A5073666637,Martin Wahl,A5073666637|EPO:01100334.0|EP1130735|20070103|01100334.0,EP1130735,EPO,Circuit arrangement for regulating the transmission power of a battery operated radio device,False,Biology / Biotechnology,EPO:01100334.0,True,full,REJECT,,REJECT,,NONE,False,,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|EPO:01100334.0|EP1130735|20040512|01100334.0,EP1130735,EPO,Circuit arrangement for regulating the transmission power of a battery operated radio device,False,Biology / Biotechnology,EPO:01100334.0,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|EPO:00938548.5|EP1195001|20020410|00938548.5,EP1195001,EPO,METHOD AND DEVICE FOR CORRECTING A CORRUPTED USEFUL SIGNAL,False,Biology / Biotechnology,EPO:00938548.5,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""GRETZER, Ulrich"", ""SCHÖBEL, Ralf""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|EPO:01100334.0|EP1130735|20010905|01100334.0,EP1130735,EPO,Circuit arrangement for regulating the transmission power of a battery operated radio device,False,Biology / Biotechnology,EPO:01100334.0,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|USPTO:15944388|US12150539|20241126|15944388,US12150539,USPTO,Single-bag pack for everyday carry and for travel,False,Biology / Biotechnology,USPTO:15944388,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,NONE,False,no_specific_overlap,False,"[""Charles S Mellen"", ""Charles J Clifford"", ""Lawrence J Lein""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:name_only,unavailable,"[""demian""]",5,194
|
||||
A5073666637,Martin Wahl,A5073666637|USPTO:17494625|US11607029|20230321|17494625,US11607029,USPTO,Luggage systems,False,Biology / Biotechnology,USPTO:17494625,True,initial,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""David S. Logan""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|USPTO:16877824|US11253048|20220222|16877824,US11253048,USPTO,Luggage systems,False,Biology / Biotechnology,USPTO:16877824,True,initial,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""David S. Logan""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|USPTO:16102579|US10694834|20200630|16102579,US10694834,USPTO,Luggage systems,False,Biology / Biotechnology,USPTO:16102579,True,initial,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""David S. Logan""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,194
|
||||
A5073666637,Martin Wahl,A5073666637|USPTO:29516236|USD0775825|20170110|29516236,USD0775825,USPTO,Travel bag,False,Biology / Biotechnology,USPTO:29516236,True,full,REJECT,,REJECT,,NONE,False,,False,"[""Alfred Chehebar""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,"[""demian""]",5,194
|
||||
A5086393240,Clemens Aigner,A5086393240|EPO:04106072.4|EP1569483|20060705|04106072.4,EP1569483,EPO,Method and apparatus for determining the position of a terminal in a cellular mobile network,False,Medicine / Health Sciences,EPO:04106072.4,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Böhm, Peter"", ""Otto, Manfred""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|EPO:04106072.4|EP1569483|20050831|04106072.4,EP1569483,EPO,Method and apparatus for determining the position of a terminal in a cellular mobile network,False,Medicine / Health Sciences,EPO:04106072.4,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Böhm, Peter"", ""Otto, Manfred""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|EPO:04000738.7|EP1555845|20050720|04000738.7,EP1555845,EPO,Method for location determination of subscriber stations of a radio communications system,False,Medicine / Health Sciences,EPO:04000738.7,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Böhm, Peter"", ""Otto, Manfred""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|USPTO:18799079|US12552311|20260217|18799079,US12552311,USPTO,Method for resolution-optimized control of lighting module for motor vehicle light,False,Medicine / Health Sciences,USPTO:18799079,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Erik Haas""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|USPTO:18397838|US12115902|20241015|18397838,US12115902,USPTO,Method for resolution-optimized control of a motor vehicle light module,False,Medicine / Health Sciences,USPTO:18397838,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,NONE,False,generic_token,False,"[""Stefan Miedler"", ""Erik Haas""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:semantic_only,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|USPTO:18397583|US12044378|20240723|18397583,US12044378,USPTO,Method for operation-optimized control of a deflection unit,False,Medicine / Health Sciences,USPTO:18397583,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Erik Haas"", ""Stefan Miedler""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5086393240,Clemens Aigner,A5086393240|USPTO:18397347|US12031691|20240709|18397347,US12031691,USPTO,Light module for motor vehicle light and method for operating such light module,False,Medicine / Health Sciences,USPTO:18397347,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Erik Haas"", ""Stefan Miedler"", ""Jeong Jiyoung"", ""Hyung Joo Kang"", ""Sungdu Kwon""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,326
|
||||
A5023752156,Albert Sickmann,A5023752156|EPO:16727311.9|EP3295177|20181226|16727311.9,EP3295177,EPO,METHOD FOR IDENTIFYING MARKER PROTEINS FOR DIAGNOSIS AND RISK STRATIFICATION OF BLOOD COAGULATION DISORDERS,True,Other,EPO:16727311.9,True,full,REJECT,,REJECT,,NONE,False,,False,"[""BECK, Florian"", ""ZAHEDI, René""]","[""BECK, Florian"", ""ZAHEDI, René""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|EPO:16727311.9|EP3295177|20180321|16727311.9,EP3295177,EPO,METHOD FOR IDENTIFYING MARKER PROTEINS FOR THE DIAGNOSIS AND RISK STRATIFICATION OF BLOOD COAGULATION DISORDERS,True,Other,EPO:16727311.9,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""BECK, Florian"", ""ZAHEDI, René""]","[""BECK, Florian"", ""ZAHEDI, René""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|EPO:15166935.5|EP3091359|20161109|15166935.5,EP3091359,EPO,METHOD FOR IDENTIFYING MARKER PROTEINS FOR DIAGNOSIS AND RISK STRATIFICATION OF BLOOD COAGULATION DISORDERS,True,Other,EPO:15166935.5,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""Zahedi, René"", ""Beck, Florian""]","[""Zahedi, René"", ""Beck, Florian""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|EPO:15180931.6|EP2990787|20170517|15180931.6,EP2990787,EPO,METHOD FOR MEASURING THROMBOCYTE FUNCTION,True,Other,EPO:15180931.6,True,full,REJECT,,REJECT,,NONE,False,,False,"[""West, Jonathan"", ""Janasek, Dirk""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",True,REJECT,not_in_production_or_semantic,unavailable,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|EPO:15180931.6|EP2990787|20160302|15180931.6,EP2990787,EPO,METHOD FOR MEASURING THROMBOCYTE FUNCTION,True,Other,EPO:15180931.6,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""West, Jonathan"", ""Janasek, Dirk""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|USPTO:15572391|US10948496|20210316|15572391,US10948496,USPTO,Method for identifying marker proteins for the diagnosis and risk stratification of blood coagulation disorders,True,Other,USPTO:15572391,True,full,REJECT,,REJECT,,NONE,True,last_known,False,"[""Florian Beck"", ""Rene Zahedi""]","[""Florian Beck"", ""Rene Zahedi""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],7,385
|
||||
A5023752156,Albert Sickmann,A5023752156|USPTO:14835834|US09778248|20171003|14835834,US09778248,USPTO,Method for measurement of thrombocyte function,True,Other,USPTO:14835834,True,full,REJECT,,REJECT,,NONE,False,city_only,False,"[""Jonathan West"", ""Dirk Janasek""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],7,385
|
||||
A5037443412,Krishna Niyogi,A5037443412|EPO:17729973.2|EP3464601|20190410|17729973.2,EP3464601,EPO,TRANSGENIC PLANTS WITH INCREASED PHOTOSYNTHESIS EFFICIENCY AND GROWTH,True,Physics,EPO:17729973.2,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""LONG, Stephen, P."", ""KROMDIJK, Johannes"", ""GLOWACKA, Katarzyna"", ""LEONELLI, Laurie"", ""GABILLY, Stephane, T.""]","[""LONG, Stephen, P."", ""KROMDIJK, Johannes"", ""GABILLY, Stephane, T.""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:18057190|US12529064|20260120|18057190,US12529064,USPTO,Transgenic plants with increased photosynthesis efficiency and growth,True,Physics,USPTO:18057190,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Stephen P. Long"", ""Johannes Kromdijk"", ""Katarzyna Glowacka"", ""Laurie Beth Leonelli"", ""Stephane T. Gabilly""]","[""Stephen P. Long"", ""Johannes Kromdijk"", ""Stephane T. Gabilly""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:16808881|US12054727|20240806|16808881,US12054727,USPTO,Plants with increased water use efficiency,True,Physics,USPTO:16808881,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Stephen P. Long"", ""Katarzyna Glowacka"", ""Johannes Kromdijk"", ""Laurie Beth Leonelli""]","[""Stephen P. Long"", ""Johannes Kromdijk""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:16304633|US11572569|20230207|16304633,US11572569,USPTO,Transgenic plants with increased photosynthesis efficiency and growth,True,Physics,USPTO:16304633,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Stephen P. Long"", ""Johannes Kromdijk"", ""Katarzyna Glowacka"", ""Laurie Leonelli"", ""Stephane T. Gabilly""]","[""Stephen P. Long"", ""Johannes Kromdijk"", ""Stephane T. Gabilly""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:15922763|US11124819|20210921|15922763,US11124819,USPTO,Genes involved in astaxanthin biosynthesis,True,Physics,USPTO:15922763,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Melissa S. Roth"", ""Sean D. Gallaher"", ""Sabeeha Merchant""]","[""Melissa S. Roth"", ""Sean D. Gallaher"", ""Sabeeha Merchant""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:15230332|US10480003|20191119|15230332,US10480003,USPTO,Constructs and systems and methods for engineering a CO2 fixing photorespiratory by-pass pathway,True,Physics,USPTO:15230332,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Cheryl A. Kerfeld"", ""Patrick Shih"", ""Jan Zarzycki""]","[""Cheryl A. Kerfeld"", ""Patrick Shih"", ""Jan Zarzycki""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5037443412,Krishna Niyogi,A5037443412|USPTO:15625798|US10336989|20190702|15625798,US10336989,USPTO,,True,Physics,USPTO:15625798,True,initial,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,no_specific_overlap,False,"[""Zhirong Li"", ""Rachel Dent"", ""Graham Peers""]","[""Rachel Dent"", ""Graham Peers""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,55
|
||||
A5001167896,Martin Glas,A5001167896|EPO:12728260.6|EP2721035|20180613|12728260.6,EP2721035,EPO,GLIOBLASTOMA INHIBITING COMPOUNDS AND THEIR USE,True,Medicine / Health Sciences,EPO:12728260.6,True,full,REJECT,,REJECT,,NONE,False,,False,"[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""GOGOLOK, Sabine"", ""TRAGESER, Daniel"", ""REINARTZ, Roman"", ""WIELAND, Anja""]","[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""GOGOLOK, Sabine"", ""TRAGESER, Daniel"", ""REINARTZ, Roman"", ""WIELAND, Anja""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:13745422.9|EP2879671|20150610|13745422.9,EP2879671,EPO,NICLOSAMIDE AND ITS DERIVATIVES FOR USE IN THE TREATMENT OF SOLID TUMORS,True,Medicine / Health Sciences,EPO:13745422.9,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""SCHEFFLER, Björn""]","[""SCHEFFLER, Björn""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:12728260.6|EP2721035|20140423|12728260.6,EP2721035,EPO,GLIOBLASTOMA INHIBITING COMPOUNDS AND THEIR USE,True,Medicine / Health Sciences,EPO:12728260.6,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""GOGOLOK, Sabine"", ""TRAGESER, Daniel"", ""REINARTZ, Roman"", ""WIELAND, Anja""]","[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""GOGOLOK, Sabine"", ""TRAGESER, Daniel"", ""REINARTZ, Roman"", ""WIELAND, Anja""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:09778433.4|EP2324111|20130703|09778433.4,EP2324111,EPO,"PERIPHERAL ZONE TUMOR CELLS, METHODS FOR THEIR PREPARATION AND USE",True,Medicine / Health Sciences,EPO:09778433.4,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""BRÜSTLE, Oliver"", ""HERRLINGER, Ulrich, Johannes""]","[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""BRÜSTLE, Oliver"", ""HERRLINGER, Ulrich, Johannes""]","{""confirmed_count"": 4, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:10721372.0|EP2424977|20130612|10721372.0,EP2424977,EPO,MICROGLIAL PRECURSOR CELLS FOR THE TREATMENT OF MALIGNANT NEOPLASMS OF THE CENTRAL NERVOUS SYSTEM,True,Medicine / Health Sciences,EPO:10721372.0,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""NEUMANN, Harald"", ""MASGUTOV, Ruslan"", ""HERRLINGER, Ulrich"", ""WELLE, Kristian""]","[""NEUMANN, Harald"", ""HERRLINGER, Ulrich""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:10721372.0|EP2424977|20120307|10721372.0,EP2424977,EPO,MICROGLIAL PRECURSOR CELLS FOR THE TREATMENT OF MALIGNANT NEOPLASMS OF THE CENTRAL NERVOUS SYSTEM,True,Medicine / Health Sciences,EPO:10721372.0,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""NEUMANN, Harald"", ""MASGUTOV, Ruslan"", ""HERRLINGER, Ulrich"", ""WELLE, Kristian""]","[""NEUMANN, Harald"", ""HERRLINGER, Ulrich""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|EPO:09778433.4|EP2324111|20110525|09778433.4,EP2324111,EPO,"PERIPHERAL ZONE TUMOR CELLS, METHODS FOR THEIR PREPARATION AND USE",True,Medicine / Health Sciences,EPO:09778433.4,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""BRÜSTLE, Oliver"", ""HERRLINGER, Ulrich, Johannes""]","[""SCHEFFLER, Björn"", ""SIMON, Matthias"", ""BRÜSTLE, Oliver"", ""HERRLINGER, Ulrich, Johannes""]","{""confirmed_count"": 4, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|USPTO:14420164|US09844522|20171219|14420164,US09844522,USPTO,Niclosamide and its derivatives for use in the treatment of solid tumors,True,Medicine / Health Sciences,USPTO:14420164,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""Björn Scheffler"", ""Anja Wieland""]","[""Björn Scheffler"", ""Anja Wieland""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|USPTO:14126512|US09573960|20170221|14126512,US09573960,USPTO,Glioblastoma inhibiting compounds and their use,True,Medicine / Health Sciences,USPTO:14126512,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""Björn Scheffler"", ""Matthias Simon"", ""Sabine Gogolok"", ""Daniel Trageser"", ""Roman Reinartz"", ""Anja Wieland""]","[""Björn Scheffler"", ""Matthias Simon"", ""Sabine Gogolok"", ""Daniel Trageser"", ""Roman Reinartz"", ""Anja Wieland""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],6,813
|
||||
A5001167896,Martin Glas,A5001167896|USPTO:12867442|US09103819|20150811|12867442,US09103819,USPTO,"Peripheral zone tumor cells, methods for their preparation and use",True,Medicine / Health Sciences,USPTO:12867442,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""Björn Scheffler"", ""Matthias Simon"", ""Oliver Brüstle"", ""Ulrich Johannes Herrlinger""]","[""Björn Scheffler"", ""Matthias Simon"", ""Oliver Brüstle"", ""Ulrich Johannes Herrlinger""]","{""confirmed_count"": 4, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],6,813
|
||||
A5011059806,James Fulcher,A5011059806|EPO:20729116.2|EP3980057|20220413|20729116.2,EP3980057,EPO,"METHODS OF PRODUCING SHIGA TOXIN B-SUBUNIT (STXB) MONOMERS AND OLIGOMERS, AND USES THEREOF",True,Physics,EPO:20729116.2,True,initial,REJECT,,REJECT,,NONE,True,historical_temporal_plausible,False,"[""BILLET, Anne"", ""SCHMIDT, Frédéric"", ""JOHANNES, Ludger"", ""SERVENT, Denis"", ""MOURIER, Gilles"", ""TARTOUR, Éric"", ""KAY, Michael""]","[""KAY, Michael""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],8,57
|
||||
A5011059806,James Fulcher,A5011059806|EPO:86305385|EP0212835|19880210|86305385,EP0212835,EPO,Flexible bulk containers,False,Physics,EPO:86305385,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,"[""edward""]",8,57
|
||||
A5011059806,James Fulcher,A5011059806|EPO:86305385.6|EP0212835|19870304|86305385.6,EP0212835,EPO,Flexible bulk containers,False,Physics,EPO:86305385.6,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,"[""edward""]",8,57
|
||||
A5011059806,James Fulcher,A5011059806|USPTO:17954834|US12629681|20260519|17954834,US12629681,USPTO,Apparatuses and methods for performing multiple omics analysis and processing analyte mixtures,True,Physics,USPTO:17954834,True,initial,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Ying Zhu"", ""Lye Meng Markillie"", ""Ljiljana Paša-Tolić""]","[""Ying Zhu"", ""Lye Meng Markillie""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],8,57
|
||||
A5011059806,James Fulcher,A5011059806|USPTO:17616512|US12527854|20260120|17616512,US12527854,USPTO,"Methods of producing Shiga toxin B-subunit (STxB) monomers and oligomers, and uses thereof",True,Physics,USPTO:17616512,True,initial,REJECT,,REJECT,,NONE,False,historical,False,"[""Anne Billet"", ""Frédéric Schmidt"", ""Ludger Johannes"", ""Denis Servent"", ""Gilles Mourier"", ""Éric Tartour"", ""Michael Kay""]","[""Michael Kay""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],8,57
|
||||
A5035127271,Mark Obermann,A5035127271|EPO:96928055.0|EP0797868|19971001|96928055.0,EP0797868,EPO,AMPLIFIER CIRCUIT FOR RF SYSTEM,True,Other,EPO:96928055.0,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""EVERLINE, Paul""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,187
|
||||
A5035127271,Mark Obermann,A5035127271|EPO:97921176.0|EP0904633|20061018|97921176.0,EP0904633,EPO,POWER DELIVERY SYSTEM AND METHOD OF CONTROLLING THE POWER DELIVERY SYSTEM FOR USE IN A RADIO FREQUENCY SYSTEM,True,Other,EPO:97921176.0,True,initial,REJECT,,REJECT,,NONE,False,,False,"[""LEFFEL, Michael, David"", ""LOUIS, Edward, Vincent"", ""MILLER, Douglas, Edward"", ""AVICOLA, Timothy, Mark""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,187
|
||||
A5035127271,Mark Obermann,A5035127271|EPO:97921176.0|EP0904633|19990331|97921176.0,EP0904633,EPO,POWER DELIVERY SYSTEM AND METHOD OF CONTROLLING THE POWER DELIVERY SYSTEM FOR USE IN A RADIO FREQUENCY SYSTEM,True,Other,EPO:97921176.0,True,initial,REJECT,,REJECT,,NONE,False,generic_token,False,"[""LEFFEL, Michael, David"", ""LOUIS, Edward, Vincent"", ""MILLER, Douglas, Edward"", ""AVICOLA, Timothy, Mark""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,187
|
||||
A5035127271,Mark Obermann,A5035127271|EPO:92902923.9|EP0515662|19960828|92902923.9,EP0515662,EPO,FEED FORWARD DISTORTION MINIMIZATION CIRCUIT,True,Other,EPO:92902923.9,True,initial,REJECT,,REJECT,,NONE,False,,False,"[""LONG, James, F.""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,187
|
||||
A5035127271,Mark Obermann,A5035127271|EPO:92902923.0|EP0515662|19921202|92902923.0,EP0515662,EPO,FEED FORWARD DISTORTION MINIMIZATION CIRCUIT,True,Other,EPO:92902923.0,True,initial,REJECT,,REJECT,,NONE,False,generic_token,False,"[""LONG, James, F.""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,187
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:07818638.4|EP2102357|20131127|07818638.4,EP2102357,EPO,"LTBP2 AS A BIOMARKER, THERAPEUTIC AND DIAGNOSTIC TARGET",True,Engineering,EPO:07818638.4,True,full,REJECT,,REJECT,,NONE,False,,False,"[""GOLZ, Stefan"", ""SUMMER, Holger"", ""GEERTS, Andreas"", ""BRÜGGEMEIER, Ulf"", ""ALBRECHT-KÜPPER, Barbara"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""D'URSO, Donatella"", ""SEEWALD, Michael""]","[""GOLZ, Stefan"", ""SUMMER, Holger"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""SEEWALD, Michael""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,2023
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:07818669.9|EP2074429|20120404|07818669.9,EP2074429,EPO,"CTGF AS A BIOMARKER, THERAPEUTIC AND DIAGNOSTIC TARGET",True,Engineering,EPO:07818669.9,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""GOLZ, Stefan"", ""SUMMER, Holger"", ""GEERTS, Andreas"", ""BRÜGGEMEIER, Ulf"", ""ALBRECHT-KÜPPER, Barbara"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""D'URSO, Donatella"", ""SEEWALD, Michael""]","[""GOLZ, Stefan"", ""SUMMER, Holger"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""SEEWALD, Michael""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],3,2023
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:08734838.9|EP2134859|20091223|08734838.9,EP2134859,EPO,TIMP-4 AS A BIOMARKER FOR THE DIAGNOSIS OF CARDIAC INSUFFICIENCY,True,Engineering,EPO:08734838.9,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,True,historical_temporal_plausible,False,"[""KRAMER, Frank""]","[""KRAMER, Frank""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:coauthor_plus_institution,plausible,[],3,2023
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:07818638.4|EP2102357|20090923|07818638.4,EP2102357,EPO,"LTBP2 AS A BIOMARKER, THERAPEUTIC AND DIAGNOSTIC TARGET",True,Engineering,EPO:07818638.4,True,full,REJECT,,REJECT,,NONE,True,historical_temporal_plausible,False,"[""GOLZ, Stefan"", ""SUMMER, Holger"", ""GEERTS, Andreas"", ""BRÜGGEMEIER, Ulf"", ""ALBRECHT-KÜPPER, Barbara"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""D'URSO, Donatella"", ""SEEWALD, Michael""]","[""GOLZ, Stefan"", ""SUMMER, Holger"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""SEEWALD, Michael""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],3,2023
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:07818642.6|EP2087359|20090812|07818642.6,EP2087359,EPO,"PRSS23 AS A BIOMARKER, THERAPEUTIC AND DIAGNOSTIC TARGET",True,Engineering,EPO:07818642.6,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,True,historical_temporal_plausible,False,"[""GOLZ, Stefan"", ""SUMMER, Holger"", ""GEERTS, Andreas"", ""BRÜGGEMEIER, Ulf"", ""ALBRECHT-KÜPPER, Barbara"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""D'URSO, Donatella"", ""SEEWALD, Michael""]","[""GOLZ, Stefan"", ""SUMMER, Holger"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""SEEWALD, Michael""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,plausible,[],3,2023
|
||||
A5054895539,Hendrik Milting,A5054895539|EPO:07818669.9|EP2074429|20090701|07818669.9,EP2074429,EPO,"CTGF AS A BIOMARKER, THERAPEUTIC AND DIAGNOSTIC TARGET",True,Engineering,EPO:07818669.9,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,True,historical_temporal_plausible,False,"[""GOLZ, Stefan"", ""SUMMER, Holger"", ""GEERTS, Andreas"", ""BRÜGGEMEIER, Ulf"", ""ALBRECHT-KÜPPER, Barbara"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""D'URSO, Donatella"", ""SEEWALD, Michael""]","[""GOLZ, Stefan"", ""SUMMER, Holger"", ""KLEIN, Martina"", ""STEPPAN, Sonja"", ""ELLINGHAUS, Peter"", ""SEEWALD, Michael""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,plausible,[],3,2023
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:10009390.5|EP2284749|20150603|10009390.5,EP2284749,EPO,"Method, computer program and device for executing actions using data sets",False,Medicine / Health Sciences,EPO:10009390.5,True,full,REJECT,,REJECT,,NONE,False,,False,"[""Karthikeyan, A."", ""Kacker Himanshu"", ""Marar Mohan"", ""Boruah Jayanta"", ""Gentes Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:04009852.7|EP1591916|20131106|04009852.7,EP1591916,EPO,"Method, computer program and device for deleting data sets contained in a table system",False,Medicine / Health Sciences,EPO:04009852.7,True,full,REJECT,,REJECT,,NONE,False,,False,"[""Karthikeyan, A."", ""Kacker, Himanshu"", ""Marar, Mohan"", ""Boruah, Jayanta"", ""Gentes, Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:10009390.5|EP2284749|20110216|10009390.5,EP2284749,EPO,"Method, computer program and device for executing actions using data sets",False,Medicine / Health Sciences,EPO:10009390.5,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Karthikeyan, A."", ""Kacker Himanshu"", ""Marar Mohan"", ""Boruah Jayanta"", ""Gentes Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:04009849.3|EP1591914|20051102|04009849.3,EP1591914,EPO,"Method, computer program product and device for importing a plurality of data sets into a system",False,Medicine / Health Sciences,EPO:04009849.3,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Karthikeyan, A."", ""Kacker, Himanshu"", ""Marar, Mohan"", ""Boruah, Jayanta"", ""Gentes, Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:04009852.7|EP1591916|20051102|04009852.7,EP1591916,EPO,"Method, computer program and device for deleting data sets contained in a table system",False,Medicine / Health Sciences,EPO:04009852.7,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Karthikeyan, A."", ""Kacker, Himanshu"", ""Marar, Mohan"", ""Boruah, Jayanta"", ""Gentes, Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:04009850.1|EP1591915|20051102|04009850.1,EP1591915,EPO,"Method, computer program product and computer device for processing data",False,Medicine / Health Sciences,EPO:04009850.1,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Karthikeyan, A."", ""Kacker, Himanshu"", ""Marar, Mohan"", ""Boruah, Jayanta"", ""Gentes, Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:04009851.9|EP1591861|20051102|04009851.9,EP1591861,EPO,"Method, computer program and device for executing actions using data sets",False,Medicine / Health Sciences,EPO:04009851.9,True,full,REJECT,,REJECT,,NONE,False,generic_token,False,"[""Karthikeyan, A."", ""Kacker, Himanshu"", ""Marar, Mohan"", ""Boruah, Jayanta"", ""Gentes, Wolfgang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:80104981.8|EP0026830|19830427|80104981.8,EP0026830,EPO,"Machine for applying staples to the edge of a jacquard cards tape, and staple for use in this machine",False,Medicine / Health Sciences,EPO:80104981.8,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Giger, Walter""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5109170577,Jörg Steinmann,A5109170577|EPO:80104981.8|EP0026830|19810415|80104981.8,EP0026830,EPO,"Machine for applying staples to the edge of a jacquard cards tape, and staple for use in this machine",False,Medicine / Health Sciences,EPO:80104981.8,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Giger, Walter""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,454
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:12006205.4|EP2703858|20170201|12006205.4,EP2703858,EPO,High-efficient CMOS-compatible grating couplers with backside metal mirror,True,Physics,EPO:12006205.4,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""Sfar Zaoui, Wissem"", ""Butschke, Jörg"", ""Letzkus, Florian""]","[""Sfar Zaoui, Wissem"", ""Butschke, Jörg"", ""Letzkus, Florian""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:12006205.4|EP2703858|20140305|12006205.4,EP2703858,EPO,High-efficient CMOS-compatible grating couplers with backside metal mirror,True,Physics,EPO:12006205.4,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""Sfar Zaoui, Wissem"", ""Butschke, Jörg"", ""Letzkus, Florian""]","[""Sfar Zaoui, Wissem"", ""Butschke, Jörg"", ""Letzkus, Florian""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:06792091.8|EP1941311|20130501|06792091.8,EP1941311,EPO,METAMATERIAL HAVING THE CAPABILITY OF BROADBAND LEFT-HANDED GUIDANCE OF ELECTROMAGNETIC WAVES,True,Physics,EPO:06792091.8,True,full,REJECT,,REJECT,,NONE,False,,False,"[""SCHWEIZER, Heinz"", ""GRÄBELDINGER, Hedwig"", ""GIESSEN, Harald"", ""RUMBERG, Axel"", ""FU, Liwei""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",True,REJECT,not_in_production_or_semantic,unavailable,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:06792091.8|EP1941311|20080709|06792091.8,EP1941311,EPO,METAMATERIAL HAVING THE CAPABILITY OF BROADBAND LEFT-HANDED GUIDANCE OF ELECTROMAGNETIC WAVES,True,Physics,EPO:06792091.8,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""SCHWEIZER, Heinz"", ""GRÄBELDINGER, Hedwig"", ""GIESSEN, Harald"", ""RUMBERG, Axel"", ""FU, Liwei""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:05808222.3|EP1815593|20070808|05808222.3,EP1815593,EPO,POWER AMPLIFIER FOR AMPLIFYING HIGH-FREQUENCY (H.F.) SIGNALS,True,Physics,EPO:05808222.3,True,full,KEEP,strict_topic_match,REJECT,,STRONG,True,last_known,False,"[""WU, Lei""]","[""WU, Lei""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,plausible,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:94926093.9|EP0728391|19980729|94926093.9,EP0728391,EPO,CLOCK-RECOVERY CIRCUIT,True,Physics,EPO:94926093.9,True,full,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,,False,"[""WANG, Zhigong""]","[""WANG, Zhigong""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:94926093.0|EP0728391|19960828|94926093.0,EP0728391,EPO,CLOCK-RECOVERY CIRCUIT,True,Physics,EPO:94926093.0,True,full,KEEP,strict_topic_match,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""WANG, Zhigong""]","[""WANG, Zhigong""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,plausible,[],2,174
|
||||
A5008182166,Manfred Berroth,A5008182166|EPO:02360172.7|EP1372024|20031217|02360172.7,EP1372024,EPO,Liquid crystal optical phase modulator,True,Physics,EPO:02360172.7,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,CANDIDATE,False,no_specific_overlap,False,"[""Wessel, Dr. Rudolf"", ""Bülow, Dr. Henning"", ""Pfeiffer, Dr. Thomas""]","[""Bülow, Dr. Henning""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:coauthor_without_context,unavailable,[],2,174
|
||||
A5031103932,Sebastian Schlücker,A5031103932|EPO:18710845.1|EP3593137|20200115|18710845.1,EP3593137,EPO,EFFICIENT LIGAND EXCHANGE OF A DETERGENT BILAYER ON THE SURFACE OF METAL NANOPARTICLES FOR MOLECULAR FUNCTIONALIZATION AND ASSEMBLY,True,Chemistry,EPO:18710845.1,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,last_known,False,"[""KÖNIG, Matthias"", ""YOON, Jun Hee"", ""SELBACH, Florian""]","[""KÖNIG, Matthias"", ""YOON, Jun Hee"", ""SELBACH, Florian""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],4,322
|
||||
A5031103932,Sebastian Schlücker,A5031103932|EPO:08802574.7|EP2193374|20131023|08802574.7,EP2193374,EPO,MARKERS FOR SURFACE-ENHANCED RAMAN SCATTERING,True,Chemistry,EPO:08802574.7,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""KÜSTNER, Bernd"", ""SCHMUCK, Carsten""]","[""KÜSTNER, Bernd"", ""SCHMUCK, Carsten""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],4,322
|
||||
A5031103932,Sebastian Schlücker,A5031103932|EPO:08802574.7|EP2193374|20100609|08802574.7,EP2193374,EPO,COMPOUNDS AND MARKERS FOR SURFACE-ENHANCED RAMAN SCATTERING,True,Chemistry,EPO:08802574.7,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""KÜSTNER, Bernd"", ""SCHMUCK, Carsten""]","[""KÜSTNER, Bernd"", ""SCHMUCK, Carsten""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],4,322
|
||||
A5031103932,Sebastian Schlücker,A5031103932|EPO:07018757.0|EP2040075|20090325|07018757.0,EP2040075,EPO,Compounds and markers for surface-enhanced raman scattering,True,Chemistry,EPO:07018757.0,True,full,KEEP,historical_institution+confirmed_co_inventors,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""Küstner, Bernd"", ""Schmuck, Carsten""]","[""Küstner, Bernd"", ""Schmuck, Carsten""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,historical_institution+confirmed_co_inventors,plausible,[],4,322
|
||||
A5031103932,Sebastian Schlücker,A5031103932|USPTO:12679571|US08854617|20141007|12679571,US08854617,USPTO,Compounds and markers for surface-enhanced Raman scattering,True,Chemistry,USPTO:12679571,True,full,KEEP,strict_topic_match,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""Bernd Küstner"", ""Carsten Schmuck""]","[""Bernd Küstner"", ""Carsten Schmuck""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,plausible,[],4,322
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|EPO:12783811.8|EP2773458|20201223|12783811.8,EP2773458,EPO,CATALYTIC MEMBRANES AND APPLICATIONS THEREOF,True,Biology / Biotechnology,EPO:12783811.8,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,,False,"[""QIAN, Xianghong"", ""ULBRICHT, Mathias"", ""YANG, Qian""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,"[""sumith""]",5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|EPO:12783811.8|EP2773458|20140910|12783811.8,EP2773458,EPO,CATALYTIC MEMBRANES AND APPLICATIONS THEREOF,True,Biology / Biotechnology,EPO:12783811.8,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,city_only,False,"[""QIAN, Xianghong"", ""ULBRICHT, Mathias"", ""YANG, Qian""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,"[""sumith""]",5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|EPO:96936859.0|EP0874683|19981104|96936859.0,EP0874683,EPO,EXTRA-LUMENAL CROSSFLOW PLASMAPHERESIS DEVICES,True,Biology / Biotechnology,EPO:96936859.0,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,no_specific_overlap,False,"[""KESSLER, Stephen""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,"[""sumith""]",5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|USPTO:17342089|US11628408|20230418|17342089,US11628408,USPTO,Bilayer electrospun membranes for treating fracking wastewater via membrane distillation,True,Biology / Biotechnology,USPTO:17342089,True,initial,KEEP,strict_topic_match,REJECT,,STRONG,False,city_only,False,"[""Jorge Almodovar"", ""Yu-Hsuan Chiao"", ""David Alfonso Castilla-Casadiego""]","[""Jorge Almodovar"", ""Yu-Hsuan Chiao"", ""David Alfonso Castilla-Casadiego""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,[],5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|USPTO:15568672|US11028062|20210608|15568672,US11028062,USPTO,Catalytic hydrolysis and dehydration of saccharides,True,Biology / Biotechnology,USPTO:15568672,True,initial,REJECT,,REJECT,,NONE,False,city_only,False,"[""Xianghong Qian""]","[""Xianghong Qian""]","{""confirmed_count"": 1, ""shared_work_count"": 90, ""distinct_years"": [2002, 2005, 2009, 2010, 2012, 2013, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025], ""unique_institutions"": 32}",True,REJECT,not_in_production_or_semantic,unavailable,[],5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|USPTO:15155822|US10118168|20181106|15155822,US10118168,USPTO,Catalytic membranes and applications thereof,True,Biology / Biotechnology,USPTO:15155822,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,city_only,False,"[""Xianghong Qian"", ""Mathias Ulbricht"", ""Qian Yang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,"[""sumith""]",5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|USPTO:14355364|US09339803|20160517|14355364,US09339803,USPTO,Catalytic membranes and applications thereof,True,Biology / Biotechnology,USPTO:14355364,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,True,historical_temporal_plausible,False,"[""Xianghong Qian"", ""Mathias Ulbricht"", ""Qian Yang""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,plausible,"[""sumith""]",5,143
|
||||
A5027988292,S. Ranil Wickramasinghe,A5027988292|USPTO:13570003|US09132389|20150915|13570003,US09132389,USPTO,Magnetically responsive membranes,True,Biology / Biotechnology,USPTO:13570003,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,True,historical_temporal_plausible,False,"[""Xianghong Qian"", ""Heath H. Himstedt"", ""Mathias Ulbricht"", ""Michael J. Semmens""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,plausible,"[""sumith""]",5,143
|
||||
A5070760948,Robert Weigel,A5070760948|EPO:03720131.6|EP1488508|20050713|03720131.6,EP1488508,EPO,TWO-POINT MODULATOR ASSEMBLY,True,Engineering,EPO:03720131.6,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,CANDIDATE,False,,False,"[""HERZINGER, Stefan"", ""MÄRZINGER, Günter"", ""NEURAUTER, Burkhard""]","[""HERZINGER, Stefan""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:coauthor_without_context,unavailable,[],16,198
|
||||
A5070760948,Robert Weigel,A5070760948|EPO:03720131.6|EP1488508|20041222|03720131.6,EP1488508,EPO,TWO-POINT MODULATOR ASSEMBLY,True,Engineering,EPO:03720131.6,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,CANDIDATE,False,historical,False,"[""HERZINGER, Stefan"", ""MÄRZINGER, Günter"", ""NEURAUTER, Burkhard""]","[""HERZINGER, Stefan""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:coauthor_without_context,implausible,[],16,198
|
||||
A5070760948,Robert Weigel,A5070760948|EPO:97915269.1|EP0878064|20000503|97915269.1,EP0878064,EPO,CODE-MODULATED TRANSMISSION PROCESS AND TRANSMISSION SYSTEM OPERATING ACCORDING THERETO,True,Engineering,EPO:97915269.1,True,full,REJECT,,REJECT,,NONE,False,,False,"[""ZHANG, Zhongping"", ""SEIFERT, Franz""]","[""ZHANG, Zhongping""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],16,198
|
||||
A5070760948,Robert Weigel,A5070760948|EPO:97915269.0|EP0878064|19981118|97915269.0,EP0878064,EPO,CODE-MODULATED TRANSMISSION PROCESS AND TRANSMISSION SYSTEM OPERATING ACCORDING THERETO,True,Engineering,EPO:97915269.0,True,full,REJECT,,REJECT,,NONE,False,historical,False,"[""ZHANG, Zhongping"", ""SEIFERT, Franz""]","[""ZHANG, Zhongping""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],16,198
|
||||
A5070760948,Robert Weigel,A5070760948|USPTO:16551366|US11260242|20220301|16551366,US11260242,USPTO,Systems and methods for use in treating sensory impairment,False,Engineering,USPTO:16551366,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,no_specific_overlap,False,"[""Timothy Kelm"", ""Philip S. Walter"", ""Joshua Reed""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,[],16,198
|
||||
A5070760948,Robert Weigel,A5070760948|USPTO:14008265|US10391331|20190827|14008265,US10391331,USPTO,Systems and methods for use in treating sensory impairment,False,Engineering,USPTO:14008265,True,initial,KEEP,strict_topic_match,REJECT,,skipped_production_keep,False,no_specific_overlap,False,"[""Timothy Kelm"", ""Philip S. Walter"", ""Joshua Reed""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,[],16,198
|
||||
A5113541511,Roland Boese,A5113541511|EPO:12799022.4|EP2771312|20170531|12799022.4,EP2771312,EPO,AGOMELATINE-UREA COMPLEX AND CRYSTALLINE FORMS THEREOF,True,Chemistry,EPO:12799022.4,False,full,KEEP,strict_topic_match,REJECT,,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:12799022.4|EP2771312|20140903|12799022.4,EP2771312,EPO,AGOMELATINE-UREA COMPLEX AND CRYSTALLINE FORMS THEREOF,True,Chemistry,EPO:12799022.4,False,full,KEEP,strict_topic_match,REJECT,,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:09717772.9|EP2247585|20140430|09717772.9,EP2247585,EPO,"CRYSTAL FORMS OF N-[2-(DIETHYLAMINO)ETHYL]-5-[(5-FLUORO-1,2-DIHYDRO-2-OXO-3H-INDOL-3-YLIDENE)METHYL]-2,4-DIMETHYL-1H-PYRROLE-3-CARBOXAMIDE AND METHODS FOR THEIR PREPARATION",True,Chemistry,EPO:09717772.9,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:13158832.9|EP2604603|20130619|13158832.9,EP2604603,EPO,"Crystal forms of N-[2-(diethylamino)ethyl]-5-[(5-fluoro-1,2-dihydro-2-oxo-3H-indol-3-ylidene)methyl]-2,4-dimethyl-1H-pyrrole-3-carboxamide and methods for their preparation",True,Chemistry,EPO:13158832.9,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:09717772.9|EP2247585|20101110|09717772.9,EP2247585,EPO,"CRYSTAL FORMS OF N-Ý2-(DIETHYLAMINO)ETHYL¨-5-Ý(5-FLUORO-1,2-DIHYDRO-2-OXO-3H-INDOL-3-YLIDENE)METHYL¨-2,4-DIMETHYL-1H-PYRROLE-3-CARBOXAMIDE AND METHODS FOR THEIR PREPARATION",True,Chemistry,EPO:09717772.9,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:08008254.8|EP2128160|20100714|08008254.8,EP2128160,EPO,"Indolo[2,3-b]-, Indeno[1,2-b]- and Indeno[2,1-b]pyrido[2,3-f] quinoxaline-3-carboxylic acids and esters, processes for their preparation and their use as antiviral, antibiotic and antitumor agents",True,Chemistry,EPO:08008254.8,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:08008254.8|EP2128160|20091202|08008254.8,EP2128160,EPO,"Indolo[2,3-b]-, Indeno[1,2-b]- and Indeno[2,1-b]pyrido[2,3-f] quinoxaline-3-carboxylic acids and esters, processes for their preparation and their use as antiviral, antibiotic and antitumor agents",True,Chemistry,EPO:08008254.8,False,full,KEEP,historical_institution,REJECT,,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:08004143.7|EP2098521|20090909|08004143.7,EP2098521,EPO,"Crystal forms of N-[2-(diethylamino) ethyl]-5-[fluoro-1,2-dihydro-2-oxo-3H-indol-3-ylidene)methyl]-2,4-dimethyl-1H-pyrolle-3-carboxamide and methods for their prepparation",True,Chemistry,EPO:08004143.7,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:84110796|EP0153989|19860205|84110796,EP0153989,EPO,Sample holder for a powder diffractometer,True,Chemistry,EPO:84110796,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5113541511,Roland Boese,A5113541511|EPO:84110796.4|EP0153989|19850911|84110796.4,EP0153989,EPO,Sample holder for a powder diffractometer,True,Chemistry,EPO:84110796.4,False,full,REJECT,,KEEP,semantic_topic_fallback_v1,skipped_unique_name,False,,False,[],[],{},False,KEEP,unique_name_unchanged,unavailable,[],1,209
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:13818713.3|EP2932264|20190130|13818713.3,EP2932264,EPO,NOVEL MHC-INDEPENDENT TUMOR-ASSOCIATED ANTIGENS,True,Medicine / Health Sciences,EPO:13818713.3,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,False,,False,"[""PASCHEN, Anette"", ""LÜBCKE, Silke"", ""FATHO, Martina"", ""EBERTS, Daniela"", ""ECHCHANNAOUI, Hakim"", ""LENNERZ, Volker"", ""WÖLFEL, Catherine"", ""WÖLFEL, Thomas""]","[""LÜBCKE, Silke"", ""FATHO, Martina"", ""LENNERZ, Volker"", ""WÖLFEL, Catherine"", ""WÖLFEL, Thomas""]","{""confirmed_count"": 5, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,unavailable,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:13818713.3|EP2932264|20151021|13818713.3,EP2932264,EPO,NOVEL MHC-INDEPENDENT TUMOR-ASSOCIATED ANTIGENS,True,Medicine / Health Sciences,EPO:13818713.3,True,full,KEEP,last_known_institution,REJECT,,STRONG,True,historical_temporal_plausible,False,"[""PASCHEN, Anette"", ""LÜBCKE, Silke"", ""FATHO, Martina"", ""EBERTS, Daniela"", ""ECHCHANNAOUI, Hakim"", ""LENNERZ, Volker"", ""WÖLFEL, Catherine"", ""WÖLFEL, Thomas""]","[""LÜBCKE, Silke"", ""FATHO, Martina"", ""LENNERZ, Volker"", ""WÖLFEL, Catherine"", ""WÖLFEL, Thomas""]","{""confirmed_count"": 5, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,last_known_institution,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:00983011.8|EP1230265|20070613|00983011.8,EP1230265,EPO,CTAGE GENE FAMILY,True,Medicine / Health Sciences,EPO:00983011.8,True,full,REJECT,,REJECT,,NONE,False,,False,"[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:04000772.6|EP1555271|20050720|04000772.6,EP1555271,EPO,Peptides useful for diagnosis and therapy of TRP-2+ and/or TRP-1+ tumors,True,Medicine / Health Sciences,EPO:04000772.6,True,full,REJECT,,REJECT,,NONE,True,historical_temporal_plausible,False,"[""Paschen, Annette"", ""Kropshofer, Harald""]","[""Paschen, Annette"", ""Kropshofer, Harald""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:02012705.6|EP1369482|20031210|02012705.6,EP1369482,EPO,Target genes for the diagnosis and treatment of cancer,True,Medicine / Health Sciences,EPO:02012705.6,True,full,REJECT,,REJECT,,NONE,True,historical_temporal_plausible,False,"[""Wittig, Rainer"", ""Poustka, Annemarie"", ""Mollenhauer, Jan""]","[""Poustka, Annemarie"", ""Mollenhauer, Jan""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:01993706.9|EP1349871|20031008|01993706.9,EP1349871,EPO,NOVEL MARKER FOR THE DIAGNOSIS AND THERAPY OF TUMOURS,True,Medicine / Health Sciences,EPO:01993706.9,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,True,historical_temporal_plausible,False,"[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:00983011.8|EP1230265|20020814|00983011.8,EP1230265,EPO,CTAGE GENE FAMILY,True,Medicine / Health Sciences,EPO:00983011.8,True,full,REJECT,,REJECT,,NONE,True,historical_temporal_plausible,False,"[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","[""EICHMÜLLER, Stefan"", ""USENER, Dirk""]","{""confirmed_count"": 2, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|EPO:00983012.6|EP1228224|20020807|00983012.6,EP1228224,EPO,RECOMBINANT ATTENUATED LISTERIAS FOR IMMUNOTHERAPY,True,Medicine / Health Sciences,EPO:00983012.6,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,STRONG,True,historical_temporal_plausible,False,"[""PASCHEN, Annette"", ""CHAKRABORTY, Trinad"", ""DOMANN, Eugen""]","[""PASCHEN, Annette"", ""CHAKRABORTY, Trinad"", ""DOMANN, Eugen""]","{""confirmed_count"": 3, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,identity_keep:multiple_confirmed_coauthors,plausible,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|USPTO:15826879|US10987413|20210427|15826879,US10987413,USPTO,MHC-independent tumor-associated antigens,True,Medicine / Health Sciences,USPTO:15826879,True,full,KEEP,strict_topic_match,REJECT,,STRONG,False,generic_token,False,"[""Annette Paschen"", ""Silke Lübcke"", ""Martina Fatho"", ""Daniela Eberts"", ""Hakim Echchannaoui"", ""Volker Lennerz"", ""Catherine Woelfel"", ""Thomas Woelfel""]","[""Annette Paschen"", ""Silke Lübcke"", ""Martina Fatho"", ""Volker Lennerz"", ""Catherine Woelfel"", ""Thomas Woelfel""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,unavailable,[],26,656
|
||||
A5034365278,Dirk Schadendorf,A5034365278|USPTO:14648703|US09861688|20180109|14648703,US09861688,USPTO,T cell receptors with MHC independent binding to GM-CSF receptor alpha chain,True,Medicine / Health Sciences,USPTO:14648703,True,full,KEEP,strict_topic_match,REJECT,,STRONG,False,historical,False,"[""Annette Paschen"", ""Silke Luebcke"", ""Martina Fatho"", ""Daniela Eberts"", ""Hakim Echchannaoui"", ""Volker Lennerz"", ""Catherine Woelfel"", ""Thomas Woelfel""]","[""Annette Paschen"", ""Silke Luebcke"", ""Martina Fatho"", ""Volker Lennerz"", ""Catherine Woelfel"", ""Thomas Woelfel""]","{""confirmed_count"": 6, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,KEEP,strict_topic_match,implausible,[],26,656
|
||||
A5005196385,Matthew Monroe,A5005196385|EPO:17820949.0|EP3479405|20190508|17820949.0,EP3479405,EPO,PACKAGE-ON-PACKAGE SEMICONDUCTOR DEVICE ASSEMBLIES INCLUDING ONE OR MORE WINDOWS AND RELATED METHODS AND PACKAGES,False,Physics,EPO:17820949.0,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:17738460|US12040279|20240716|17738460,US12040279,USPTO,Through-core via,False,Physics,USPTO:17738460,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,plausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:16830693|US11328997|20220510|16830693,US11328997,USPTO,Through-core via,False,Physics,USPTO:16830693,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:16162070|US10777530|20200915|16162070,US10777530,USPTO,Package-on-package semiconductor device assemblies including one or more windows and related methods and packages,False,Physics,USPTO:16162070,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:15946139|US10629536|20200421|15946139,US10629536,USPTO,Through-core via,False,Physics,USPTO:15946139,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:15238382|US10121766|20181106|15238382,US10121766,USPTO,Package-on-package semiconductor device assemblies including one or more windows and related methods and packages,False,Physics,USPTO:15238382,True,full,REJECT,,REJECT,,NONE,True,last_known,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,implausible,[],2,58
|
||||
A5005196385,Matthew Monroe,A5005196385|USPTO:29546089|USD0794140|20170808|29546089,USD0794140,USPTO,Head for a toy,False,Physics,USPTO:29546089,True,full,REJECT,,REJECT,,NONE,False,,False,[],[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],2,58
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:88112393.9|EP0302422|19931208|88112393.9,EP0302422,EPO,Urea derivatives,True,Physics,EPO:88112393.9,True,full,REJECT,,REJECT,,NONE,False,,False,"[""Matsukubo, Hiroshi"", ""Matsumoto, Toyomi"", ""Miyashita, Mitsutomo"", ""Okamura, Kyuya"", ""Taga, Fukutaro"", ""Hamada, Katsuhiro""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:87109143.5|EP0254068|19920826|87109143.5,EP0254068,EPO,Novel therapeutic agent for gastritis,True,Physics,EPO:87109143.5,True,full,REJECT,,REJECT,,NONE,False,,False,"[""Kasuga, Kazunori"", ""Hamada, Katsuhiro"", ""Imai, Jun"", ""Kamijo, Shinji""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:87109143.5|EP0254068|19900530|87109143.5,EP0254068,EPO,Novel therapeutic agent for gastritis,True,Physics,EPO:87109143.5,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Kasuga, Kazunori"", ""Hamada, Katsuhiro"", ""Imai, Jun"", ""Kamijo, Shinji""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:88112393.9|EP0302422|19900207|88112393.9,EP0302422,EPO,Urea derivatives,True,Physics,EPO:88112393.9,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Matsukubo, Hiroshi"", ""Matsumoto, Toyomi"", ""Miyashita, Mitsutomo"", ""Okamura, Kyuya"", ""Taga, Fukutaro"", ""Hamada, Katsuhiro""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:88112393.9|EP0302422|19890208|88112393.9,EP0302422,EPO,Urea derivatives,True,Physics,EPO:88112393.9,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Matsukubo, Hiroshi"", ""Matsumoto, Toyomi"", ""Miyashita, Mitsutomo"", ""Okamura, Kyuya"", ""Taga, Fukutaro"", ""Hamada, Katsuhiro""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5110282865,Haruo Sekiguchi,A5110282865|EPO:87109143.5|EP0254068|19880127|87109143.5,EP0254068,EPO,Novel therapeutic agent for gastritis,True,Physics,EPO:87109143.5,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Kasuga, Kazunori"", ""Hamada, Katsuhiro"", ""Imai, Jun"", ""Kamijo, Shinji""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],5,63
|
||||
A5058282825,Masayuki Shibuya,A5058282825|EPO:02700734.3|EP1364933|20071003|02700734.3,EP1364933,EPO,OPTICAL RESOLVER AND METHOD OF OPTICALLY RESOLVING ALCOHOL WITH THE SAME,False,Chemistry,EPO:02700734.3,True,full,REJECT,,REJECT,,NONE,False,,False,"[""NEMOTO, Hisao""]","[""NEMOTO, Hisao""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,167
|
||||
A5058282825,Masayuki Shibuya,A5058282825|EPO:02700734.3|EP1364933|20031126|02700734.3,EP1364933,EPO,OPTICAL RESOLVER AND METHOD OF OPTICALLY RESOLVING ALCOHOL WITH THE SAME,False,Chemistry,EPO:02700734.3,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""NEMOTO, Hisao""]","[""NEMOTO, Hisao""]","{""confirmed_count"": 1, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,167
|
||||
A5058282825,Masayuki Shibuya,A5058282825|USPTO:15489835|US10744600|20200818|15489835,US10744600,USPTO,Metal plate for laser processing and method for producing stainless steel plate for laser processing,False,Chemistry,USPTO:15489835,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Kazuyoshi Fujisawa"", ""Kouichi Takeuchi""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,167
|
||||
A5058282825,Masayuki Shibuya,A5058282825|USPTO:13701230|US09979004|20180522|13701230,US09979004,USPTO,Clad material,False,Chemistry,USPTO:13701230,True,full,REJECT,,KEEP,semantic_topic_fallback_v1,NONE,False,no_specific_overlap,False,"[""Kentarou Yoshida"", ""Daisaku Arizono"", ""Syuji Yoshida"", ""Hayato Kita"", ""Kouichi Takeuchi"", ""Hideya Kaminaka""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,identity_reject:semantic_only,unavailable,[],3,167
|
||||
A5058282825,Masayuki Shibuya,A5058282825|USPTO:14361080|US09631249|20170425|14361080,US09631249,USPTO,Stainless steel and method for manufacturing same,False,Chemistry,USPTO:14361080,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Kazuhiko Adachi"", ""Takashi Maeda"", ""Kazuyoshi Fujisawa"", ""Yuuichi Fukumura""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,167
|
||||
A5058282825,Masayuki Shibuya,A5058282825|USPTO:14235873|US09243314|20160126|14235873,US09243314,USPTO,Method for manufacturing high-Si austenitic stainless steel,False,Chemistry,USPTO:14235873,True,full,REJECT,,REJECT,,NONE,False,no_specific_overlap,False,"[""Tomoyuki Sukawa"", ""Shinnya Yamamoto"", ""Kouichi Takeuchi"", ""Hayato Kita"", ""Shuuji Yoshida"", ""Katsuhiko Taketsu""]",[],"{""confirmed_count"": 0, ""shared_work_count"": 0, ""distinct_years"": [], ""unique_institutions"": 0}",False,REJECT,not_in_production_or_semantic,unavailable,[],3,167
|
||||
|
+7
@@ -0,0 +1,7 @@
|
||||
author,author_id,semantic_v1,guard_v1,guard_v2,final,final_replay_v1,final_replay_v2,production_keeps,semantic_v1_adds,works_count,openalex_full_name_count,openalex_coauthor_count,author_ambiguous
|
||||
Thomas Kaiser A5111380960,A5111380960,149,22,25,25,25,25,22,127,2,24,4,True
|
||||
Thomas Kaiser A5071644998,A5071644998,43,3,4,4,3,4,3,40,542,24,134,True
|
||||
Dirk Schadendorf,A5034365278,6,5,6,6,5,6,3,3,2376,26,656,True
|
||||
Christian Weber,A5100603203,13,9,13,11,9,13,8,5,1837,70,356,True
|
||||
Xiaohong Chen,A5100373745,31,8,10,8,8,10,8,23,19059,119,230,True
|
||||
Richard Smith,A5023982706,19,2,2,2,2,2,2,17,47952,101,252,True
|
||||
|
+11
@@ -0,0 +1,11 @@
|
||||
level,variant,tp,fp,fn,tn,precision,recall,f1
|
||||
candidate,production,32,2,57,40,0.9411764705882353,0.3595505617977528,0.5203252032520325
|
||||
candidate,production_with_semantic_fallback_v1,60,5,29,37,0.9230769230769231,0.6741573033707865,0.7792207792207791
|
||||
candidate,identity_guard_v1,52,2,37,40,0.9629629629629629,0.5842696629213483,0.7272727272727273
|
||||
candidate,identity_guard_v2,60,2,29,40,0.967741935483871,0.6741573033707865,0.794701986754967
|
||||
candidate,final_identity_guard,57,2,32,40,0.9661016949152542,0.6404494382022472,0.7702702702702703
|
||||
family,production,30,2,37,33,0.9375,0.44776119402985076,0.6060606060606061
|
||||
family,production_with_semantic_fallback_v1,49,5,18,30,0.9074074074074074,0.7313432835820896,0.8099173553719008
|
||||
family,identity_guard_v1,43,2,24,33,0.9555555555555556,0.6417910447761194,0.7678571428571429
|
||||
family,identity_guard_v2,49,2,18,33,0.9607843137254902,0.7313432835820896,0.8305084745762712
|
||||
family,final_identity_guard,47,2,20,33,0.9591836734693877,0.7014925373134329,0.810344827586207
|
||||
|
+299
@@ -0,0 +1,299 @@
|
||||
{
|
||||
"query_stats": {
|
||||
"additional_queries": 65,
|
||||
"cache_hits": 0,
|
||||
"shared_works_queries": 17,
|
||||
"coauthor_loads": 24,
|
||||
"alias_loads": 24
|
||||
},
|
||||
"per_author": [
|
||||
{
|
||||
"author_id": "A5073666637",
|
||||
"author_name": "Martin Wahl",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 9,
|
||||
"n_coauthors": 194,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 48,
|
||||
"coauthor_load_seconds": 0.504,
|
||||
"alias_load_seconds": 1.716,
|
||||
"shared_works_load_seconds": 0.028
|
||||
},
|
||||
{
|
||||
"author_id": "A5086393240",
|
||||
"author_name": "Clemens Aigner",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 7,
|
||||
"n_coauthors": 326,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 35,
|
||||
"coauthor_load_seconds": 0.49,
|
||||
"alias_load_seconds": 0.954,
|
||||
"shared_works_load_seconds": 0.103
|
||||
},
|
||||
{
|
||||
"author_id": "A5023752156",
|
||||
"author_name": "Albert Sickmann",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 7,
|
||||
"n_coauthors": 385,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 32,
|
||||
"coauthor_load_seconds": 0.252,
|
||||
"alias_load_seconds": 0.802,
|
||||
"shared_works_load_seconds": 0.064
|
||||
},
|
||||
{
|
||||
"author_id": "A5037443412",
|
||||
"author_name": "Krishna Niyogi",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 7,
|
||||
"n_coauthors": 55,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 30,
|
||||
"coauthor_load_seconds": 0.716,
|
||||
"alias_load_seconds": 0.939,
|
||||
"shared_works_load_seconds": 0.039
|
||||
},
|
||||
{
|
||||
"author_id": "A5001167896",
|
||||
"author_name": "Martin Glas",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 10,
|
||||
"n_coauthors": 813,
|
||||
"n_shared_contexts": 1,
|
||||
"n_institution_alias_records": 45,
|
||||
"coauthor_load_seconds": 0.633,
|
||||
"alias_load_seconds": 1.132,
|
||||
"shared_works_load_seconds": 0.455
|
||||
},
|
||||
{
|
||||
"author_id": "A5011059806",
|
||||
"author_name": "James Fulcher",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 5,
|
||||
"n_coauthors": 57,
|
||||
"n_shared_contexts": 2,
|
||||
"n_institution_alias_records": 10,
|
||||
"coauthor_load_seconds": 0.576,
|
||||
"alias_load_seconds": 0.284,
|
||||
"shared_works_load_seconds": 0.116
|
||||
},
|
||||
{
|
||||
"author_id": "A5035127271",
|
||||
"author_name": "Mark Obermann",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 5,
|
||||
"n_coauthors": 187,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 23,
|
||||
"coauthor_load_seconds": 0.467,
|
||||
"alias_load_seconds": 0.404,
|
||||
"shared_works_load_seconds": 0.049
|
||||
},
|
||||
{
|
||||
"author_id": "A5054895539",
|
||||
"author_name": "Hendrik Milting",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 6,
|
||||
"n_coauthors": 2023,
|
||||
"n_shared_contexts": 1,
|
||||
"n_institution_alias_records": 18,
|
||||
"coauthor_load_seconds": 0.484,
|
||||
"alias_load_seconds": 0.38,
|
||||
"shared_works_load_seconds": 1.836
|
||||
},
|
||||
{
|
||||
"author_id": "A5109170577",
|
||||
"author_name": "Jörg Steinmann",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 9,
|
||||
"n_coauthors": 454,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 33,
|
||||
"coauthor_load_seconds": 0.502,
|
||||
"alias_load_seconds": 0.61,
|
||||
"shared_works_load_seconds": 0.304
|
||||
},
|
||||
{
|
||||
"author_id": "A5008182166",
|
||||
"author_name": "Manfred Berroth",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 8,
|
||||
"n_coauthors": 174,
|
||||
"n_shared_contexts": 3,
|
||||
"n_institution_alias_records": 13,
|
||||
"coauthor_load_seconds": 0.474,
|
||||
"alias_load_seconds": 0.315,
|
||||
"shared_works_load_seconds": 0.214
|
||||
},
|
||||
{
|
||||
"author_id": "A5031103932",
|
||||
"author_name": "Sebastian Schlücker",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 5,
|
||||
"n_coauthors": 322,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 18,
|
||||
"coauthor_load_seconds": 0.142,
|
||||
"alias_load_seconds": 0.431,
|
||||
"shared_works_load_seconds": 0.019
|
||||
},
|
||||
{
|
||||
"author_id": "A5027988292",
|
||||
"author_name": "S. Ranil Wickramasinghe",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 8,
|
||||
"n_coauthors": 143,
|
||||
"n_shared_contexts": 1,
|
||||
"n_institution_alias_records": 14,
|
||||
"coauthor_load_seconds": 0.256,
|
||||
"alias_load_seconds": 0.396,
|
||||
"shared_works_load_seconds": 0.078
|
||||
},
|
||||
{
|
||||
"author_id": "A5070760948",
|
||||
"author_name": "Robert Weigel",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 6,
|
||||
"n_coauthors": 198,
|
||||
"n_shared_contexts": 2,
|
||||
"n_institution_alias_records": 53,
|
||||
"coauthor_load_seconds": 0.578,
|
||||
"alias_load_seconds": 1.311,
|
||||
"shared_works_load_seconds": 0.169
|
||||
},
|
||||
{
|
||||
"author_id": "A5113541511",
|
||||
"author_name": "Roland Boese",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 10,
|
||||
"n_coauthors": 209,
|
||||
"n_shared_contexts": 1,
|
||||
"n_institution_alias_records": 79,
|
||||
"coauthor_load_seconds": 0.432,
|
||||
"alias_load_seconds": 1.744,
|
||||
"shared_works_load_seconds": 0.165
|
||||
},
|
||||
{
|
||||
"author_id": "A5034365278",
|
||||
"author_name": "Dirk Schadendorf",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 10,
|
||||
"n_coauthors": 656,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 185,
|
||||
"coauthor_load_seconds": 0.757,
|
||||
"alias_load_seconds": 4.036,
|
||||
"shared_works_load_seconds": 0.654
|
||||
},
|
||||
{
|
||||
"author_id": "A5005196385",
|
||||
"author_name": "Matthew Monroe",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 7,
|
||||
"n_coauthors": 58,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 36,
|
||||
"coauthor_load_seconds": 0.15,
|
||||
"alias_load_seconds": 0.978,
|
||||
"shared_works_load_seconds": 0.006
|
||||
},
|
||||
{
|
||||
"author_id": "A5110282865",
|
||||
"author_name": "Haruo Sekiguchi",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 6,
|
||||
"n_coauthors": 63,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 2,
|
||||
"coauthor_load_seconds": 0.492,
|
||||
"alias_load_seconds": 0.058,
|
||||
"shared_works_load_seconds": 0.045
|
||||
},
|
||||
{
|
||||
"author_id": "A5058282825",
|
||||
"author_name": "Masayuki Shibuya",
|
||||
"scope": "fixed_sample",
|
||||
"n_patents": 6,
|
||||
"n_coauthors": 167,
|
||||
"n_shared_contexts": 1,
|
||||
"n_institution_alias_records": 18,
|
||||
"coauthor_load_seconds": 0.568,
|
||||
"alias_load_seconds": 0.449,
|
||||
"shared_works_load_seconds": 0.107
|
||||
},
|
||||
{
|
||||
"author_id": "A5111380960",
|
||||
"author_name": "Thomas Kaiser A5111380960",
|
||||
"scope": "live",
|
||||
"n_patents": 149,
|
||||
"n_coauthors": 4,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 1,
|
||||
"coauthor_load_seconds": 22.167,
|
||||
"alias_load_seconds": 0.0,
|
||||
"shared_works_load_seconds": 0.066
|
||||
},
|
||||
{
|
||||
"author_id": "A5071644998",
|
||||
"author_name": "Thomas Kaiser A5071644998",
|
||||
"scope": "live",
|
||||
"n_patents": 43,
|
||||
"n_coauthors": 134,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 39,
|
||||
"coauthor_load_seconds": 1.235,
|
||||
"alias_load_seconds": 0.689,
|
||||
"shared_works_load_seconds": 0.224
|
||||
},
|
||||
{
|
||||
"author_id": "A5034365278",
|
||||
"author_name": "Dirk Schadendorf",
|
||||
"scope": "live",
|
||||
"n_patents": 6,
|
||||
"n_coauthors": 656,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 185,
|
||||
"coauthor_load_seconds": 0.208,
|
||||
"alias_load_seconds": 0.0,
|
||||
"shared_works_load_seconds": 0.493
|
||||
},
|
||||
{
|
||||
"author_id": "A5100603203",
|
||||
"author_name": "Christian Weber",
|
||||
"scope": "live",
|
||||
"n_patents": 13,
|
||||
"n_coauthors": 356,
|
||||
"n_shared_contexts": 2,
|
||||
"n_institution_alias_records": 297,
|
||||
"coauthor_load_seconds": 0.747,
|
||||
"alias_load_seconds": 6.286,
|
||||
"shared_works_load_seconds": 0.331
|
||||
},
|
||||
{
|
||||
"author_id": "A5100373745",
|
||||
"author_name": "Xiaohong Chen",
|
||||
"scope": "live",
|
||||
"n_patents": 31,
|
||||
"n_coauthors": 230,
|
||||
"n_shared_contexts": 3,
|
||||
"n_institution_alias_records": 2140,
|
||||
"coauthor_load_seconds": 0.797,
|
||||
"alias_load_seconds": 164.079,
|
||||
"shared_works_load_seconds": 0.634
|
||||
},
|
||||
{
|
||||
"author_id": "A5023982706",
|
||||
"author_name": "Richard Smith",
|
||||
"scope": "live",
|
||||
"n_patents": 19,
|
||||
"n_coauthors": 252,
|
||||
"n_shared_contexts": 0,
|
||||
"n_institution_alias_records": 172,
|
||||
"coauthor_load_seconds": 0.881,
|
||||
"alias_load_seconds": 24.048,
|
||||
"shared_works_load_seconds": 0.274
|
||||
}
|
||||
]
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"production_filter_changed": false,
|
||||
"semantic_v1_decision_rules_changed": false,
|
||||
"gold_changed": false,
|
||||
"candidate_pools_changed": false,
|
||||
"webapp_changed": false,
|
||||
"unique_authors_unchanged": true,
|
||||
"hardcoding_clean": true,
|
||||
"baselines_match": true,
|
||||
"topic_filter_sha256": "f70d6b07a4ea8b79d266a6ed2ef1fcd87395b1acf2e5240c35caf4c528dfa53f",
|
||||
"semantic_v1_frozen_sha256": "3a6656006912f5b5d0ab85aa01c29c1dc5caf8c198b403cfcb145fd1ef4b77b9",
|
||||
"final_guard_sha256": "18ccd99bff324072559003270b8edd9b2e09e4ab59035967b10f58a80329d7a8"
|
||||
}
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"status": "FINAL / FROZEN AFTER EVALUATION",
|
||||
"variant": "production_with_semantic_fallback_v1_and_final_identity_guard",
|
||||
"verdict": "FINAL_IDENTITY_GUARD_ACCEPTED",
|
||||
"candidate": {
|
||||
"production": {
|
||||
"tp": 32,
|
||||
"fp": 2,
|
||||
"fn": 57,
|
||||
"tn": 40,
|
||||
"precision": 0.9411764705882353,
|
||||
"recall": 0.3595505617977528,
|
||||
"f1": 0.5203252032520325
|
||||
},
|
||||
"semantic_v1": {
|
||||
"tp": 60,
|
||||
"fp": 5,
|
||||
"fn": 29,
|
||||
"tn": 37,
|
||||
"precision": 0.9230769230769231,
|
||||
"recall": 0.6741573033707865,
|
||||
"f1": 0.7792207792207791
|
||||
},
|
||||
"guard_v1": {
|
||||
"tp": 52,
|
||||
"fp": 2,
|
||||
"fn": 37,
|
||||
"tn": 40,
|
||||
"precision": 0.9629629629629629,
|
||||
"recall": 0.5842696629213483,
|
||||
"f1": 0.7272727272727273
|
||||
},
|
||||
"guard_v2": {
|
||||
"tp": 60,
|
||||
"fp": 2,
|
||||
"fn": 29,
|
||||
"tn": 40,
|
||||
"precision": 0.967741935483871,
|
||||
"recall": 0.6741573033707865,
|
||||
"f1": 0.794701986754967
|
||||
},
|
||||
"final": {
|
||||
"tp": 57,
|
||||
"fp": 2,
|
||||
"fn": 32,
|
||||
"tn": 40,
|
||||
"precision": 0.9661016949152542,
|
||||
"recall": 0.6404494382022472,
|
||||
"f1": 0.7702702702702703
|
||||
}
|
||||
},
|
||||
"family": {
|
||||
"production": {
|
||||
"tp": 30,
|
||||
"fp": 2,
|
||||
"fn": 37,
|
||||
"tn": 33,
|
||||
"precision": 0.9375,
|
||||
"recall": 0.44776119402985076,
|
||||
"f1": 0.6060606060606061
|
||||
},
|
||||
"semantic_v1": {
|
||||
"tp": 49,
|
||||
"fp": 5,
|
||||
"fn": 18,
|
||||
"tn": 30,
|
||||
"precision": 0.9074074074074074,
|
||||
"recall": 0.7313432835820896,
|
||||
"f1": 0.8099173553719008
|
||||
},
|
||||
"guard_v1": {
|
||||
"tp": 43,
|
||||
"fp": 2,
|
||||
"fn": 24,
|
||||
"tn": 33,
|
||||
"precision": 0.9555555555555556,
|
||||
"recall": 0.6417910447761194,
|
||||
"f1": 0.7678571428571429
|
||||
},
|
||||
"guard_v2": {
|
||||
"tp": 49,
|
||||
"fp": 2,
|
||||
"fn": 18,
|
||||
"tn": 33,
|
||||
"precision": 0.9607843137254902,
|
||||
"recall": 0.7313432835820896,
|
||||
"f1": 0.8305084745762712
|
||||
},
|
||||
"final": {
|
||||
"tp": 47,
|
||||
"fp": 2,
|
||||
"fn": 20,
|
||||
"tn": 33,
|
||||
"precision": 0.9591836734693877,
|
||||
"recall": 0.7014925373134329,
|
||||
"f1": 0.810344827586207
|
||||
}
|
||||
},
|
||||
"unique_unchanged": true,
|
||||
"hardcoding": {
|
||||
"clean": true,
|
||||
"detail": {
|
||||
"authors": {
|
||||
"Thomas Kaiser": false,
|
||||
"Christian Weber": false,
|
||||
"Xiaohong Chen": false,
|
||||
"Richard Smith": false,
|
||||
"Dirk Schadendorf": false
|
||||
},
|
||||
"institutions": {
|
||||
"Bayer": false,
|
||||
"Infineon": false,
|
||||
"DKFZ": false,
|
||||
"Shanghai": false
|
||||
},
|
||||
"fields": {
|
||||
"Medicine": false,
|
||||
"Engineering": false,
|
||||
"Physics": false
|
||||
},
|
||||
"ipc": {
|
||||
"A61": false,
|
||||
"H04": false,
|
||||
"F16": false
|
||||
},
|
||||
"gold_runtime": false
|
||||
}
|
||||
},
|
||||
"query_stats": {
|
||||
"additional_queries": 65,
|
||||
"cache_hits": 0,
|
||||
"shared_works_queries": 17,
|
||||
"coauthor_loads": 24,
|
||||
"alias_loads": 24
|
||||
},
|
||||
"elapsed_seconds": 278.377,
|
||||
"live": [
|
||||
{
|
||||
"author": "Thomas Kaiser A5111380960",
|
||||
"author_id": "A5111380960",
|
||||
"semantic_v1": 149,
|
||||
"guard_v1": 22,
|
||||
"guard_v2": 25,
|
||||
"final": 25,
|
||||
"final_replay_v1": 25,
|
||||
"final_replay_v2": 25,
|
||||
"production_keeps": 22,
|
||||
"semantic_v1_adds": 127,
|
||||
"works_count": 2,
|
||||
"openalex_full_name_count": 24,
|
||||
"openalex_coauthor_count": 4,
|
||||
"author_ambiguous": true
|
||||
},
|
||||
{
|
||||
"author": "Thomas Kaiser A5071644998",
|
||||
"author_id": "A5071644998",
|
||||
"semantic_v1": 43,
|
||||
"guard_v1": 3,
|
||||
"guard_v2": 4,
|
||||
"final": 4,
|
||||
"final_replay_v1": 3,
|
||||
"final_replay_v2": 4,
|
||||
"production_keeps": 3,
|
||||
"semantic_v1_adds": 40,
|
||||
"works_count": 542,
|
||||
"openalex_full_name_count": 24,
|
||||
"openalex_coauthor_count": 134,
|
||||
"author_ambiguous": true
|
||||
},
|
||||
{
|
||||
"author": "Dirk Schadendorf",
|
||||
"author_id": "A5034365278",
|
||||
"semantic_v1": 6,
|
||||
"guard_v1": 5,
|
||||
"guard_v2": 6,
|
||||
"final": 6,
|
||||
"final_replay_v1": 5,
|
||||
"final_replay_v2": 6,
|
||||
"production_keeps": 3,
|
||||
"semantic_v1_adds": 3,
|
||||
"works_count": 2376,
|
||||
"openalex_full_name_count": 26,
|
||||
"openalex_coauthor_count": 656,
|
||||
"author_ambiguous": true
|
||||
},
|
||||
{
|
||||
"author": "Christian Weber",
|
||||
"author_id": "A5100603203",
|
||||
"semantic_v1": 13,
|
||||
"guard_v1": 9,
|
||||
"guard_v2": 13,
|
||||
"final": 11,
|
||||
"final_replay_v1": 9,
|
||||
"final_replay_v2": 13,
|
||||
"production_keeps": 8,
|
||||
"semantic_v1_adds": 5,
|
||||
"works_count": 1837,
|
||||
"openalex_full_name_count": 70,
|
||||
"openalex_coauthor_count": 356,
|
||||
"author_ambiguous": true
|
||||
},
|
||||
{
|
||||
"author": "Xiaohong Chen",
|
||||
"author_id": "A5100373745",
|
||||
"semantic_v1": 31,
|
||||
"guard_v1": 8,
|
||||
"guard_v2": 10,
|
||||
"final": 8,
|
||||
"final_replay_v1": 8,
|
||||
"final_replay_v2": 10,
|
||||
"production_keeps": 8,
|
||||
"semantic_v1_adds": 23,
|
||||
"works_count": 19059,
|
||||
"openalex_full_name_count": 119,
|
||||
"openalex_coauthor_count": 230,
|
||||
"author_ambiguous": true
|
||||
},
|
||||
{
|
||||
"author": "Richard Smith",
|
||||
"author_id": "A5023982706",
|
||||
"semantic_v1": 19,
|
||||
"guard_v1": 2,
|
||||
"guard_v2": 2,
|
||||
"final": 2,
|
||||
"final_replay_v1": 2,
|
||||
"final_replay_v2": 2,
|
||||
"production_keeps": 2,
|
||||
"semantic_v1_adds": 17,
|
||||
"works_count": 47952,
|
||||
"openalex_full_name_count": 101,
|
||||
"openalex_coauthor_count": 252,
|
||||
"author_ambiguous": true
|
||||
}
|
||||
]
|
||||
}
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
# Production + Semantic Fallback V1
|
||||
|
||||
|
||||
## Ziel
|
||||
|
||||
Semantic ausschließlich als Fallback nach Production. Ein von Production akzeptiertes Patent darf durch Semantic niemals wieder entfernt werden.
|
||||
|
||||
Für von Production abgelehnte Patente wird zusätzlich geprüft, ob Patent- und Autorenthemen semantisch ausreichend ähnlich sind.
|
||||
|
||||
## Logik
|
||||
|
||||
```text
|
||||
Production KEEP
|
||||
→ KEEP
|
||||
|
||||
Production REJECT
|
||||
→ Semantic Topic Fallback
|
||||
|
||||
Semantic Match erfolgreich
|
||||
→ KEEP
|
||||
|
||||
Semantic Match nicht erfolgreich
|
||||
→ REJECT
|
||||
```
|
||||
|
||||
Feature-Flag: `ENABLE_SEMANTIC_TOPIC_FALLBACK`.
|
||||
|
||||
## Daten
|
||||
|
||||
Fixed Sample, bereits zur Entwicklung/Analyse verwendet:
|
||||
|
||||
- 18 Autoren
|
||||
- 131 Kandidaten
|
||||
- 89 positiv / 42 negativ
|
||||
|
||||
Keine neuen Gold-Labels. Keine neuen Candidate Pools.
|
||||
|
||||
## Ergebnisse
|
||||
|
||||
Candidate-Level:
|
||||
|
||||
| Variante | TP | FP | FN | TN | P | R | F1 |
|
||||
| --- | --- | --- | --- | --- | --- | --- | --- |
|
||||
| Production | 32 | 2 | 57 | 40 | 0.941 | 0.360 | 0.520 |
|
||||
| standalone semantic_topic_fallback_v1 | 52 | 5 | 37 | 37 | 0.912 | 0.584 | 0.712 |
|
||||
| production_with_semantic_fallback_v1 | 60 | 5 | 29 | 37 | 0.923 | 0.674 | 0.779 |
|
||||
|
||||
|
||||
Production-Keep durch Combined verloren: **0**.
|
||||
|
||||
## Per Field
|
||||
|
||||
|
||||
| Field | Prod F1 | Comb F1 |
|
||||
| --- | --- | --- |
|
||||
| Biology / Biotechnology| 0.933 | 0.875 |
|
||||
| Chemistry | 0.636 | 0.968 |
|
||||
| Medicine / Health Sciences| 0.667 | 0.833 |
|
||||
| Physics | 0.345 | 0.737 |
|
||||
| Engineering | 0.462 | 0.750 |
|
||||
|
||||
## Neue Treffer
|
||||
|
||||
Nur `Production = reject` und `Combined = keep` (siehe `changed_decisions.csv`):
|
||||
|
||||
- neue Candidate-TP: **28**
|
||||
- neue Candidate-FP: **3**
|
||||
- zusätzliche Family-TP: **19**
|
||||
- zusätzliche Family-FP: **3**
|
||||
|
||||
## Fazit
|
||||
|
||||
Auf diesem Fixed Sample erhöht der Fallback den Recall, ohne Production-Treffer zu verlieren.
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
author,patent,gold_label,field,semantic_score,patent_topic,author_topic,IPC/CPC,reason,family_id
|
||||
Martin Wahl,US12150539,False,Biology / Biotechnology,0.92552,Water Resources and Sustainability,Marine Biology and Environmental Chemistry,A45F 3/04 | A45C 5/06 | A45C 7/00 | A45C 13/02 | A45F 3/00 | A45C 7/0027 | A45C 2013/025 | A45F 2003/003,semantic_similarity>=0.75,USPTO:15944388
|
||||
Clemens Aigner,US12115902,False,Medicine / Health Sciences,0.915902,Healthcare Technology and Patient Monitoring,Transplantation: Methods and Outcomes,F21S 41/63 | B60Q 1/14 | G09G 3/00 | B60Q 11/00 | B60Q 1/1415 | G09G 3/001 | B60Q 11/005,semantic_similarity>=0.75,USPTO:18397838
|
||||
Krishna Niyogi,EP3464601,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12N 15/82,semantic_similarity>=0.75,EPO:17729973.2
|
||||
Krishna Niyogi,US12529064,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12N 15/82 | C07K 14/415 | C12N 9/02 | C12N 15/8269 | C12Y 110/99003 | C12Y 114/1309 | C12N 9/0073,semantic_similarity>=0.75,USPTO:18057190
|
||||
Krishna Niyogi,US12054727,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12N 15/82 | C12N 15/8273,semantic_similarity>=0.75,USPTO:16808881
|
||||
Krishna Niyogi,US11572569,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12N 15/82 | C07K 14/415 | C12N 9/02 | C12N 15/8269 | C12Y 110/99003 | C12Y 114/1309 | C12N 9/0055 | C12N 9/0073,semantic_similarity>=0.75,USPTO:16304633
|
||||
Krishna Niyogi,US11124819,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12P 23/00 | C12N 15/52 | C12N 1/12 | C12N 15/67 | C12N 15/79 | C12N 9/10 | C12N 9/1025 | C12Y 203/0102,semantic_similarity>=0.75,USPTO:15922763
|
||||
Krishna Niyogi,US10480003,True,Physics,0.929254,Oil Spill Detection and Mitigation,Earthquake Detection and Analysis,C12N 15/82 | C12N 15/8269 | C12N 15/8243 | Y02P 60/247,semantic_similarity>=0.75,USPTO:15230332
|
||||
Krishna Niyogi,US10336989,True,Physics,0.918819,Polar Research and Ecology,Geophysics and Gravity Measurements,C12N 15/82 | C12N 9/02 | C12N 9/0055 | C12N 15/825 | C12N 15/8269 | C12Y 110/99003,semantic_similarity>=0.75,USPTO:15625798
|
||||
Martin Glas,EP2324111,True,Medicine / Health Sciences,0.916255,Microbial metabolism and enzyme function,"Cancer, Hypoxia, and Metabolism",C12N 5/095 | G01N 33/50,semantic_similarity>=0.75,EPO:09778433.4
|
||||
Martin Glas,EP2424977,True,Medicine / Health Sciences,0.921836,Neurofibromatosis and Schwannoma Cases,Meningioma and schwannoma management,C12N 5/07 | A61P 35/00 | A61K 35/30,semantic_similarity>=0.75,EPO:10721372.0
|
||||
Hendrik Milting,EP2074429,True,Engineering,0.896967,Food and Agricultural Sciences,Cardiac electrophysiology and arrhythmias,G01N 33/68 | C12Q 1/68,semantic_similarity>=0.75,EPO:07818669.9
|
||||
Hendrik Milting,EP2134859,True,Engineering,0.896967,Food and Agricultural Sciences,Cardiac electrophysiology and arrhythmias,C12Q 1/37 | G01N 33/68,semantic_similarity>=0.75,EPO:08734838.9
|
||||
Hendrik Milting,EP2087359,True,Engineering,0.896967,Food and Agricultural Sciences,Cardiac electrophysiology and arrhythmias,G01N 33/68 | G01N 33/50,semantic_similarity>=0.75,EPO:07818642.6
|
||||
Hendrik Milting,EP2074429,True,Engineering,0.896967,Food and Agricultural Sciences,Cardiac electrophysiology and arrhythmias,G01N 33/68 | C12Q 1/68,semantic_similarity>=0.75,EPO:07818669.9
|
||||
Manfred Berroth,EP2703858,True,Physics,0.971175,Optical Systems and Laser Technology,Semiconductor Lasers and Optical Devices,G02B 6/30,semantic_similarity>=0.75,EPO:12006205.4
|
||||
Manfred Berroth,EP1372024,True,Physics,0.919687,Nonlinear Optical Materials Studies,Photonic and Optical Devices,G02F 1/1333,semantic_similarity>=0.75,EPO:02360172.7
|
||||
Sebastian Schlücker,EP2193374,True,Chemistry,0.959088,Spectroscopy and Chemometric Analyses,Spectroscopy and Quantum Chemical Studies,G01N 33/532 | G01N 33/58 | G01N 21/65,semantic_similarity>=0.75,EPO:08802574.7
|
||||
Robert Weigel,EP1488508,True,Engineering,0.928742,Power Systems and Renewable Energy,Microwave Engineering and Waveguides,H03C 3/09,semantic_similarity>=0.75,EPO:03720131.6
|
||||
Robert Weigel,EP1488508,True,Engineering,0.928742,Power Systems and Renewable Energy,Microwave Engineering and Waveguides,H03C 3/09,semantic_similarity>=0.75,EPO:03720131.6
|
||||
Roland Boese,EP2247585,True,Chemistry,0.934338,Catalytic Cross-Coupling Reactions,Organometallic Complex Synthesis and Catalysis,C07D 403/06 | A61K 31/404 | A61P 35/00,semantic_similarity>=0.75,EPO:09717772.9
|
||||
Roland Boese,EP2604603,True,Chemistry,0.934338,Catalytic Cross-Coupling Reactions,Organometallic Complex Synthesis and Catalysis,C07D 403/06 | A61K 31/404 | A61P 35/00,semantic_similarity>=0.75,EPO:13158832.9
|
||||
Roland Boese,EP2247585,True,Chemistry,0.934338,Catalytic Cross-Coupling Reactions,Organometallic Complex Synthesis and Catalysis,C07D 403/06 | A61K 31/404 | A61P 35/00,semantic_similarity>=0.75,EPO:09717772.9
|
||||
Roland Boese,EP2128160,True,Chemistry,0.930522,Synthesis and Properties of Aromatic Compounds,Synthesis and characterization of novel inorganic/organometallic compounds,C07D 471/04 | A61K 31/437 | A61K 31/4375 | A61P 31/00 | A61P 31/12 | A61P 35/00,semantic_similarity>=0.75,EPO:08008254.8
|
||||
Roland Boese,EP2098521,True,Chemistry,0.934338,Catalytic Cross-Coupling Reactions,Organometallic Complex Synthesis and Catalysis,C07D 403/06 | A61K 31/404 | A61P 35/00,semantic_similarity>=0.75,EPO:08004143.7
|
||||
Roland Boese,EP0153989,True,Chemistry,0.93463,X-ray Diffraction in Crystallography,Crystallography and molecular interactions,G01N 23/207,semantic_similarity>=0.75,EPO:84110796
|
||||
Roland Boese,EP0153989,True,Chemistry,0.93463,X-ray Diffraction in Crystallography,Crystallography and molecular interactions,G01N 23/207,semantic_similarity>=0.75,EPO:84110796.4
|
||||
Dirk Schadendorf,EP2932264,True,Medicine / Health Sciences,0.932676,Biosimilars and Bioanalytical Methods,Immunotherapy and Immune Responses,G01N 33/50 | C12N 15/00 | C07K 16/00 | A61K 38/00,semantic_similarity>=0.75,EPO:13818713.3
|
||||
Dirk Schadendorf,EP1349871,True,Medicine / Health Sciences,0.934969,Cancer-related Molecular Pathways,Melanoma and MAPK Pathways,C07K 14/47 | C07K 16/30 | C12Q 1/68,semantic_similarity>=0.75,EPO:01993706.9
|
||||
Dirk Schadendorf,EP1228224,True,Medicine / Health Sciences,0.949736,Bacterial Infections and Vaccines,Immunotherapy and Immune Responses,C12N 15/75 | A61K 39/02 | C12N 1/21,semantic_similarity>=0.75,EPO:00983012.6
|
||||
Masayuki Shibuya,US09979004,False,Chemistry,0.93432,Machine Fault Diagnosis Techniques,Plasma Diagnostics and Applications,B32B 15/01 | H01M 2/26 | B23K 20/04 | B23K 11/00 | B23K 11/11 | B23K 20/233 | C22F 1/08 | B23K 101/28,semantic_similarity>=0.75,USPTO:13701230
|
||||
|
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"variant": "production_with_semantic_fallback_v1",
|
||||
"status": "experimental / evaluation-backed, not independently validated",
|
||||
"created_at": "20260817T034544Z",
|
||||
"logic": "if production_kept: keep; else: semantic_topic_fallback_v1",
|
||||
"semantic_variant": "semantic_topic_fallback_v1",
|
||||
"model": "intfloat/multilingual-e5-base",
|
||||
"threshold": 0.75,
|
||||
"feature_flag": "ENABLE_SEMANTIC_TOPIC_FALLBACK",
|
||||
"feature_flag_default": false,
|
||||
"sample": {
|
||||
"name": "fixed_sample",
|
||||
"tracks": [
|
||||
"experiment_1",
|
||||
"experiment_2",
|
||||
"experiment_3"
|
||||
],
|
||||
"authors": 18,
|
||||
"candidates": 131,
|
||||
"positives": 89,
|
||||
"negatives": 42,
|
||||
"used_for_development": true
|
||||
},
|
||||
"inputs": {
|
||||
"diagnosis": "data\\author_patent_evaluation\\aggregate_field_analysis\\diagnosis\\field_error_analysis.json",
|
||||
"semantic_decisions": "data\\author_patent_evaluation\\aggregate_field_analysis\\experiments\\semantic_topic_fallback_v1\\candidate_decisions.json"
|
||||
},
|
||||
"no_retune": true,
|
||||
"gold_labels_modified": false,
|
||||
"candidate_pools_modified": false,
|
||||
"keyword_search_modified": false,
|
||||
"institution_search_modified": false,
|
||||
"production_filter_function_modified": false
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
variant,tp,fp,fn,tn,precision,recall,f1
|
||||
production,30,2,37,33,0.9375,0.44776119402985076,0.6060606060606061
|
||||
semantic_topic_fallback_v1,41,5,26,30,0.8913043478260869,0.6119402985074627,0.7256637168141593
|
||||
production_with_semantic_fallback_v1,49,5,18,30,0.9074074074074074,0.7313432835820896,0.8099173553719008
|
||||
|
+19
@@ -0,0 +1,19 @@
|
||||
field,variant,n,tp,fp,fn,tn,precision,recall,f1,engineering_sample_note
|
||||
Biology / Biotechnology,production,17,7,0,1,9,1.0,0.875,0.9333333333333333,
|
||||
Biology / Biotechnology,semantic_topic_fallback_v1,17,7,1,1,8,0.875,0.875,0.875,
|
||||
Biology / Biotechnology,production_with_semantic_fallback_v1,17,7,1,1,8,0.875,0.875,0.875,
|
||||
Chemistry,production,21,7,0,8,6,1.0,0.4666666666666667,0.6363636363636364,
|
||||
Chemistry,semantic_topic_fallback_v1,21,15,1,0,5,0.9375,1.0,0.967741935483871,
|
||||
Chemistry,production_with_semantic_fallback_v1,21,15,1,0,5,0.9375,1.0,0.967741935483871,
|
||||
Medicine / Health Sciences,production,36,10,0,10,16,1.0,0.5,0.6666666666666666,
|
||||
Medicine / Health Sciences,semantic_topic_fallback_v1,36,11,1,9,15,0.9166666666666666,0.55,0.6874999999999999,
|
||||
Medicine / Health Sciences,production_with_semantic_fallback_v1,36,15,1,5,15,0.9375,0.75,0.8333333333333334,
|
||||
Physics,production,33,5,0,19,9,1.0,0.20833333333333334,0.3448275862068966,
|
||||
Physics,semantic_topic_fallback_v1,33,13,0,11,9,1.0,0.5416666666666666,0.7027027027027027,
|
||||
Physics,production_with_semantic_fallback_v1,33,14,0,10,9,1.0,0.5833333333333334,0.7368421052631579,
|
||||
Engineering,production,12,0,2,10,0,0.0,0.0,,known field/homonym/mapping issues
|
||||
Engineering,semantic_topic_fallback_v1,12,6,2,4,0,0.75,0.6,0.6666666666666665,known field/homonym/mapping issues
|
||||
Engineering,production_with_semantic_fallback_v1,12,6,2,4,0,0.75,0.6,0.6666666666666665,known field/homonym/mapping issues
|
||||
Other,production,12,3,0,9,0,1.0,0.25,0.4,
|
||||
Other,semantic_topic_fallback_v1,12,0,0,12,0,,0.0,,
|
||||
Other,production_with_semantic_fallback_v1,12,3,0,9,0,1.0,0.25,0.4,
|
||||
|
+7
@@ -0,0 +1,7 @@
|
||||
level,variant,tp,fp,fn,tn,precision,recall,f1
|
||||
candidate,production,32,2,57,40,0.9411764705882353,0.3595505617977528,0.5203252032520325
|
||||
candidate,semantic_topic_fallback_v1,52,5,37,37,0.9122807017543859,0.5842696629213483,0.7123287671232877
|
||||
candidate,production_with_semantic_fallback_v1,60,5,29,37,0.9230769230769231,0.6741573033707865,0.7792207792207791
|
||||
family,production,30,2,37,33,0.9375,0.44776119402985076,0.6060606060606061
|
||||
family,semantic_topic_fallback_v1,41,5,26,30,0.8913043478260869,0.6119402985074627,0.7256637168141593
|
||||
family,production_with_semantic_fallback_v1,49,5,18,30,0.9074074074074074,0.7313432835820896,0.8099173553719008
|
||||
|
+67
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"created_at": "20260817T034544Z",
|
||||
"variant": "production_with_semantic_fallback_v1",
|
||||
"status": "experimental / evaluation-backed, not independently validated",
|
||||
"checks": {
|
||||
"production_keep_never_rejected": {
|
||||
"pass": true,
|
||||
"count": 0
|
||||
},
|
||||
"frozen_decide_matches_stored_semantic_v1": {
|
||||
"pass": true,
|
||||
"count": 0
|
||||
},
|
||||
"threshold_is_0_75": {
|
||||
"pass": true,
|
||||
"value": 0.75
|
||||
},
|
||||
"model_is_multilingual_e5_base": {
|
||||
"pass": true,
|
||||
"value": "intfloat/multilingual-e5-base"
|
||||
},
|
||||
"gold_labels_not_in_decision_logic": {
|
||||
"pass": true
|
||||
},
|
||||
"production_candidate_metrics_unchanged": {
|
||||
"pass": true,
|
||||
"observed": {
|
||||
"tp": 32,
|
||||
"fp": 2,
|
||||
"fn": 57,
|
||||
"tn": 40,
|
||||
"precision": 0.9411764705882353,
|
||||
"recall": 0.3595505617977528,
|
||||
"f1": 0.5203252032520325
|
||||
}
|
||||
},
|
||||
"keyword_search_untouched": {
|
||||
"pass": true,
|
||||
"path": "service/src/main/inse/patents/keywords/logic.py",
|
||||
"note": "not modified by this integration"
|
||||
},
|
||||
"institution_search_untouched": {
|
||||
"pass": true,
|
||||
"path": "service/src/main/inse/patents/institutions/logic.py",
|
||||
"note": "not modified by this integration"
|
||||
},
|
||||
"candidate_pools_untouched": {
|
||||
"pass": true,
|
||||
"hashes": {
|
||||
"experiment_1": "742069ce4f0a72d5bf9e174e6c10ea66efc01eb6ad1cf45d6e0d5b96598fe499",
|
||||
"experiment_2": "bc65024992ac4acc0c4066eed225a505259870c4f5eea8634e53ee2ccd925f02",
|
||||
"experiment_3": "22c74edb7020762d64b82990636bb958d10b5eed371d7643f0fe3afc5843fd6b"
|
||||
}
|
||||
},
|
||||
"feature_flag_default_off": {
|
||||
"pass": true,
|
||||
"constant": "ENABLE_SEMANTIC_TOPIC_FALLBACK",
|
||||
"setting": "enable_semantic_topic_fallback",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"files_sha256": {
|
||||
"topic_filter.py": "f70d6b07a4ea8b79d266a6ed2ef1fcd87395b1acf2e5240c35caf4c528dfa53f",
|
||||
"keywords/logic.py": "9420c80f55cc8d52681ca06e3411027d9a8173a5b735827d38b0c40810e2e2a9",
|
||||
"institutions/logic.py": "25898ac6d2298b8592c25478d00cde42369673c6d582bc659e4b35f86e9bf8f3"
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"candidate": {
|
||||
"production": {
|
||||
"tp": 32,
|
||||
"fp": 2,
|
||||
"fn": 57,
|
||||
"tn": 40,
|
||||
"precision": 0.9411764705882353,
|
||||
"recall": 0.3595505617977528,
|
||||
"f1": 0.5203252032520325
|
||||
},
|
||||
"semantic_topic_fallback_v1": {
|
||||
"tp": 52,
|
||||
"fp": 5,
|
||||
"fn": 37,
|
||||
"tn": 37,
|
||||
"precision": 0.9122807017543859,
|
||||
"recall": 0.5842696629213483,
|
||||
"f1": 0.7123287671232877
|
||||
},
|
||||
"production_with_semantic_fallback_v1": {
|
||||
"tp": 60,
|
||||
"fp": 5,
|
||||
"fn": 29,
|
||||
"tn": 37,
|
||||
"precision": 0.9230769230769231,
|
||||
"recall": 0.6741573033707865,
|
||||
"f1": 0.7792207792207791
|
||||
}
|
||||
},
|
||||
"family": {
|
||||
"production": {
|
||||
"tp": 30,
|
||||
"fp": 2,
|
||||
"fn": 37,
|
||||
"tn": 33,
|
||||
"precision": 0.9375,
|
||||
"recall": 0.44776119402985076,
|
||||
"f1": 0.6060606060606061
|
||||
},
|
||||
"semantic_topic_fallback_v1": {
|
||||
"tp": 41,
|
||||
"fp": 5,
|
||||
"fn": 26,
|
||||
"tn": 30,
|
||||
"precision": 0.8913043478260869,
|
||||
"recall": 0.6119402985074627,
|
||||
"f1": 0.7256637168141593
|
||||
},
|
||||
"production_with_semantic_fallback_v1": {
|
||||
"tp": 49,
|
||||
"fp": 5,
|
||||
"fn": 18,
|
||||
"tn": 30,
|
||||
"precision": 0.9074074074074074,
|
||||
"recall": 0.7313432835820896,
|
||||
"f1": 0.8099173553719008
|
||||
}
|
||||
},
|
||||
"new_candidate_tp": 28,
|
||||
"new_candidate_fp": 3,
|
||||
"new_family_tp": 19,
|
||||
"new_family_fp": 3,
|
||||
"fields_with_gain": [
|
||||
"Chemistry",
|
||||
"Medicine / Health Sciences",
|
||||
"Physics",
|
||||
"Engineering"
|
||||
],
|
||||
"fields_with_regression": [
|
||||
"Biology / Biotechnology"
|
||||
],
|
||||
"production_keep_losses": 0
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
# semantic_topic_fallback_v1
|
||||
|
||||
Standalone Semantic-Topic-Fallback auf dem Fixed Sample.
|
||||
|
||||
Nicht `production OR semantic`. Production-Keeps können hier durch `domain_conflict` verloren gehen.
|
||||
|
||||
Für von Production abgelehnte Patente wird geprüft, ob Patent- und Autorenthemen semantisch ausreichend ähnlich sind.
|
||||
|
||||
| Variante | P | R | F1 |
|
||||
| --- | ---: | ---: | ---: |
|
||||
| Production | 0.941 | 0.360 | 0.520 |
|
||||
| semantic_topic_fallback_v1 | 0.912 | 0.584 | 0.712 |
|
||||
|
||||
Die kombinierte Variante liegt unter `../production_with_semantic_fallback_v1/`.
|
||||
+4590
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user