Compare commits
574
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f898644d46 | ||
|
|
04c621986d | ||
|
|
b98e484617 | ||
|
|
0b19f6c6af | ||
|
|
cf10f84606 | ||
|
|
49afc6e9a3 | ||
|
|
fb65a98087 | ||
|
|
9fa01ad366 | ||
|
|
3abb33d05b | ||
|
|
be5e4a9da0 | ||
|
|
4626737e08 | ||
|
|
8f475488d5 | ||
|
|
0acf17197d | ||
|
|
82a13c9da3 | ||
|
|
c5dd482116 | ||
|
|
2d23c4d05b | ||
|
|
375ae720d9 | ||
|
|
e7ad579b02 | ||
|
|
2ab5086057 | ||
|
|
fbdad69a1d | ||
|
|
339f12d553 | ||
|
|
cefc8c1b85 | ||
|
|
6794dde27e | ||
|
|
9e4a1c3c69 | ||
|
|
ba834f8596 | ||
|
|
9edb02799c | ||
|
|
05c20a34f7 | ||
|
|
45db15b22b | ||
|
|
1b4d0e053d | ||
|
|
1fe273c747 | ||
|
|
a2a4798ba7 | ||
|
|
4280ac24b8 | ||
|
|
23de1204f8 | ||
|
|
60198c2225 | ||
|
|
e42c81e32a | ||
|
|
ddd5e4e891 | ||
|
|
5d10af42f0 | ||
|
|
e25b5ed41b | ||
|
|
c04f462b08 | ||
|
|
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 | ||
|
|
987ae4ad1a | ||
|
|
d41e3b1e6a | ||
|
|
463c348007 | ||
|
|
f69b3cf871 | ||
|
|
2f90d8f16a | ||
|
|
1f2636b95d | ||
|
|
e101e6e8a7 | ||
|
|
886c941f7f | ||
|
|
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 | ||
|
|
53da57288a | ||
|
|
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 | ||
|
|
be556f09ad | ||
|
|
2fc9722914 | ||
|
|
9e39650899 | ||
|
|
1860e7c371 | ||
|
|
bf5d626209 | ||
|
|
424649ecdc | ||
|
|
11ac6525c1 | ||
|
|
8a684c8b57 | ||
|
|
90ec5c2c8d | ||
|
|
cbbcaa2325 | ||
|
|
e6eabf08c9 | ||
|
|
b616d061bb | ||
|
|
3a78519655 | ||
|
|
c6de85d4a0 | ||
|
|
71fe4a54e7 | ||
|
|
e7afd7e68a | ||
|
|
f25c5cd222 | ||
|
|
0b5c6bed37 | ||
|
|
2d485263d1 | ||
|
|
103b6180d0 | ||
|
|
6edca93c1c | ||
|
|
a7548d59c0 | ||
|
|
8b1f7d6eb3 | ||
|
|
ff3ac03520 | ||
|
|
e51d3095bc | ||
|
|
d19003d531 | ||
|
|
6d5dd88e50 | ||
|
|
de70973296 | ||
|
|
2a5f104739 | ||
|
|
71bd10b303 | ||
|
|
97b7fe6a6f | ||
|
|
eb84d3014f | ||
|
|
2bdee21169 | ||
|
|
a278ad300f | ||
|
|
3d78ec900e | ||
|
|
fc134dad8e | ||
|
|
59a1f765d0 | ||
|
|
0dd2023224 | ||
|
|
d4880b417b | ||
|
|
a7ced052dd | ||
|
|
9ac618ebec | ||
|
|
de6339586f | ||
|
|
97c9e2eec3 | ||
|
|
167913aa85 | ||
|
|
18c9785325 | ||
|
|
f4e0888ce2 | ||
|
|
d3266ee50e | ||
|
|
410bcdec4b |
@@ -4,6 +4,9 @@
|
||||
service/*
|
||||
!service/scripts
|
||||
|
||||
# Keyword extraction contract, shared with background-jobs/app/llm/client.py.
|
||||
!service/src/main/inse/news/keyword_extraction.py
|
||||
|
||||
# Data-only folders that do not belong in the job image.
|
||||
service/scripts/multipliers
|
||||
|
||||
|
||||
+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 @@
|
||||
.venv
|
||||
@@ -0,0 +1,34 @@
|
||||
# Datenqualitäts-Analysen (openalex-authors)
|
||||
|
||||
## Verwendung
|
||||
|
||||
```bash
|
||||
cd analysis/data
|
||||
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
python authors.py --help
|
||||
```
|
||||
|
||||
Beispiele:
|
||||
|
||||
```bash
|
||||
# alle Analysen
|
||||
python authors.py
|
||||
|
||||
# nur eine Analyse
|
||||
python authors.py --analysis 8
|
||||
|
||||
# auf eine Institution eingegrenzt (hier: UDE) und Ergebnis speichern (txt)
|
||||
python authors.py --analysis 8 --filter-uni I62318514 --save
|
||||
```
|
||||
|
||||
## Parameter
|
||||
|
||||
| Parameter | Wert | Bedeutung |
|
||||
| ----------------- | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `--analysis N` | `1`–`8` | Führt nur diese eine Analyse aus. Ohne Angabe laufen **alle acht** nacheinander. |
|
||||
| `--filter-uni ID` | OpenAlex-Institutions-ID, z. B. `I62318514` | Schränkt jede Suche auf Autor:innen dieser Institution ein. Filtert über `affiliations.institution.lineage`, **inklusive Unter-Einheiten** (Institute, Fakultäten). Das Präfix `https://openalex.org/` wird bei Bedarf ergänzt, `I62318514` und die volle URL funktionieren beide. Ohne Angabe wird der gesamte Index durchsucht. |
|
||||
| `--save` | Flag | Schreibt die Ausgabe zusätzlich nach `analysen/run_<timestamp>.txt` (also in diesen Ordner). Der Pfad hängt am Skript-Verzeichnis, nicht am aktuellen Arbeitsverzeichnis — der Aufruf funktioniert also aus jedem `cwd`. Ohne das Flag geht die Ausgabe nur nach stdout. |
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,503 @@
|
||||
Analyse 1: ORCIDs, die von 2 oder mehr Autoren-Dokumenten geteilt werden.
|
||||
ORCID | Anzahl Autoren
|
||||
------------------------------------- | --------------
|
||||
https://orcid.org/0000-0002-1652-6686 | 37
|
||||
https://orcid.org/0000-0002-3394-1507 | 35
|
||||
https://orcid.org/0000-0001-9708-5765 | 34
|
||||
https://orcid.org/0000-0002-3156-3741 | 31
|
||||
https://orcid.org/0000-0001-8829-9817 | 30
|
||||
https://orcid.org/0000-0003-3256-740X | 28
|
||||
https://orcid.org/0000-0003-3875-3561 | 28
|
||||
https://orcid.org/0009-0006-5046-8527 | 28
|
||||
https://orcid.org/0000-0003-1006-7594 | 27
|
||||
https://orcid.org/0000-0002-0439-1390 | 23
|
||||
https://orcid.org/0000-0003-3112-4252 | 23
|
||||
https://orcid.org/0000-0001-8601-2325 | 22
|
||||
https://orcid.org/0000-0002-1276-5858 | 22
|
||||
https://orcid.org/0000-0001-8418-5054 | 21
|
||||
https://orcid.org/0000-0002-0482-2111 | 20
|
||||
https://orcid.org/0000-0002-5163-0489 | 20
|
||||
https://orcid.org/0000-0003-4433-5227 | 19
|
||||
https://orcid.org/0009-0009-5669-1676 | 18
|
||||
https://orcid.org/0000-0002-6157-2016 | 17
|
||||
https://orcid.org/0000-0002-0991-5026 | 16
|
||||
https://orcid.org/0000-0002-3128-9025 | 16
|
||||
https://orcid.org/0000-0001-9286-2123 | 15
|
||||
https://orcid.org/0000-0002-0374-7404 | 15
|
||||
https://orcid.org/0000-0002-3440-2767 | 15
|
||||
https://orcid.org/0000-0002-9627-5433 | 15
|
||||
https://orcid.org/0000-0003-3703-6624 | 15
|
||||
https://orcid.org/0000-0001-5720-6649 | 14
|
||||
https://orcid.org/0000-0001-9725-2316 | 14
|
||||
https://orcid.org/0000-0002-5530-0380 | 14
|
||||
https://orcid.org/0000-0002-9099-6870 | 14
|
||||
https://orcid.org/0000-0003-4067-1127 | 14
|
||||
https://orcid.org/0000-0001-5472-562X | 13
|
||||
https://orcid.org/0000-0001-5818-1682 | 13
|
||||
https://orcid.org/0000-0001-7575-3603 | 13
|
||||
https://orcid.org/0000-0001-9532-5075 | 13
|
||||
https://orcid.org/0000-0002-2413-3858 | 13
|
||||
https://orcid.org/0000-0003-0910-4095 | 13
|
||||
https://orcid.org/0000-0003-1983-3435 | 13
|
||||
https://orcid.org/0000-0001-6463-7869 | 12
|
||||
https://orcid.org/0000-0002-4424-8345 | 12
|
||||
https://orcid.org/0000-0002-6170-4744 | 12
|
||||
https://orcid.org/0000-0002-7836-1100 | 12
|
||||
https://orcid.org/0000-0002-8407-0369 | 12
|
||||
https://orcid.org/0000-0003-0524-1914 | 12
|
||||
https://orcid.org/0009-0002-6108-5477 | 12
|
||||
https://orcid.org/0009-0004-1348-0805 | 12
|
||||
https://orcid.org/0009-0004-8479-2072 | 12
|
||||
https://orcid.org/0009-0008-7694-4987 | 12
|
||||
https://orcid.org/0000-0001-5286-4423 | 11
|
||||
https://orcid.org/0000-0001-6470-4662 | 11
|
||||
https://orcid.org/0000-0001-9234-019X | 11
|
||||
https://orcid.org/0000-0002-4332-3518 | 11
|
||||
https://orcid.org/0000-0002-5806-6403 | 11
|
||||
https://orcid.org/0000-0002-5839-0895 | 11
|
||||
https://orcid.org/0000-0002-6053-902X | 11
|
||||
https://orcid.org/0000-0002-6432-7542 | 11
|
||||
https://orcid.org/0000-0002-8771-3120 | 11
|
||||
https://orcid.org/0000-0003-3966-3111 | 11
|
||||
https://orcid.org/0009-0002-5212-4710 | 11
|
||||
https://orcid.org/0009-0009-8910-1396 | 11
|
||||
https://orcid.org/0000-0001-5866-1504 | 10
|
||||
https://orcid.org/0000-0001-6623-1205 | 10
|
||||
https://orcid.org/0000-0001-6717-0803 | 10
|
||||
https://orcid.org/0000-0001-6825-5956 | 10
|
||||
https://orcid.org/0000-0001-7954-1149 | 10
|
||||
https://orcid.org/0000-0001-8075-2867 | 10
|
||||
https://orcid.org/0000-0001-9061-4281 | 10
|
||||
https://orcid.org/0000-0002-0124-9065 | 10
|
||||
https://orcid.org/0000-0002-1153-816X | 10
|
||||
https://orcid.org/0000-0002-1528-4865 | 10
|
||||
https://orcid.org/0000-0002-2283-1863 | 10
|
||||
https://orcid.org/0000-0002-3236-6766 | 10
|
||||
https://orcid.org/0000-0002-3789-0081 | 10
|
||||
https://orcid.org/0000-0002-5076-7803 | 10
|
||||
https://orcid.org/0000-0002-6925-5189 | 10
|
||||
https://orcid.org/0000-0003-0056-7296 | 10
|
||||
https://orcid.org/0000-0003-1685-7968 | 10
|
||||
https://orcid.org/0000-0003-1785-3491 | 10
|
||||
https://orcid.org/0000-0003-2076-1133 | 10
|
||||
https://orcid.org/0000-0003-2098-3844 | 10
|
||||
https://orcid.org/0000-0003-4632-0213 | 10
|
||||
https://orcid.org/0009-0006-5916-3682 | 10
|
||||
https://orcid.org/0000-0001-5728-871X | 9
|
||||
https://orcid.org/0000-0001-8551-7866 | 9
|
||||
https://orcid.org/0000-0001-9384-6598 | 9
|
||||
https://orcid.org/0000-0001-9548-0358 | 9
|
||||
https://orcid.org/0000-0001-9853-6257 | 9
|
||||
https://orcid.org/0000-0002-0374-1838 | 9
|
||||
https://orcid.org/0000-0002-1122-0055 | 9
|
||||
https://orcid.org/0000-0002-1157-1859 | 9
|
||||
https://orcid.org/0000-0002-3633-7065 | 9
|
||||
https://orcid.org/0000-0002-3864-9257 | 9
|
||||
https://orcid.org/0000-0002-4817-7775 | 9
|
||||
https://orcid.org/0000-0002-6374-458X | 9
|
||||
https://orcid.org/0000-0002-6758-0113 | 9
|
||||
https://orcid.org/0000-0002-6764-4789 | 9
|
||||
https://orcid.org/0000-0002-9763-9155 | 9
|
||||
https://orcid.org/0000-0003-1112-8336 | 9
|
||||
https://orcid.org/0000-0003-4667-3502 | 9
|
||||
https://orcid.org/0009-0000-8033-8498 | 9
|
||||
https://orcid.org/0009-0001-0761-7543 | 9
|
||||
https://orcid.org/0009-0001-4259-5917 | 9
|
||||
https://orcid.org/0009-0002-3680-1224 | 9
|
||||
https://orcid.org/0009-0002-8176-3757 | 9
|
||||
https://orcid.org/0009-0002-8563-7248 | 9
|
||||
https://orcid.org/0009-0006-3511-9329 | 9
|
||||
https://orcid.org/0009-0007-2108-5110 | 9
|
||||
https://orcid.org/0009-0008-8730-8097 | 9
|
||||
https://orcid.org/0009-0009-8845-6742 | 9
|
||||
https://orcid.org/0000-0001-5233-3139 | 8
|
||||
https://orcid.org/0000-0001-5252-0831 | 8
|
||||
https://orcid.org/0000-0001-5775-7993 | 8
|
||||
https://orcid.org/0000-0001-6072-3874 | 8
|
||||
https://orcid.org/0000-0001-6819-6562 | 8
|
||||
https://orcid.org/0000-0001-6923-7936 | 8
|
||||
https://orcid.org/0000-0002-0584-8700 | 8
|
||||
https://orcid.org/0000-0002-1129-2083 | 8
|
||||
https://orcid.org/0000-0002-1959-2363 | 8
|
||||
https://orcid.org/0000-0002-2079-996X | 8
|
||||
https://orcid.org/0000-0002-2106-4041 | 8
|
||||
https://orcid.org/0000-0002-2745-5908 | 8
|
||||
https://orcid.org/0000-0002-3225-2769 | 8
|
||||
https://orcid.org/0000-0002-3365-3927 | 8
|
||||
https://orcid.org/0000-0002-3397-3496 | 8
|
||||
https://orcid.org/0000-0002-3650-4548 | 8
|
||||
https://orcid.org/0000-0002-3934-6004 | 8
|
||||
https://orcid.org/0000-0002-4006-7029 | 8
|
||||
https://orcid.org/0000-0002-4485-6017 | 8
|
||||
https://orcid.org/0000-0002-4974-7004 | 8
|
||||
https://orcid.org/0000-0002-5105-1305 | 8
|
||||
https://orcid.org/0000-0002-5380-9829 | 8
|
||||
https://orcid.org/0000-0002-6047-4211 | 8
|
||||
https://orcid.org/0000-0002-6999-3931 | 8
|
||||
https://orcid.org/0000-0002-7007-9020 | 8
|
||||
https://orcid.org/0000-0002-9808-5035 | 8
|
||||
https://orcid.org/0000-0003-0660-596X | 8
|
||||
https://orcid.org/0000-0003-0664-1653 | 8
|
||||
https://orcid.org/0000-0003-0766-6174 | 8
|
||||
https://orcid.org/0000-0003-1925-4337 | 8
|
||||
https://orcid.org/0000-0003-2320-7621 | 8
|
||||
https://orcid.org/0000-0003-2611-1975 | 8
|
||||
https://orcid.org/0000-0003-2623-3198 | 8
|
||||
https://orcid.org/0000-0003-3223-1797 | 8
|
||||
https://orcid.org/0000-0003-3303-7769 | 8
|
||||
https://orcid.org/0000-0003-4556-7302 | 8
|
||||
https://orcid.org/0000-0003-4813-8167 | 8
|
||||
https://orcid.org/0009-0000-3081-2665 | 8
|
||||
https://orcid.org/0009-0000-4054-8239 | 8
|
||||
https://orcid.org/0009-0001-1173-3651 | 8
|
||||
https://orcid.org/0009-0002-4054-6799 | 8
|
||||
https://orcid.org/0009-0004-1393-6577 | 8
|
||||
https://orcid.org/0009-0004-2581-9917 | 8
|
||||
https://orcid.org/0009-0005-7271-2677 | 8
|
||||
https://orcid.org/0009-0006-1867-9674 | 8
|
||||
https://orcid.org/0009-0007-7218-9227 | 8
|
||||
https://orcid.org/0009-0008-2045-2609 | 8
|
||||
https://orcid.org/0009-0008-2532-8674 | 8
|
||||
https://orcid.org/0009-0009-0129-3267 | 8
|
||||
https://orcid.org/0000-0001-2345-6789 | 7
|
||||
https://orcid.org/0000-0001-5189-230X | 7
|
||||
https://orcid.org/0000-0001-5501-554X | 7
|
||||
https://orcid.org/0000-0001-5987-3189 | 7
|
||||
https://orcid.org/0000-0001-6057-9243 | 7
|
||||
https://orcid.org/0000-0001-6105-5345 | 7
|
||||
https://orcid.org/0000-0001-6436-7547 | 7
|
||||
https://orcid.org/0000-0001-6533-6144 | 7
|
||||
https://orcid.org/0000-0001-6850-7666 | 7
|
||||
https://orcid.org/0000-0001-6883-3752 | 7
|
||||
https://orcid.org/0000-0001-7483-2991 | 7
|
||||
https://orcid.org/0000-0001-7515-3907 | 7
|
||||
https://orcid.org/0000-0001-7945-2867 | 7
|
||||
https://orcid.org/0000-0001-8191-0046 | 7
|
||||
https://orcid.org/0000-0001-8555-5408 | 7
|
||||
https://orcid.org/0000-0001-9190-4547 | 7
|
||||
https://orcid.org/0000-0001-9539-2155 | 7
|
||||
https://orcid.org/0000-0001-9663-4443 | 7
|
||||
https://orcid.org/0000-0002-0117-7831 | 7
|
||||
https://orcid.org/0000-0002-0207-2871 | 7
|
||||
https://orcid.org/0000-0002-0394-5646 | 7
|
||||
https://orcid.org/0000-0002-0869-5631 | 7
|
||||
https://orcid.org/0000-0002-1051-3833 | 7
|
||||
https://orcid.org/0000-0002-1122-2990 | 7
|
||||
https://orcid.org/0000-0002-1695-9481 | 7
|
||||
https://orcid.org/0000-0002-1933-5383 | 7
|
||||
https://orcid.org/0000-0002-2023-2082 | 7
|
||||
https://orcid.org/0000-0002-2115-9382 | 7
|
||||
https://orcid.org/0000-0002-2138-4395 | 7
|
||||
https://orcid.org/0000-0002-2405-915X | 7
|
||||
https://orcid.org/0000-0002-2593-5297 | 7
|
||||
https://orcid.org/0000-0002-2629-4735 | 7
|
||||
https://orcid.org/0000-0002-2699-2189 | 7
|
||||
https://orcid.org/0000-0002-2782-9519 | 7
|
||||
https://orcid.org/0000-0002-3135-5010 | 7
|
||||
https://orcid.org/0000-0002-3348-1221 | 7
|
||||
https://orcid.org/0000-0002-3725-4800 | 7
|
||||
https://orcid.org/0000-0002-4133-5099 | 7
|
||||
https://orcid.org/0000-0002-4242-2450 | 7
|
||||
https://orcid.org/0000-0002-4526-2149 | 7
|
||||
https://orcid.org/0000-0002-4996-1924 | 7
|
||||
https://orcid.org/0000-0002-5540-3750 | 7
|
||||
https://orcid.org/0000-0002-5956-6258 | 7
|
||||
https://orcid.org/0000-0002-6519-4681 | 7
|
||||
https://orcid.org/0000-0002-7602-2527 | 7
|
||||
https://orcid.org/0000-0002-8002-9086 | 7
|
||||
https://orcid.org/0000-0002-8482-1046 | 7
|
||||
https://orcid.org/0000-0002-8640-4350 | 7
|
||||
https://orcid.org/0000-0002-9192-8757 | 7
|
||||
https://orcid.org/0000-0002-9241-3114 | 7
|
||||
https://orcid.org/0000-0002-9581-2778 | 7
|
||||
https://orcid.org/0000-0002-9749-5550 | 7
|
||||
https://orcid.org/0000-0002-9878-6077 | 7
|
||||
https://orcid.org/0000-0003-0195-7456 | 7
|
||||
https://orcid.org/0000-0003-0266-0224 | 7
|
||||
https://orcid.org/0000-0003-0362-8795 | 7
|
||||
https://orcid.org/0000-0003-0383-6930 | 7
|
||||
https://orcid.org/0000-0003-0609-627X | 7
|
||||
https://orcid.org/0000-0003-1287-1471 | 7
|
||||
https://orcid.org/0000-0003-1430-9191 | 7
|
||||
https://orcid.org/0000-0003-1731-7939 | 7
|
||||
https://orcid.org/0000-0003-2298-0102 | 7
|
||||
https://orcid.org/0000-0003-2323-7521 | 7
|
||||
https://orcid.org/0000-0003-2707-2533 | 7
|
||||
https://orcid.org/0000-0003-2868-7177 | 7
|
||||
https://orcid.org/0000-0003-2973-1803 | 7
|
||||
https://orcid.org/0000-0003-3609-4777 | 7
|
||||
https://orcid.org/0000-0003-3895-9092 | 7
|
||||
https://orcid.org/0000-0003-4316-9642 | 7
|
||||
https://orcid.org/0000-0003-4950-5184 | 7
|
||||
https://orcid.org/0009-0000-7239-3374 | 7
|
||||
https://orcid.org/0009-0000-8636-0848 | 7
|
||||
https://orcid.org/0009-0001-7282-8881 | 7
|
||||
https://orcid.org/0009-0002-0885-5145 | 7
|
||||
https://orcid.org/0009-0002-1063-5117 | 7
|
||||
https://orcid.org/0009-0002-3352-6765 | 7
|
||||
https://orcid.org/0009-0002-4224-5527 | 7
|
||||
https://orcid.org/0009-0002-9160-3095 | 7
|
||||
https://orcid.org/0009-0002-9671-101X | 7
|
||||
https://orcid.org/0009-0003-4314-9534 | 7
|
||||
https://orcid.org/0009-0004-6991-0595 | 7
|
||||
https://orcid.org/0009-0005-5603-6306 | 7
|
||||
https://orcid.org/0009-0005-8813-8745 | 7
|
||||
https://orcid.org/0009-0006-9312-0272 | 7
|
||||
https://orcid.org/0009-0007-1509-2728 | 7
|
||||
https://orcid.org/0009-0007-6670-9679 | 7
|
||||
https://orcid.org/0009-0008-0310-0257 | 7
|
||||
https://orcid.org/0009-0009-4592-6687 | 7
|
||||
https://orcid.org/0009-0009-8645-6685 | 7
|
||||
https://orcid.org/0000-0001-5001-672X | 6
|
||||
https://orcid.org/0000-0001-5637-2653 | 6
|
||||
https://orcid.org/0000-0001-5769-5761 | 6
|
||||
https://orcid.org/0000-0001-5854-7699 | 6
|
||||
https://orcid.org/0000-0001-5967-8674 | 6
|
||||
https://orcid.org/0000-0001-6805-0395 | 6
|
||||
https://orcid.org/0000-0001-6996-4834 | 6
|
||||
https://orcid.org/0000-0001-7179-7043 | 6
|
||||
https://orcid.org/0000-0001-7241-2117 | 6
|
||||
https://orcid.org/0000-0001-7833-4711 | 6
|
||||
https://orcid.org/0000-0001-7842-9518 | 6
|
||||
https://orcid.org/0000-0001-7941-4879 | 6
|
||||
https://orcid.org/0000-0001-8178-2494 | 6
|
||||
https://orcid.org/0000-0001-8375-0760 | 6
|
||||
https://orcid.org/0000-0001-8473-4332 | 6
|
||||
https://orcid.org/0000-0001-8569-8409 | 6
|
||||
https://orcid.org/0000-0001-8673-3026 | 6
|
||||
https://orcid.org/0000-0001-8915-3377 | 6
|
||||
https://orcid.org/0000-0001-9025-2225 | 6
|
||||
https://orcid.org/0000-0001-9086-6091 | 6
|
||||
https://orcid.org/0000-0001-9140-9028 | 6
|
||||
https://orcid.org/0000-0001-9234-4465 | 6
|
||||
https://orcid.org/0000-0001-9416-1742 | 6
|
||||
https://orcid.org/0000-0001-9422-1725 | 6
|
||||
https://orcid.org/0000-0001-9473-8935 | 6
|
||||
https://orcid.org/0000-0001-9524-8452 | 6
|
||||
https://orcid.org/0000-0001-9630-2000 | 6
|
||||
https://orcid.org/0000-0001-9734-3162 | 6
|
||||
https://orcid.org/0000-0001-9861-8922 | 6
|
||||
https://orcid.org/0000-0002-0032-4473 | 6
|
||||
https://orcid.org/0000-0002-0034-6576 | 6
|
||||
https://orcid.org/0000-0002-0038-5372 | 6
|
||||
https://orcid.org/0000-0002-0144-6536 | 6
|
||||
https://orcid.org/0000-0002-0264-7217 | 6
|
||||
https://orcid.org/0000-0002-0531-2148 | 6
|
||||
https://orcid.org/0000-0002-0538-8230 | 6
|
||||
https://orcid.org/0000-0002-0595-0297 | 6
|
||||
https://orcid.org/0000-0002-0657-1766 | 6
|
||||
https://orcid.org/0000-0002-0661-5220 | 6
|
||||
https://orcid.org/0000-0002-0664-9199 | 6
|
||||
https://orcid.org/0000-0002-0682-4313 | 6
|
||||
https://orcid.org/0000-0002-0786-7307 | 6
|
||||
https://orcid.org/0000-0002-0798-9806 | 6
|
||||
https://orcid.org/0000-0002-0857-6317 | 6
|
||||
https://orcid.org/0000-0002-1115-4721 | 6
|
||||
https://orcid.org/0000-0002-1231-5136 | 6
|
||||
https://orcid.org/0000-0002-1640-9180 | 6
|
||||
https://orcid.org/0000-0002-2133-9287 | 6
|
||||
https://orcid.org/0000-0002-2140-4309 | 6
|
||||
https://orcid.org/0000-0002-2141-9543 | 6
|
||||
https://orcid.org/0000-0002-2204-5731 | 6
|
||||
https://orcid.org/0000-0002-2495-0524 | 6
|
||||
https://orcid.org/0000-0002-2629-5420 | 6
|
||||
https://orcid.org/0000-0002-2745-7065 | 6
|
||||
https://orcid.org/0000-0002-2896-3867 | 6
|
||||
https://orcid.org/0000-0002-3122-7617 | 6
|
||||
https://orcid.org/0000-0002-3728-2377 | 6
|
||||
https://orcid.org/0000-0002-3812-4944 | 6
|
||||
https://orcid.org/0000-0002-3820-9366 | 6
|
||||
https://orcid.org/0000-0002-3871-0978 | 6
|
||||
https://orcid.org/0000-0002-4125-8898 | 6
|
||||
https://orcid.org/0000-0002-4620-4223 | 6
|
||||
https://orcid.org/0000-0002-4624-2019 | 6
|
||||
https://orcid.org/0000-0002-4743-8718 | 6
|
||||
https://orcid.org/0000-0002-4841-3600 | 6
|
||||
https://orcid.org/0000-0002-4902-5589 | 6
|
||||
https://orcid.org/0000-0002-5005-3042 | 6
|
||||
https://orcid.org/0000-0002-5278-1430 | 6
|
||||
https://orcid.org/0000-0002-5414-8276 | 6
|
||||
https://orcid.org/0000-0002-5661-4330 | 6
|
||||
https://orcid.org/0000-0002-5728-9867 | 6
|
||||
https://orcid.org/0000-0002-5735-4059 | 6
|
||||
https://orcid.org/0000-0002-5736-1398 | 6
|
||||
https://orcid.org/0000-0002-5865-183X | 6
|
||||
https://orcid.org/0000-0002-5890-0445 | 6
|
||||
https://orcid.org/0000-0002-6083-2656 | 6
|
||||
https://orcid.org/0000-0002-6330-0639 | 6
|
||||
https://orcid.org/0000-0002-6469-8415 | 6
|
||||
https://orcid.org/0000-0002-6513-2309 | 6
|
||||
https://orcid.org/0000-0002-6781-416X | 6
|
||||
https://orcid.org/0000-0002-6785-9202 | 6
|
||||
https://orcid.org/0000-0002-6797-7209 | 6
|
||||
https://orcid.org/0000-0002-6941-8478 | 6
|
||||
https://orcid.org/0000-0002-7093-2677 | 6
|
||||
https://orcid.org/0000-0002-7225-8823 | 6
|
||||
https://orcid.org/0000-0002-7447-5602 | 6
|
||||
https://orcid.org/0000-0002-7543-1628 | 6
|
||||
https://orcid.org/0000-0002-7581-846X | 6
|
||||
https://orcid.org/0000-0002-7929-5889 | 6
|
||||
https://orcid.org/0000-0002-7989-6406 | 6
|
||||
https://orcid.org/0000-0002-8030-3866 | 6
|
||||
https://orcid.org/0000-0002-8073-9344 | 6
|
||||
https://orcid.org/0000-0002-8087-3199 | 6
|
||||
https://orcid.org/0000-0002-8255-0086 | 6
|
||||
https://orcid.org/0000-0002-8377-6431 | 6
|
||||
https://orcid.org/0000-0002-8738-1453 | 6
|
||||
https://orcid.org/0000-0002-9054-4372 | 6
|
||||
https://orcid.org/0000-0002-9264-4799 | 6
|
||||
https://orcid.org/0000-0002-9337-3476 | 6
|
||||
https://orcid.org/0000-0002-9557-5186 | 6
|
||||
https://orcid.org/0000-0002-9773-550X | 6
|
||||
https://orcid.org/0000-0002-9783-169X | 6
|
||||
https://orcid.org/0000-0002-9858-8249 | 6
|
||||
https://orcid.org/0000-0002-9922-413X | 6
|
||||
https://orcid.org/0000-0003-0133-1664 | 6
|
||||
https://orcid.org/0000-0003-0355-102X | 6
|
||||
https://orcid.org/0000-0003-0392-8691 | 6
|
||||
https://orcid.org/0000-0003-0523-487X | 6
|
||||
https://orcid.org/0000-0003-0959-4784 | 6
|
||||
https://orcid.org/0000-0003-0996-3279 | 6
|
||||
https://orcid.org/0000-0003-1179-2800 | 6
|
||||
https://orcid.org/0000-0003-1452-7885 | 6
|
||||
https://orcid.org/0000-0003-1455-6272 | 6
|
||||
https://orcid.org/0000-0003-1836-7233 | 6
|
||||
https://orcid.org/0000-0003-1890-2275 | 6
|
||||
https://orcid.org/0000-0003-1899-2266 | 6
|
||||
https://orcid.org/0000-0003-2000-2241 | 6
|
||||
https://orcid.org/0000-0003-2294-7345 | 6
|
||||
https://orcid.org/0000-0003-2375-1563 | 6
|
||||
https://orcid.org/0000-0003-2459-6278 | 6
|
||||
https://orcid.org/0000-0003-2582-6469 | 6
|
||||
https://orcid.org/0000-0003-2663-7379 | 6
|
||||
https://orcid.org/0000-0003-2682-9389 | 6
|
||||
https://orcid.org/0000-0003-2865-8528 | 6
|
||||
https://orcid.org/0000-0003-3086-9260 | 6
|
||||
https://orcid.org/0000-0003-3150-2751 | 6
|
||||
https://orcid.org/0000-0003-3389-2976 | 6
|
||||
https://orcid.org/0000-0003-3887-5358 | 6
|
||||
https://orcid.org/0000-0003-4009-186X | 6
|
||||
https://orcid.org/0000-0003-4221-1802 | 6
|
||||
https://orcid.org/0000-0003-4242-4840 | 6
|
||||
https://orcid.org/0000-0003-4351-0222 | 6
|
||||
https://orcid.org/0000-0003-4530-4422 | 6
|
||||
https://orcid.org/0000-0003-4543-2547 | 6
|
||||
https://orcid.org/0000-0003-4579-728X | 6
|
||||
https://orcid.org/0000-0003-4709-7623 | 6
|
||||
https://orcid.org/0009-0000-3973-2485 | 6
|
||||
https://orcid.org/0009-0000-7046-6533 | 6
|
||||
https://orcid.org/0009-0000-8362-2515 | 6
|
||||
https://orcid.org/0009-0000-9361-3532 | 6
|
||||
https://orcid.org/0009-0001-1326-3956 | 6
|
||||
https://orcid.org/0009-0001-7616-1914 | 6
|
||||
https://orcid.org/0009-0001-9331-5145 | 6
|
||||
https://orcid.org/0009-0002-2161-5808 | 6
|
||||
https://orcid.org/0009-0002-2307-5956 | 6
|
||||
https://orcid.org/0009-0002-2345-7081 | 6
|
||||
https://orcid.org/0009-0002-6494-4695 | 6
|
||||
https://orcid.org/0009-0002-8107-5452 | 6
|
||||
https://orcid.org/0009-0002-9187-7061 | 6
|
||||
https://orcid.org/0009-0003-6977-3669 | 6
|
||||
https://orcid.org/0009-0003-9152-2049 | 6
|
||||
https://orcid.org/0009-0004-1874-2464 | 6
|
||||
https://orcid.org/0009-0004-8274-9863 | 6
|
||||
https://orcid.org/0009-0004-8503-4011 | 6
|
||||
https://orcid.org/0009-0005-2318-6084 | 6
|
||||
https://orcid.org/0009-0005-5039-4874 | 6
|
||||
https://orcid.org/0009-0005-5447-7132 | 6
|
||||
https://orcid.org/0009-0005-5922-8936 | 6
|
||||
https://orcid.org/0009-0005-7626-6600 | 6
|
||||
https://orcid.org/0009-0006-0236-2680 | 6
|
||||
https://orcid.org/0009-0006-1471-986X | 6
|
||||
https://orcid.org/0009-0006-5800-1198 | 6
|
||||
https://orcid.org/0009-0006-6993-8920 | 6
|
||||
https://orcid.org/0009-0006-7450-4510 | 6
|
||||
https://orcid.org/0009-0006-8301-7634 | 6
|
||||
https://orcid.org/0009-0006-8497-9085 | 6
|
||||
https://orcid.org/0009-0007-0410-4607 | 6
|
||||
https://orcid.org/0009-0007-1385-3343 | 6
|
||||
https://orcid.org/0009-0007-4527-7926 | 6
|
||||
https://orcid.org/0009-0008-1549-0440 | 6
|
||||
https://orcid.org/0009-0008-3724-4603 | 6
|
||||
https://orcid.org/0009-0008-5380-3284 | 6
|
||||
https://orcid.org/0009-0009-3354-7794 | 6
|
||||
https://orcid.org/0009-0009-4284-8943 | 6
|
||||
https://orcid.org/0009-0009-6074-6238 | 6
|
||||
https://orcid.org/0009-0009-9522-8588 | 6
|
||||
https://orcid.org/0000-0001-5094-5879 | 5
|
||||
https://orcid.org/0000-0001-5124-7693 | 5
|
||||
https://orcid.org/0000-0001-5144-7900 | 5
|
||||
https://orcid.org/0000-0001-5552-5400 | 5
|
||||
https://orcid.org/0000-0001-5565-7868 | 5
|
||||
https://orcid.org/0000-0001-5646-0602 | 5
|
||||
https://orcid.org/0000-0001-5650-6770 | 5
|
||||
https://orcid.org/0000-0001-5881-4670 | 5
|
||||
https://orcid.org/0000-0001-5961-9033 | 5
|
||||
https://orcid.org/0000-0001-5979-6590 | 5
|
||||
https://orcid.org/0000-0001-5989-9338 | 5
|
||||
https://orcid.org/0000-0001-6153-3896 | 5
|
||||
https://orcid.org/0000-0001-6253-4313 | 5
|
||||
https://orcid.org/0000-0001-6278-9674 | 5
|
||||
https://orcid.org/0000-0001-6279-2267 | 5
|
||||
https://orcid.org/0000-0001-6326-4773 | 5
|
||||
https://orcid.org/0000-0001-6342-3471 | 5
|
||||
https://orcid.org/0000-0001-6453-0447 | 5
|
||||
https://orcid.org/0000-0001-6797-4000 | 5
|
||||
https://orcid.org/0000-0001-6828-9769 | 5
|
||||
https://orcid.org/0000-0001-6867-8166 | 5
|
||||
https://orcid.org/0000-0001-6930-4780 | 5
|
||||
https://orcid.org/0000-0001-6976-6256 | 5
|
||||
https://orcid.org/0000-0001-7256-6714 | 5
|
||||
https://orcid.org/0000-0001-7516-8850 | 5
|
||||
https://orcid.org/0000-0001-7759-1943 | 5
|
||||
https://orcid.org/0000-0001-7770-1102 | 5
|
||||
https://orcid.org/0000-0001-7896-8861 | 5
|
||||
https://orcid.org/0000-0001-8026-5380 | 5
|
||||
https://orcid.org/0000-0001-8049-5143 | 5
|
||||
https://orcid.org/0000-0001-8130-7423 | 5
|
||||
https://orcid.org/0000-0001-8140-4610 | 5
|
||||
https://orcid.org/0000-0001-8204-6157 | 5
|
||||
https://orcid.org/0000-0001-8292-7691 | 5
|
||||
https://orcid.org/0000-0001-8331-4854 | 5
|
||||
https://orcid.org/0000-0001-8367-8703 | 5
|
||||
https://orcid.org/0000-0001-8387-1853 | 5
|
||||
https://orcid.org/0000-0001-8415-6720 | 5
|
||||
https://orcid.org/0000-0001-8430-0446 | 5
|
||||
https://orcid.org/0000-0001-8463-0496 | 5
|
||||
https://orcid.org/0000-0001-8493-3737 | 5
|
||||
https://orcid.org/0000-0001-8647-7077 | 5
|
||||
https://orcid.org/0000-0001-8719-057X | 5
|
||||
https://orcid.org/0000-0001-8751-5944 | 5
|
||||
https://orcid.org/0000-0001-8785-847X | 5
|
||||
https://orcid.org/0000-0001-8791-7978 | 5
|
||||
https://orcid.org/0000-0001-8810-5971 | 5
|
||||
https://orcid.org/0000-0001-8828-3823 | 5
|
||||
https://orcid.org/0000-0001-8829-9681 | 5
|
||||
https://orcid.org/0000-0001-9012-395X | 5
|
||||
https://orcid.org/0000-0001-9031-6751 | 5
|
||||
https://orcid.org/0000-0001-9034-2925 | 5
|
||||
https://orcid.org/0000-0001-9048-4341 | 5
|
||||
https://orcid.org/0000-0001-9094-1493 | 5
|
||||
https://orcid.org/0000-0001-9301-2382 | 5
|
||||
https://orcid.org/0000-0001-9365-6452 | 5
|
||||
https://orcid.org/0000-0001-9440-5807 | 5
|
||||
https://orcid.org/0000-0001-9719-3563 | 5
|
||||
https://orcid.org/0000-0001-9734-574X | 5
|
||||
https://orcid.org/0000-0001-9861-2942 | 5
|
||||
https://orcid.org/0000-0002-0035-3821 | 5
|
||||
https://orcid.org/0000-0002-0044-6470 | 5
|
||||
https://orcid.org/0000-0002-0224-2869 | 5
|
||||
https://orcid.org/0000-0002-0286-5070 | 5
|
||||
https://orcid.org/0000-0002-0550-457X | 5
|
||||
https://orcid.org/0000-0002-0554-4627 | 5
|
||||
https://orcid.org/0000-0002-0608-065X | 5
|
||||
https://orcid.org/0000-0002-0653-0761 | 5
|
||||
https://orcid.org/0000-0002-0672-6895 | 5
|
||||
https://orcid.org/0000-0002-0804-9197 | 5
|
||||
https://orcid.org/0000-0002-0809-1897 | 5
|
||||
https://orcid.org/0000-0002-0870-8420 | 5
|
||||
https://orcid.org/0000-0002-0984-7887 | 5
|
||||
https://orcid.org/0000-0002-1034-1410 | 5
|
||||
https://orcid.org/0000-0002-1182-7869 | 5
|
||||
https://orcid.org/0000-0002-1303-0458 | 5
|
||||
https://orcid.org/0000-0002-1394-9907 | 5
|
||||
@@ -0,0 +1,503 @@
|
||||
Analyse 2: Wie Analyse 1, zusätzlich mit der Anzahl unterschiedlicher display_names je ORCID (exakter Match) — trennt echte Namens-Duplikate von unterschiedlich benannten Autoren mit derselben ORCID.
|
||||
ORCID | Gesamt | Unique Names
|
||||
------------------------------------- | ------ | ------------
|
||||
https://orcid.org/0000-0002-1652-6686 | 37 | 37
|
||||
https://orcid.org/0000-0002-3394-1507 | 35 | 29
|
||||
https://orcid.org/0000-0001-9708-5765 | 34 | 18
|
||||
https://orcid.org/0000-0002-3156-3741 | 31 | 16
|
||||
https://orcid.org/0000-0001-8829-9817 | 30 | 6
|
||||
https://orcid.org/0000-0003-3256-740X | 28 | 2
|
||||
https://orcid.org/0000-0003-3875-3561 | 28 | 28
|
||||
https://orcid.org/0009-0006-5046-8527 | 28 | 17
|
||||
https://orcid.org/0000-0003-1006-7594 | 27 | 27
|
||||
https://orcid.org/0000-0002-0439-1390 | 23 | 17
|
||||
https://orcid.org/0000-0003-3112-4252 | 23 | 12
|
||||
https://orcid.org/0000-0001-8601-2325 | 22 | 5
|
||||
https://orcid.org/0000-0002-1276-5858 | 22 | 6
|
||||
https://orcid.org/0000-0001-8418-5054 | 21 | 19
|
||||
https://orcid.org/0000-0002-0482-2111 | 20 | 19
|
||||
https://orcid.org/0000-0002-5163-0489 | 20 | 1
|
||||
https://orcid.org/0000-0003-4433-5227 | 19 | 15
|
||||
https://orcid.org/0009-0009-5669-1676 | 18 | 1
|
||||
https://orcid.org/0000-0002-6157-2016 | 17 | 14
|
||||
https://orcid.org/0000-0002-0991-5026 | 16 | 13
|
||||
https://orcid.org/0000-0002-3128-9025 | 16 | 14
|
||||
https://orcid.org/0000-0001-9286-2123 | 15 | 7
|
||||
https://orcid.org/0000-0002-0374-7404 | 15 | 15
|
||||
https://orcid.org/0000-0002-3440-2767 | 15 | 13
|
||||
https://orcid.org/0000-0002-9627-5433 | 15 | 15
|
||||
https://orcid.org/0000-0003-3703-6624 | 15 | 12
|
||||
https://orcid.org/0000-0001-5720-6649 | 14 | 9
|
||||
https://orcid.org/0000-0001-9725-2316 | 14 | 13
|
||||
https://orcid.org/0000-0002-5530-0380 | 14 | 11
|
||||
https://orcid.org/0000-0002-9099-6870 | 14 | 10
|
||||
https://orcid.org/0000-0003-4067-1127 | 14 | 8
|
||||
https://orcid.org/0000-0001-5472-562X | 13 | 8
|
||||
https://orcid.org/0000-0001-5818-1682 | 13 | 10
|
||||
https://orcid.org/0000-0001-7575-3603 | 13 | 11
|
||||
https://orcid.org/0000-0001-9532-5075 | 13 | 8
|
||||
https://orcid.org/0000-0002-2413-3858 | 13 | 5
|
||||
https://orcid.org/0000-0003-0910-4095 | 13 | 10
|
||||
https://orcid.org/0000-0003-1983-3435 | 13 | 6
|
||||
https://orcid.org/0000-0001-6463-7869 | 12 | 6
|
||||
https://orcid.org/0000-0002-4424-8345 | 12 | 11
|
||||
https://orcid.org/0000-0002-6170-4744 | 12 | 8
|
||||
https://orcid.org/0000-0002-7836-1100 | 12 | 6
|
||||
https://orcid.org/0000-0002-8407-0369 | 12 | 10
|
||||
https://orcid.org/0000-0003-0524-1914 | 12 | 11
|
||||
https://orcid.org/0009-0002-6108-5477 | 12 | 1
|
||||
https://orcid.org/0009-0004-1348-0805 | 12 | 2
|
||||
https://orcid.org/0009-0004-8479-2072 | 12 | 3
|
||||
https://orcid.org/0009-0008-7694-4987 | 12 | 9
|
||||
https://orcid.org/0000-0001-5286-4423 | 11 | 6
|
||||
https://orcid.org/0000-0001-6470-4662 | 11 | 7
|
||||
https://orcid.org/0000-0001-9234-019X | 11 | 9
|
||||
https://orcid.org/0000-0002-4332-3518 | 11 | 11
|
||||
https://orcid.org/0000-0002-5806-6403 | 11 | 8
|
||||
https://orcid.org/0000-0002-5839-0895 | 11 | 6
|
||||
https://orcid.org/0000-0002-6053-902X | 11 | 8
|
||||
https://orcid.org/0000-0002-6432-7542 | 11 | 8
|
||||
https://orcid.org/0000-0002-8771-3120 | 11 | 6
|
||||
https://orcid.org/0000-0003-3966-3111 | 11 | 1
|
||||
https://orcid.org/0009-0002-5212-4710 | 11 | 1
|
||||
https://orcid.org/0009-0009-8910-1396 | 11 | 1
|
||||
https://orcid.org/0000-0001-5866-1504 | 10 | 9
|
||||
https://orcid.org/0000-0001-6623-1205 | 10 | 9
|
||||
https://orcid.org/0000-0001-6717-0803 | 10 | 6
|
||||
https://orcid.org/0000-0001-6825-5956 | 10 | 1
|
||||
https://orcid.org/0000-0001-7954-1149 | 10 | 3
|
||||
https://orcid.org/0000-0001-8075-2867 | 10 | 9
|
||||
https://orcid.org/0000-0001-9061-4281 | 10 | 3
|
||||
https://orcid.org/0000-0002-0124-9065 | 10 | 1
|
||||
https://orcid.org/0000-0002-1153-816X | 10 | 2
|
||||
https://orcid.org/0000-0002-1528-4865 | 10 | 8
|
||||
https://orcid.org/0000-0002-2283-1863 | 10 | 6
|
||||
https://orcid.org/0000-0002-3236-6766 | 10 | 8
|
||||
https://orcid.org/0000-0002-3789-0081 | 10 | 1
|
||||
https://orcid.org/0000-0002-5076-7803 | 10 | 7
|
||||
https://orcid.org/0000-0002-6925-5189 | 10 | 1
|
||||
https://orcid.org/0000-0003-0056-7296 | 10 | 10
|
||||
https://orcid.org/0000-0003-1685-7968 | 10 | 8
|
||||
https://orcid.org/0000-0003-1785-3491 | 10 | 6
|
||||
https://orcid.org/0000-0003-2076-1133 | 10 | 7
|
||||
https://orcid.org/0000-0003-2098-3844 | 10 | 2
|
||||
https://orcid.org/0000-0003-4632-0213 | 10 | 8
|
||||
https://orcid.org/0009-0006-5916-3682 | 10 | 1
|
||||
https://orcid.org/0000-0001-5728-871X | 9 | 6
|
||||
https://orcid.org/0000-0001-8551-7866 | 9 | 4
|
||||
https://orcid.org/0000-0001-9384-6598 | 9 | 3
|
||||
https://orcid.org/0000-0001-9548-0358 | 9 | 6
|
||||
https://orcid.org/0000-0001-9853-6257 | 9 | 1
|
||||
https://orcid.org/0000-0002-0374-1838 | 9 | 6
|
||||
https://orcid.org/0000-0002-1122-0055 | 9 | 5
|
||||
https://orcid.org/0000-0002-1157-1859 | 9 | 4
|
||||
https://orcid.org/0000-0002-3633-7065 | 9 | 3
|
||||
https://orcid.org/0000-0002-3864-9257 | 9 | 9
|
||||
https://orcid.org/0000-0002-4817-7775 | 9 | 5
|
||||
https://orcid.org/0000-0002-6374-458X | 9 | 6
|
||||
https://orcid.org/0000-0002-6758-0113 | 9 | 8
|
||||
https://orcid.org/0000-0002-6764-4789 | 9 | 2
|
||||
https://orcid.org/0000-0002-9763-9155 | 9 | 7
|
||||
https://orcid.org/0000-0003-1112-8336 | 9 | 6
|
||||
https://orcid.org/0000-0003-4667-3502 | 9 | 3
|
||||
https://orcid.org/0009-0000-8033-8498 | 9 | 1
|
||||
https://orcid.org/0009-0001-0761-7543 | 9 | 1
|
||||
https://orcid.org/0009-0001-4259-5917 | 9 | 2
|
||||
https://orcid.org/0009-0002-3680-1224 | 9 | 1
|
||||
https://orcid.org/0009-0002-8176-3757 | 9 | 1
|
||||
https://orcid.org/0009-0002-8563-7248 | 9 | 3
|
||||
https://orcid.org/0009-0006-3511-9329 | 9 | 9
|
||||
https://orcid.org/0009-0007-2108-5110 | 9 | 2
|
||||
https://orcid.org/0009-0008-8730-8097 | 9 | 1
|
||||
https://orcid.org/0009-0009-8845-6742 | 9 | 1
|
||||
https://orcid.org/0000-0001-5233-3139 | 8 | 6
|
||||
https://orcid.org/0000-0001-5252-0831 | 8 | 6
|
||||
https://orcid.org/0000-0001-5775-7993 | 8 | 2
|
||||
https://orcid.org/0000-0001-6072-3874 | 8 | 1
|
||||
https://orcid.org/0000-0001-6819-6562 | 8 | 1
|
||||
https://orcid.org/0000-0001-6923-7936 | 8 | 5
|
||||
https://orcid.org/0000-0002-0584-8700 | 8 | 7
|
||||
https://orcid.org/0000-0002-1129-2083 | 8 | 6
|
||||
https://orcid.org/0000-0002-1959-2363 | 8 | 5
|
||||
https://orcid.org/0000-0002-2079-996X | 8 | 6
|
||||
https://orcid.org/0000-0002-2106-4041 | 8 | 4
|
||||
https://orcid.org/0000-0002-2745-5908 | 8 | 4
|
||||
https://orcid.org/0000-0002-3225-2769 | 8 | 8
|
||||
https://orcid.org/0000-0002-3365-3927 | 8 | 8
|
||||
https://orcid.org/0000-0002-3397-3496 | 8 | 5
|
||||
https://orcid.org/0000-0002-3650-4548 | 8 | 1
|
||||
https://orcid.org/0000-0002-3934-6004 | 8 | 5
|
||||
https://orcid.org/0000-0002-4006-7029 | 8 | 7
|
||||
https://orcid.org/0000-0002-4485-6017 | 8 | 4
|
||||
https://orcid.org/0000-0002-4974-7004 | 8 | 7
|
||||
https://orcid.org/0000-0002-5105-1305 | 8 | 1
|
||||
https://orcid.org/0000-0002-5380-9829 | 8 | 1
|
||||
https://orcid.org/0000-0002-6047-4211 | 8 | 1
|
||||
https://orcid.org/0000-0002-6999-3931 | 8 | 7
|
||||
https://orcid.org/0000-0002-7007-9020 | 8 | 2
|
||||
https://orcid.org/0000-0002-9808-5035 | 8 | 3
|
||||
https://orcid.org/0000-0003-0660-596X | 8 | 2
|
||||
https://orcid.org/0000-0003-0664-1653 | 8 | 6
|
||||
https://orcid.org/0000-0003-0766-6174 | 8 | 3
|
||||
https://orcid.org/0000-0003-1925-4337 | 8 | 1
|
||||
https://orcid.org/0000-0003-2320-7621 | 8 | 5
|
||||
https://orcid.org/0000-0003-2611-1975 | 8 | 7
|
||||
https://orcid.org/0000-0003-2623-3198 | 8 | 7
|
||||
https://orcid.org/0000-0003-3223-1797 | 8 | 5
|
||||
https://orcid.org/0000-0003-3303-7769 | 8 | 1
|
||||
https://orcid.org/0000-0003-4556-7302 | 8 | 3
|
||||
https://orcid.org/0000-0003-4813-8167 | 8 | 6
|
||||
https://orcid.org/0009-0000-3081-2665 | 8 | 3
|
||||
https://orcid.org/0009-0000-4054-8239 | 8 | 1
|
||||
https://orcid.org/0009-0001-1173-3651 | 8 | 1
|
||||
https://orcid.org/0009-0002-4054-6799 | 8 | 1
|
||||
https://orcid.org/0009-0004-1393-6577 | 8 | 2
|
||||
https://orcid.org/0009-0004-2581-9917 | 8 | 1
|
||||
https://orcid.org/0009-0005-7271-2677 | 8 | 1
|
||||
https://orcid.org/0009-0006-1867-9674 | 8 | 2
|
||||
https://orcid.org/0009-0007-7218-9227 | 8 | 3
|
||||
https://orcid.org/0009-0008-2045-2609 | 8 | 1
|
||||
https://orcid.org/0009-0008-2532-8674 | 8 | 1
|
||||
https://orcid.org/0009-0009-0129-3267 | 8 | 2
|
||||
https://orcid.org/0000-0001-2345-6789 | 7 | 7
|
||||
https://orcid.org/0000-0001-5189-230X | 7 | 1
|
||||
https://orcid.org/0000-0001-5501-554X | 7 | 6
|
||||
https://orcid.org/0000-0001-5987-3189 | 7 | 2
|
||||
https://orcid.org/0000-0001-6057-9243 | 7 | 7
|
||||
https://orcid.org/0000-0001-6105-5345 | 7 | 3
|
||||
https://orcid.org/0000-0001-6436-7547 | 7 | 6
|
||||
https://orcid.org/0000-0001-6533-6144 | 7 | 7
|
||||
https://orcid.org/0000-0001-6850-7666 | 7 | 6
|
||||
https://orcid.org/0000-0001-6883-3752 | 7 | 1
|
||||
https://orcid.org/0000-0001-7483-2991 | 7 | 2
|
||||
https://orcid.org/0000-0001-7515-3907 | 7 | 4
|
||||
https://orcid.org/0000-0001-7945-2867 | 7 | 5
|
||||
https://orcid.org/0000-0001-8191-0046 | 7 | 3
|
||||
https://orcid.org/0000-0001-8555-5408 | 7 | 1
|
||||
https://orcid.org/0000-0001-9190-4547 | 7 | 6
|
||||
https://orcid.org/0000-0001-9539-2155 | 7 | 5
|
||||
https://orcid.org/0000-0001-9663-4443 | 7 | 5
|
||||
https://orcid.org/0000-0002-0117-7831 | 7 | 1
|
||||
https://orcid.org/0000-0002-0207-2871 | 7 | 1
|
||||
https://orcid.org/0000-0002-0394-5646 | 7 | 5
|
||||
https://orcid.org/0000-0002-0869-5631 | 7 | 2
|
||||
https://orcid.org/0000-0002-1051-3833 | 7 | 3
|
||||
https://orcid.org/0000-0002-1122-2990 | 7 | 1
|
||||
https://orcid.org/0000-0002-1695-9481 | 7 | 4
|
||||
https://orcid.org/0000-0002-1933-5383 | 7 | 4
|
||||
https://orcid.org/0000-0002-2023-2082 | 7 | 7
|
||||
https://orcid.org/0000-0002-2115-9382 | 7 | 5
|
||||
https://orcid.org/0000-0002-2138-4395 | 7 | 4
|
||||
https://orcid.org/0000-0002-2405-915X | 7 | 2
|
||||
https://orcid.org/0000-0002-2593-5297 | 7 | 2
|
||||
https://orcid.org/0000-0002-2629-4735 | 7 | 1
|
||||
https://orcid.org/0000-0002-2699-2189 | 7 | 1
|
||||
https://orcid.org/0000-0002-2782-9519 | 7 | 7
|
||||
https://orcid.org/0000-0002-3135-5010 | 7 | 5
|
||||
https://orcid.org/0000-0002-3348-1221 | 7 | 1
|
||||
https://orcid.org/0000-0002-3725-4800 | 7 | 4
|
||||
https://orcid.org/0000-0002-4133-5099 | 7 | 2
|
||||
https://orcid.org/0000-0002-4242-2450 | 7 | 6
|
||||
https://orcid.org/0000-0002-4526-2149 | 7 | 2
|
||||
https://orcid.org/0000-0002-4996-1924 | 7 | 6
|
||||
https://orcid.org/0000-0002-5540-3750 | 7 | 4
|
||||
https://orcid.org/0000-0002-5956-6258 | 7 | 2
|
||||
https://orcid.org/0000-0002-6519-4681 | 7 | 1
|
||||
https://orcid.org/0000-0002-7602-2527 | 7 | 4
|
||||
https://orcid.org/0000-0002-8002-9086 | 7 | 6
|
||||
https://orcid.org/0000-0002-8482-1046 | 7 | 4
|
||||
https://orcid.org/0000-0002-8640-4350 | 7 | 2
|
||||
https://orcid.org/0000-0002-9192-8757 | 7 | 3
|
||||
https://orcid.org/0000-0002-9241-3114 | 7 | 4
|
||||
https://orcid.org/0000-0002-9581-2778 | 7 | 4
|
||||
https://orcid.org/0000-0002-9749-5550 | 7 | 5
|
||||
https://orcid.org/0000-0002-9878-6077 | 7 | 1
|
||||
https://orcid.org/0000-0003-0195-7456 | 7 | 4
|
||||
https://orcid.org/0000-0003-0266-0224 | 7 | 3
|
||||
https://orcid.org/0000-0003-0362-8795 | 7 | 7
|
||||
https://orcid.org/0000-0003-0383-6930 | 7 | 1
|
||||
https://orcid.org/0000-0003-0609-627X | 7 | 2
|
||||
https://orcid.org/0000-0003-1287-1471 | 7 | 7
|
||||
https://orcid.org/0000-0003-1430-9191 | 7 | 5
|
||||
https://orcid.org/0000-0003-1731-7939 | 7 | 2
|
||||
https://orcid.org/0000-0003-2298-0102 | 7 | 3
|
||||
https://orcid.org/0000-0003-2323-7521 | 7 | 7
|
||||
https://orcid.org/0000-0003-2707-2533 | 7 | 5
|
||||
https://orcid.org/0000-0003-2868-7177 | 7 | 2
|
||||
https://orcid.org/0000-0003-2973-1803 | 7 | 2
|
||||
https://orcid.org/0000-0003-3609-4777 | 7 | 6
|
||||
https://orcid.org/0000-0003-3895-9092 | 7 | 1
|
||||
https://orcid.org/0000-0003-4316-9642 | 7 | 1
|
||||
https://orcid.org/0000-0003-4950-5184 | 7 | 1
|
||||
https://orcid.org/0009-0000-7239-3374 | 7 | 1
|
||||
https://orcid.org/0009-0000-8636-0848 | 7 | 2
|
||||
https://orcid.org/0009-0001-7282-8881 | 7 | 3
|
||||
https://orcid.org/0009-0002-0885-5145 | 7 | 1
|
||||
https://orcid.org/0009-0002-1063-5117 | 7 | 1
|
||||
https://orcid.org/0009-0002-3352-6765 | 7 | 3
|
||||
https://orcid.org/0009-0002-4224-5527 | 7 | 1
|
||||
https://orcid.org/0009-0002-9160-3095 | 7 | 1
|
||||
https://orcid.org/0009-0002-9671-101X | 7 | 3
|
||||
https://orcid.org/0009-0003-4314-9534 | 7 | 1
|
||||
https://orcid.org/0009-0004-6991-0595 | 7 | 4
|
||||
https://orcid.org/0009-0005-5603-6306 | 7 | 1
|
||||
https://orcid.org/0009-0005-8813-8745 | 7 | 1
|
||||
https://orcid.org/0009-0006-9312-0272 | 7 | 1
|
||||
https://orcid.org/0009-0007-1509-2728 | 7 | 5
|
||||
https://orcid.org/0009-0007-6670-9679 | 7 | 1
|
||||
https://orcid.org/0009-0008-0310-0257 | 7 | 1
|
||||
https://orcid.org/0009-0009-4592-6687 | 7 | 1
|
||||
https://orcid.org/0009-0009-8645-6685 | 7 | 2
|
||||
https://orcid.org/0000-0001-5001-672X | 6 | 2
|
||||
https://orcid.org/0000-0001-5637-2653 | 6 | 2
|
||||
https://orcid.org/0000-0001-5769-5761 | 6 | 3
|
||||
https://orcid.org/0000-0001-5854-7699 | 6 | 2
|
||||
https://orcid.org/0000-0001-5967-8674 | 6 | 4
|
||||
https://orcid.org/0000-0001-6805-0395 | 6 | 1
|
||||
https://orcid.org/0000-0001-6996-4834 | 6 | 3
|
||||
https://orcid.org/0000-0001-7179-7043 | 6 | 3
|
||||
https://orcid.org/0000-0001-7241-2117 | 6 | 4
|
||||
https://orcid.org/0000-0001-7833-4711 | 6 | 2
|
||||
https://orcid.org/0000-0001-7842-9518 | 6 | 3
|
||||
https://orcid.org/0000-0001-7941-4879 | 6 | 6
|
||||
https://orcid.org/0000-0001-8178-2494 | 6 | 1
|
||||
https://orcid.org/0000-0001-8375-0760 | 6 | 3
|
||||
https://orcid.org/0000-0001-8473-4332 | 6 | 4
|
||||
https://orcid.org/0000-0001-8569-8409 | 6 | 3
|
||||
https://orcid.org/0000-0001-8673-3026 | 6 | 3
|
||||
https://orcid.org/0000-0001-8915-3377 | 6 | 6
|
||||
https://orcid.org/0000-0001-9025-2225 | 6 | 2
|
||||
https://orcid.org/0000-0001-9086-6091 | 6 | 5
|
||||
https://orcid.org/0000-0001-9140-9028 | 6 | 1
|
||||
https://orcid.org/0000-0001-9234-4465 | 6 | 5
|
||||
https://orcid.org/0000-0001-9416-1742 | 6 | 2
|
||||
https://orcid.org/0000-0001-9422-1725 | 6 | 6
|
||||
https://orcid.org/0000-0001-9473-8935 | 6 | 3
|
||||
https://orcid.org/0000-0001-9524-8452 | 6 | 6
|
||||
https://orcid.org/0000-0001-9630-2000 | 6 | 2
|
||||
https://orcid.org/0000-0001-9734-3162 | 6 | 3
|
||||
https://orcid.org/0000-0001-9861-8922 | 6 | 3
|
||||
https://orcid.org/0000-0002-0032-4473 | 6 | 5
|
||||
https://orcid.org/0000-0002-0034-6576 | 6 | 2
|
||||
https://orcid.org/0000-0002-0038-5372 | 6 | 2
|
||||
https://orcid.org/0000-0002-0144-6536 | 6 | 4
|
||||
https://orcid.org/0000-0002-0264-7217 | 6 | 2
|
||||
https://orcid.org/0000-0002-0531-2148 | 6 | 2
|
||||
https://orcid.org/0000-0002-0538-8230 | 6 | 5
|
||||
https://orcid.org/0000-0002-0595-0297 | 6 | 2
|
||||
https://orcid.org/0000-0002-0657-1766 | 6 | 5
|
||||
https://orcid.org/0000-0002-0661-5220 | 6 | 1
|
||||
https://orcid.org/0000-0002-0664-9199 | 6 | 5
|
||||
https://orcid.org/0000-0002-0682-4313 | 6 | 5
|
||||
https://orcid.org/0000-0002-0786-7307 | 6 | 5
|
||||
https://orcid.org/0000-0002-0798-9806 | 6 | 2
|
||||
https://orcid.org/0000-0002-0857-6317 | 6 | 2
|
||||
https://orcid.org/0000-0002-1115-4721 | 6 | 3
|
||||
https://orcid.org/0000-0002-1231-5136 | 6 | 1
|
||||
https://orcid.org/0000-0002-1640-9180 | 6 | 6
|
||||
https://orcid.org/0000-0002-2133-9287 | 6 | 2
|
||||
https://orcid.org/0000-0002-2140-4309 | 6 | 1
|
||||
https://orcid.org/0000-0002-2141-9543 | 6 | 5
|
||||
https://orcid.org/0000-0002-2204-5731 | 6 | 4
|
||||
https://orcid.org/0000-0002-2495-0524 | 6 | 1
|
||||
https://orcid.org/0000-0002-2629-5420 | 6 | 1
|
||||
https://orcid.org/0000-0002-2745-7065 | 6 | 1
|
||||
https://orcid.org/0000-0002-2896-3867 | 6 | 2
|
||||
https://orcid.org/0000-0002-3122-7617 | 6 | 4
|
||||
https://orcid.org/0000-0002-3728-2377 | 6 | 5
|
||||
https://orcid.org/0000-0002-3812-4944 | 6 | 5
|
||||
https://orcid.org/0000-0002-3820-9366 | 6 | 2
|
||||
https://orcid.org/0000-0002-3871-0978 | 6 | 1
|
||||
https://orcid.org/0000-0002-4125-8898 | 6 | 3
|
||||
https://orcid.org/0000-0002-4620-4223 | 6 | 1
|
||||
https://orcid.org/0000-0002-4624-2019 | 6 | 3
|
||||
https://orcid.org/0000-0002-4743-8718 | 6 | 1
|
||||
https://orcid.org/0000-0002-4841-3600 | 6 | 5
|
||||
https://orcid.org/0000-0002-4902-5589 | 6 | 1
|
||||
https://orcid.org/0000-0002-5005-3042 | 6 | 3
|
||||
https://orcid.org/0000-0002-5278-1430 | 6 | 3
|
||||
https://orcid.org/0000-0002-5414-8276 | 6 | 5
|
||||
https://orcid.org/0000-0002-5661-4330 | 6 | 5
|
||||
https://orcid.org/0000-0002-5728-9867 | 6 | 1
|
||||
https://orcid.org/0000-0002-5735-4059 | 6 | 3
|
||||
https://orcid.org/0000-0002-5736-1398 | 6 | 5
|
||||
https://orcid.org/0000-0002-5865-183X | 6 | 6
|
||||
https://orcid.org/0000-0002-5890-0445 | 6 | 1
|
||||
https://orcid.org/0000-0002-6083-2656 | 6 | 2
|
||||
https://orcid.org/0000-0002-6330-0639 | 6 | 1
|
||||
https://orcid.org/0000-0002-6469-8415 | 6 | 3
|
||||
https://orcid.org/0000-0002-6513-2309 | 6 | 2
|
||||
https://orcid.org/0000-0002-6781-416X | 6 | 1
|
||||
https://orcid.org/0000-0002-6785-9202 | 6 | 5
|
||||
https://orcid.org/0000-0002-6797-7209 | 6 | 2
|
||||
https://orcid.org/0000-0002-6941-8478 | 6 | 2
|
||||
https://orcid.org/0000-0002-7093-2677 | 6 | 2
|
||||
https://orcid.org/0000-0002-7225-8823 | 6 | 4
|
||||
https://orcid.org/0000-0002-7447-5602 | 6 | 2
|
||||
https://orcid.org/0000-0002-7543-1628 | 6 | 1
|
||||
https://orcid.org/0000-0002-7581-846X | 6 | 3
|
||||
https://orcid.org/0000-0002-7929-5889 | 6 | 5
|
||||
https://orcid.org/0000-0002-7989-6406 | 6 | 1
|
||||
https://orcid.org/0000-0002-8030-3866 | 6 | 2
|
||||
https://orcid.org/0000-0002-8073-9344 | 6 | 3
|
||||
https://orcid.org/0000-0002-8087-3199 | 6 | 2
|
||||
https://orcid.org/0000-0002-8255-0086 | 6 | 3
|
||||
https://orcid.org/0000-0002-8377-6431 | 6 | 2
|
||||
https://orcid.org/0000-0002-8738-1453 | 6 | 5
|
||||
https://orcid.org/0000-0002-9054-4372 | 6 | 5
|
||||
https://orcid.org/0000-0002-9264-4799 | 6 | 1
|
||||
https://orcid.org/0000-0002-9337-3476 | 6 | 4
|
||||
https://orcid.org/0000-0002-9557-5186 | 6 | 1
|
||||
https://orcid.org/0000-0002-9773-550X | 6 | 3
|
||||
https://orcid.org/0000-0002-9783-169X | 6 | 5
|
||||
https://orcid.org/0000-0002-9858-8249 | 6 | 4
|
||||
https://orcid.org/0000-0002-9922-413X | 6 | 2
|
||||
https://orcid.org/0000-0003-0133-1664 | 6 | 2
|
||||
https://orcid.org/0000-0003-0355-102X | 6 | 2
|
||||
https://orcid.org/0000-0003-0392-8691 | 6 | 2
|
||||
https://orcid.org/0000-0003-0523-487X | 6 | 5
|
||||
https://orcid.org/0000-0003-0959-4784 | 6 | 2
|
||||
https://orcid.org/0000-0003-0996-3279 | 6 | 5
|
||||
https://orcid.org/0000-0003-1179-2800 | 6 | 4
|
||||
https://orcid.org/0000-0003-1452-7885 | 6 | 2
|
||||
https://orcid.org/0000-0003-1455-6272 | 6 | 3
|
||||
https://orcid.org/0000-0003-1836-7233 | 6 | 1
|
||||
https://orcid.org/0000-0003-1890-2275 | 6 | 5
|
||||
https://orcid.org/0000-0003-1899-2266 | 6 | 3
|
||||
https://orcid.org/0000-0003-2000-2241 | 6 | 1
|
||||
https://orcid.org/0000-0003-2294-7345 | 6 | 4
|
||||
https://orcid.org/0000-0003-2375-1563 | 6 | 2
|
||||
https://orcid.org/0000-0003-2459-6278 | 6 | 1
|
||||
https://orcid.org/0000-0003-2582-6469 | 6 | 5
|
||||
https://orcid.org/0000-0003-2663-7379 | 6 | 2
|
||||
https://orcid.org/0000-0003-2682-9389 | 6 | 1
|
||||
https://orcid.org/0000-0003-2865-8528 | 6 | 3
|
||||
https://orcid.org/0000-0003-3086-9260 | 6 | 1
|
||||
https://orcid.org/0000-0003-3150-2751 | 6 | 5
|
||||
https://orcid.org/0000-0003-3389-2976 | 6 | 6
|
||||
https://orcid.org/0000-0003-3887-5358 | 6 | 2
|
||||
https://orcid.org/0000-0003-4009-186X | 6 | 2
|
||||
https://orcid.org/0000-0003-4221-1802 | 6 | 2
|
||||
https://orcid.org/0000-0003-4242-4840 | 6 | 2
|
||||
https://orcid.org/0000-0003-4351-0222 | 6 | 2
|
||||
https://orcid.org/0000-0003-4530-4422 | 6 | 1
|
||||
https://orcid.org/0000-0003-4543-2547 | 6 | 1
|
||||
https://orcid.org/0000-0003-4579-728X | 6 | 4
|
||||
https://orcid.org/0000-0003-4709-7623 | 6 | 2
|
||||
https://orcid.org/0009-0000-3973-2485 | 6 | 2
|
||||
https://orcid.org/0009-0000-7046-6533 | 6 | 2
|
||||
https://orcid.org/0009-0000-8362-2515 | 6 | 1
|
||||
https://orcid.org/0009-0000-9361-3532 | 6 | 1
|
||||
https://orcid.org/0009-0001-1326-3956 | 6 | 3
|
||||
https://orcid.org/0009-0001-7616-1914 | 6 | 5
|
||||
https://orcid.org/0009-0001-9331-5145 | 6 | 2
|
||||
https://orcid.org/0009-0002-2161-5808 | 6 | 3
|
||||
https://orcid.org/0009-0002-2307-5956 | 6 | 2
|
||||
https://orcid.org/0009-0002-2345-7081 | 6 | 2
|
||||
https://orcid.org/0009-0002-6494-4695 | 6 | 3
|
||||
https://orcid.org/0009-0002-8107-5452 | 6 | 1
|
||||
https://orcid.org/0009-0002-9187-7061 | 6 | 2
|
||||
https://orcid.org/0009-0003-6977-3669 | 6 | 2
|
||||
https://orcid.org/0009-0003-9152-2049 | 6 | 3
|
||||
https://orcid.org/0009-0004-1874-2464 | 6 | 1
|
||||
https://orcid.org/0009-0004-8274-9863 | 6 | 6
|
||||
https://orcid.org/0009-0004-8503-4011 | 6 | 2
|
||||
https://orcid.org/0009-0005-2318-6084 | 6 | 1
|
||||
https://orcid.org/0009-0005-5039-4874 | 6 | 2
|
||||
https://orcid.org/0009-0005-5447-7132 | 6 | 2
|
||||
https://orcid.org/0009-0005-5922-8936 | 6 | 2
|
||||
https://orcid.org/0009-0005-7626-6600 | 6 | 4
|
||||
https://orcid.org/0009-0006-0236-2680 | 6 | 1
|
||||
https://orcid.org/0009-0006-1471-986X | 6 | 1
|
||||
https://orcid.org/0009-0006-5800-1198 | 6 | 5
|
||||
https://orcid.org/0009-0006-6993-8920 | 6 | 6
|
||||
https://orcid.org/0009-0006-7450-4510 | 6 | 1
|
||||
https://orcid.org/0009-0006-8301-7634 | 6 | 5
|
||||
https://orcid.org/0009-0006-8497-9085 | 6 | 3
|
||||
https://orcid.org/0009-0007-0410-4607 | 6 | 1
|
||||
https://orcid.org/0009-0007-1385-3343 | 6 | 4
|
||||
https://orcid.org/0009-0007-4527-7926 | 6 | 1
|
||||
https://orcid.org/0009-0008-1549-0440 | 6 | 3
|
||||
https://orcid.org/0009-0008-3724-4603 | 6 | 2
|
||||
https://orcid.org/0009-0008-5380-3284 | 6 | 2
|
||||
https://orcid.org/0009-0009-3354-7794 | 6 | 1
|
||||
https://orcid.org/0009-0009-4284-8943 | 6 | 1
|
||||
https://orcid.org/0009-0009-6074-6238 | 6 | 3
|
||||
https://orcid.org/0009-0009-9522-8588 | 6 | 1
|
||||
https://orcid.org/0000-0001-5094-5879 | 5 | 4
|
||||
https://orcid.org/0000-0001-5124-7693 | 5 | 2
|
||||
https://orcid.org/0000-0001-5144-7900 | 5 | 5
|
||||
https://orcid.org/0000-0001-5552-5400 | 5 | 3
|
||||
https://orcid.org/0000-0001-5565-7868 | 5 | 3
|
||||
https://orcid.org/0000-0001-5646-0602 | 5 | 2
|
||||
https://orcid.org/0000-0001-5650-6770 | 5 | 1
|
||||
https://orcid.org/0000-0001-5881-4670 | 5 | 5
|
||||
https://orcid.org/0000-0001-5961-9033 | 5 | 2
|
||||
https://orcid.org/0000-0001-5979-6590 | 5 | 3
|
||||
https://orcid.org/0000-0001-5989-9338 | 5 | 3
|
||||
https://orcid.org/0000-0001-6153-3896 | 5 | 1
|
||||
https://orcid.org/0000-0001-6253-4313 | 5 | 3
|
||||
https://orcid.org/0000-0001-6278-9674 | 5 | 3
|
||||
https://orcid.org/0000-0001-6279-2267 | 5 | 5
|
||||
https://orcid.org/0000-0001-6326-4773 | 5 | 5
|
||||
https://orcid.org/0000-0001-6342-3471 | 5 | 4
|
||||
https://orcid.org/0000-0001-6453-0447 | 5 | 4
|
||||
https://orcid.org/0000-0001-6797-4000 | 5 | 5
|
||||
https://orcid.org/0000-0001-6828-9769 | 5 | 2
|
||||
https://orcid.org/0000-0001-6867-8166 | 5 | 2
|
||||
https://orcid.org/0000-0001-6930-4780 | 5 | 2
|
||||
https://orcid.org/0000-0001-6976-6256 | 5 | 1
|
||||
https://orcid.org/0000-0001-7256-6714 | 5 | 2
|
||||
https://orcid.org/0000-0001-7516-8850 | 5 | 2
|
||||
https://orcid.org/0000-0001-7759-1943 | 5 | 5
|
||||
https://orcid.org/0000-0001-7770-1102 | 5 | 5
|
||||
https://orcid.org/0000-0001-7896-8861 | 5 | 3
|
||||
https://orcid.org/0000-0001-8026-5380 | 5 | 4
|
||||
https://orcid.org/0000-0001-8049-5143 | 5 | 3
|
||||
https://orcid.org/0000-0001-8130-7423 | 5 | 4
|
||||
https://orcid.org/0000-0001-8140-4610 | 5 | 5
|
||||
https://orcid.org/0000-0001-8204-6157 | 5 | 2
|
||||
https://orcid.org/0000-0001-8292-7691 | 5 | 3
|
||||
https://orcid.org/0000-0001-8331-4854 | 5 | 1
|
||||
https://orcid.org/0000-0001-8367-8703 | 5 | 3
|
||||
https://orcid.org/0000-0001-8387-1853 | 5 | 3
|
||||
https://orcid.org/0000-0001-8415-6720 | 5 | 4
|
||||
https://orcid.org/0000-0001-8430-0446 | 5 | 4
|
||||
https://orcid.org/0000-0001-8463-0496 | 5 | 1
|
||||
https://orcid.org/0000-0001-8493-3737 | 5 | 1
|
||||
https://orcid.org/0000-0001-8647-7077 | 5 | 4
|
||||
https://orcid.org/0000-0001-8719-057X | 5 | 4
|
||||
https://orcid.org/0000-0001-8751-5944 | 5 | 2
|
||||
https://orcid.org/0000-0001-8785-847X | 5 | 3
|
||||
https://orcid.org/0000-0001-8791-7978 | 5 | 3
|
||||
https://orcid.org/0000-0001-8810-5971 | 5 | 4
|
||||
https://orcid.org/0000-0001-8828-3823 | 5 | 2
|
||||
https://orcid.org/0000-0001-8829-9681 | 5 | 2
|
||||
https://orcid.org/0000-0001-9012-395X | 5 | 2
|
||||
https://orcid.org/0000-0001-9031-6751 | 5 | 1
|
||||
https://orcid.org/0000-0001-9034-2925 | 5 | 2
|
||||
https://orcid.org/0000-0001-9048-4341 | 5 | 1
|
||||
https://orcid.org/0000-0001-9094-1493 | 5 | 3
|
||||
https://orcid.org/0000-0001-9301-2382 | 5 | 1
|
||||
https://orcid.org/0000-0001-9365-6452 | 5 | 4
|
||||
https://orcid.org/0000-0001-9440-5807 | 5 | 1
|
||||
https://orcid.org/0000-0001-9719-3563 | 5 | 5
|
||||
https://orcid.org/0000-0001-9734-574X | 5 | 3
|
||||
https://orcid.org/0000-0001-9861-2942 | 5 | 5
|
||||
https://orcid.org/0000-0002-0035-3821 | 5 | 2
|
||||
https://orcid.org/0000-0002-0044-6470 | 5 | 1
|
||||
https://orcid.org/0000-0002-0224-2869 | 5 | 2
|
||||
https://orcid.org/0000-0002-0286-5070 | 5 | 3
|
||||
https://orcid.org/0000-0002-0550-457X | 5 | 1
|
||||
https://orcid.org/0000-0002-0554-4627 | 5 | 3
|
||||
https://orcid.org/0000-0002-0608-065X | 5 | 5
|
||||
https://orcid.org/0000-0002-0653-0761 | 5 | 3
|
||||
https://orcid.org/0000-0002-0672-6895 | 5 | 1
|
||||
https://orcid.org/0000-0002-0804-9197 | 5 | 2
|
||||
https://orcid.org/0000-0002-0809-1897 | 5 | 3
|
||||
https://orcid.org/0000-0002-0870-8420 | 5 | 2
|
||||
https://orcid.org/0000-0002-0984-7887 | 5 | 5
|
||||
https://orcid.org/0000-0002-1034-1410 | 5 | 2
|
||||
https://orcid.org/0000-0002-1182-7869 | 5 | 3
|
||||
https://orcid.org/0000-0002-1303-0458 | 5 | 1
|
||||
https://orcid.org/0000-0002-1394-9907 | 5 | 4
|
||||
@@ -0,0 +1,53 @@
|
||||
Analyse 3: Die 50 Autoren mit den längsten display_names im gesamten Autoren-Index, absteigend nach Zeichenlänge sortiert.
|
||||
Display Name | Länge
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -----
|
||||
Martin Senftleben, Pernille Bruun Andersen, Lionel Bently, Michele Bertani, Robert Burrell, Mireille Buydens, Vincenzo Di Cataldo, Giovanni Cavani, Estelle Derclaye, Graeme Dinwoodie, Severine Dussollier, Dev S. Gangjee, Christophe Geiger, Gustavo Ghidini, Jonathan Griffiths, Henning Grosse Ruse-Khan, Paul can der Kooij, Annette Kur, Nari Lee, David Llewelyn, Luigi Mansani, Timo Minssen, Ansgar Ohly, Alexander Peukert, Marco Ricolfi, Ole-Andreas Rognstad, Thomas Ssmbuc, Paolo Spads, Marco Saverio Spolidoro, Jens Schovsbo, Paul Torremans, Luigi Carlo Ubertazzi, Adriano Vanzetti, D.W. Feer Verkade, Dirk Visser, Katja Weckström, Raquel Xalabarder, Lukasz Zelechowski | 671
|
||||
Based on the available search results, I have organized the top AI labs, government agencies, and research institutions into a categorized bullet-point list for you. This list includes major commercial vendors, independent non-profit research centers, and government bodies actively involved in AI development and regulation. 🧪 Top Private AI Labs & Companies Major Commercial Leaders (The "Front-runners") · Google (Google DeepMind): Recognized as a leader in Enterprise Agentic AI Platforms with | 500
|
||||
Kevin Eze University, Mgbowo, Enugu State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Kevin Eze University, Mgbowo, Enugu State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution for | 500
|
||||
Christopher University Mowe 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Christopher University Mowe 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Po | 500
|
||||
James Hope University, Lagos, Lagos State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., James Hope University, Lagos, Lagos State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution for | 500
|
||||
Capital City University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Capital City University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of | 500
|
||||
Nile University of Nigeria, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Nile University of Nigeria, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Cou | 500
|
||||
Lux Mundi University Umuahia, Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Lux Mundi University Umuahia, Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, | 500
|
||||
University of Fortune, Igbotako, Ondo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., University of Fortune, Igbotako, Ondo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution | 500
|
||||
Anan University, Kwall, Plateau State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Anan University, Kwall, Plateau State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
Spiritan University, Nneochi Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Spiritan University, Nneochi Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, C | 500
|
||||
Hillside University of Science and Technology, Okemisi, Ekiti State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Hillside University of Science and Technology, Okemisi, Ekiti State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct- | 500
|
||||
JEFAP University, Suleja, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., JEFAP University, Suleja, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
New City University, Ayetoro, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., New City University, Ayetoro, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, | 500
|
||||
Westland University Iwo, Osun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Westland University Iwo, Osun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of | 500
|
||||
Kings University, Ode Omu 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Kings University, Ode Omu 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post g | 500
|
||||
Augustine University 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Augustine University 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Di | 500
|
||||
Canadian University of Nigeria, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Canadian University of Nigeria, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
Azione Verde University, Amaigbo, Imo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Azione Verde University, Amaigbo, Imo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution | 500
|
||||
European University of Nigeria, Duboyi, FCT 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., European University of Nigeria, Duboyi, FCT 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution | 500
|
||||
Sam Maris University, Ondo 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Sam Maris University, Ondo 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post | 500
|
||||
Gerar University of Medical Science Imope Ijebu, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Gerar University of Medical Science Imope Ijebu, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Tran | 500
|
||||
Huda University, Gusau, Zamafara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Huda University, Gusau, Zamafara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Cha | 500
|
||||
Tansian University, Umunya 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Tansian University, Umunya 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post | 500
|
||||
Rayhaan University, Kebbi 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Rayhaan University, Kebbi 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post g | 500
|
||||
Monarch University, Iyesi-Ota, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Monarch University, Iyesi-Ota, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution for | 500
|
||||
Vision University, Ikogbo, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Vision University, Ikogbo, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
Legacy University, Okija Anambra State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Legacy University, Okija Anambra State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Cha | 500
|
||||
Micheal & Cecilia Ibru University 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Micheal & Cecilia Ibru University 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Cou | 500
|
||||
Ojaja University Eiyenkorin, Kwara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Ojaja University Eiyenkorin, Kwara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, | 500
|
||||
Eranova University, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Eranova University, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post g | 500
|
||||
Saisa University of Medical Sciences and Technology, Sokoto State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Saisa University of Medical Sciences and Technology, Sokoto State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entr | 500
|
||||
Elrazi Medical University Yargaya University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Elrazi Medical University Yargaya University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer F | 500
|
||||
Jewel University, Gombe state 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Jewel University, Gombe state 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form | 500
|
||||
Lighthouse University, Evbobanosa, Edo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Lighthouse University, Evbobanosa, Edo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of instituti | 500
|
||||
Mercy Medical University, Iwo, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Mercy Medical University, Iwo, Ogun State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution for | 500
|
||||
Amadeus University, Amizi, Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Amadeus University, Amizi, Abia State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
African University of Economics, FCT, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., African University of Economics, FCT, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution | 500
|
||||
Western Delta University, Oghara Delta State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Western Delta University, Oghara Delta State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of instituti | 500
|
||||
Edusoko University, Bida, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Edusoko University, Bida, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Chang | 500
|
||||
Philomath University, Kuje, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Philomath University, Kuje, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Cou | 500
|
||||
Glorious Vision University, Ogwa, Edo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Glorious Vision University, Ogwa, Edo State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution | 500
|
||||
Coal City University Enugu State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Coal City University Enugu State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Cours | 500
|
||||
Tazkiyah University, Kaduna, Kaduna State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Tazkiyah University, Kaduna, Kaduna State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution for | 500
|
||||
Peter University, Achina-Onneh Anambra State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Peter University, Achina-Onneh Anambra State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of instituti | 500
|
||||
Evangel University, Akaeze 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Evangel University, Akaeze 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post | 500
|
||||
Baba Ahmed University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Baba Ahmed University, Kano State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Cou | 500
|
||||
Jimoh Babalola University, Ilorin, Kwara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Jimoh Babalola University, Ilorin, Kwara State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of insti | 500
|
||||
Amaj University, Kwali, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., Amaj University, Kwali, Abuja 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form | 500
|
||||
El-Amin University, Minna, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Change of Course form, Post graduate Diploma form, Masters form, Phd form call ☎️(+23408039478772) for more inquiry and admission assistance., El-Amin University, Minna, Niger State 2026/27 JUPEB/IJMB Form is out ☎️(08039478772) DR MERCY☎️ (+23408039478772) Direct-Entry Form, Transfer Form, Change of institution form, Cha | 500
|
||||
@@ -0,0 +1,44 @@
|
||||
Analyse 4: Vollständiger Scan über den gesamten Autoren-Index — für jeden Autor mit einem Emoji im display_name eine Zeile je gefundenem Emoji (deckt die gängigen Emoji-Unicode-Blöcke ab, nicht zu 100% vollständig). Anzahl der Einträge ist die echte Gesamtzahl, pro Emoji werden aber nur 5 Beispiel-Autoren angezeigt.
|
||||
Emoji | Anzahl der Einträge | OpenAlexID des Authors
|
||||
----- | ------------------- | ----------------------
|
||||
☎ | 309 | A5122404034
|
||||
☎ | 309 | A5122409605
|
||||
☎ | 309 | A5122413004
|
||||
☎ | 309 | A5122413783
|
||||
☎ | 309 | A5122423823
|
||||
🌠 | 9 | A5130251152
|
||||
🌠 | 9 | A5130293752
|
||||
🌠 | 9 | A5130321119
|
||||
🌠 | 9 | A5130409395
|
||||
🌠 | 9 | A5130539169
|
||||
✓ | 8 | A5125699161
|
||||
✓ | 8 | A5125699643
|
||||
✓ | 8 | A5125709226
|
||||
✓ | 8 | A5125709340
|
||||
✓ | 8 | A5125733201
|
||||
🜇 | 3 | A5127964094
|
||||
🜇 | 3 | A5128305757
|
||||
🜇 | 3 | A5130005920
|
||||
✩ | 2 | A5125693674
|
||||
✩ | 2 | A5125697963
|
||||
🌍 | 2 | A5124304447
|
||||
🌍 | 2 | A5126049861
|
||||
🥇 | 2 | A5125367570
|
||||
🥇 | 2 | A5125593574
|
||||
☮ | 1 | A5123428025
|
||||
⚶ | 1 | A5126577509
|
||||
⛑ | 1 | A5126571570
|
||||
⛔ | 1 | A5126049861
|
||||
✀ | 1 | A5121072233
|
||||
✦ | 1 | A5121259916
|
||||
✨ | 1 | A5124304447
|
||||
⬡ | 1 | A5028861871
|
||||
⭥ | 1 | A5003445970
|
||||
⮋ | 1 | A5096960654
|
||||
🇪 | 1 | A5125031720
|
||||
🇺 | 1 | A5125031720
|
||||
🌀 | 1 | A5126577509
|
||||
🌱 | 1 | A5124304447
|
||||
🐳 | 1 | A5129532556
|
||||
🦇 | 1 | A5127891150
|
||||
🧪 | 1 | A5130442535
|
||||
@@ -0,0 +1,503 @@
|
||||
Analyse 5: Count-by auf display_name — wie viele Autoren-Dokumente denselben display_name (exakter Match) teilen.
|
||||
Display Name | Anzahl
|
||||
--------------------------- | ------
|
||||
Y. Wang | 7217
|
||||
Y. Zhang | 6915
|
||||
Z Weng | 6667
|
||||
J. Wang | 6653
|
||||
J. Zhang | 5862
|
||||
Y. Liu | 5565
|
||||
Y. Li | 5166
|
||||
J. Li | 4966
|
||||
X. Wang | 4869
|
||||
K. Cenzual | 4603
|
||||
Y. Chen | 4599
|
||||
H. Wang | 4565
|
||||
T. Carlyle | 4495
|
||||
L. Zhang | 4485
|
||||
X. Zhang | 4300
|
||||
J. Lee | 4185
|
||||
L. Wang | 4167
|
||||
X. Li | 3999
|
||||
Y Wang | 3989
|
||||
J. Chen | 3981
|
||||
J. Liu | 3858
|
||||
Z. Wang | 3858
|
||||
H. Zhang | 3833
|
||||
O. Shcherban | 3753
|
||||
V. Dubenskyy | 3749
|
||||
Y Zhang | 3594
|
||||
H. Li | 3580
|
||||
N. Vogt | 3542
|
||||
J. Kim | 3498
|
||||
K. Kuchitsu | 3489
|
||||
Ken Auberry | 3458
|
||||
MISSING-VALUE MISSING-VALUE | 3430
|
||||
X. Liu | 3386
|
||||
S. Lee | 3353
|
||||
X. Chen | 3192
|
||||
W. Li | 3157
|
||||
S. Wang | 3128
|
||||
T. Iijima | 3105
|
||||
L. Li | 3079
|
||||
Z. Zhang | 2957
|
||||
W. Wang | 2919
|
||||
C. Wang | 2891
|
||||
J Wang | 2809
|
||||
P. Villars | 2762
|
||||
H. Liu | 2757
|
||||
S. Kim | 2727
|
||||
H. Kim | 2638
|
||||
H.V. Kehiaian | 2578
|
||||
Wei Wang | 2577
|
||||
Yang Liu | 2566
|
||||
J Zhang | 2563
|
||||
L Wang | 2557
|
||||
C. Chen | 2554
|
||||
Wei Zhang | 2510
|
||||
Z. Li | 2499
|
||||
L Zhang | 2492
|
||||
C. Li | 2486
|
||||
Z. Wagner | 2480
|
||||
J. Linek | 2473
|
||||
R. Gladyshevskii | 2469
|
||||
L. Chen | 2449
|
||||
S. Chen | 2443
|
||||
I. Wichterle | 2437
|
||||
H. Chen | 2392
|
||||
X Wang | 2371
|
||||
I. Savysyuk | 2363
|
||||
Z. Liu | 2344
|
||||
W. Zhang | 2305
|
||||
Y. Kim | 2244
|
||||
P. Wang | 2227
|
||||
Y Chen | 2219
|
||||
B Graveley | 2202
|
||||
Yu Zhang | 2173
|
||||
S. Li | 2137
|
||||
L. Liu | 2135
|
||||
X Zhang | 2122
|
||||
G. Chen | 2121
|
||||
C. Liu | 2112
|
||||
M. Wang | 2104
|
||||
Wei Li | 2077
|
||||
D. Wang | 2053
|
||||
Q. Wang | 2040
|
||||
Xin Wang | 2009
|
||||
H. Lee | 2003
|
||||
S. Zhang | 1972
|
||||
H. V. Kehiaian | 1944
|
||||
H Wang | 1917
|
||||
J Chen | 1913
|
||||
Jing Li | 1911
|
||||
Q. Zhang | 1907
|
||||
F. Wang | 1856
|
||||
Z. Chen | 1839
|
||||
N A | 1834
|
||||
Lei Wang | 1826
|
||||
S. Liu | 1825
|
||||
G. Li | 1812
|
||||
Yang Li | 1785
|
||||
G. F. R. B. | 1783
|
||||
J. Daams | 1781
|
||||
W. Chen | 1779
|
||||
B. Wang | 1768
|
||||
Lei Zhang | 1726
|
||||
M. Chen | 1719
|
||||
Yu Wang | 1718
|
||||
Wei Liu | 1708
|
||||
Jing Wang | 1702
|
||||
W. Liu | 1702
|
||||
C. Zhang | 1697
|
||||
C.P. Khare | 1683
|
||||
J. Park | 1683
|
||||
K. Wang | 1678
|
||||
Q. Liu | 1676
|
||||
G. Wang | 1663
|
||||
O. Pavlyuk | 1650
|
||||
Q. Li | 1642
|
||||
T. Wang | 1636
|
||||
Yan Wang | 1635
|
||||
Z Wang | 1632
|
||||
Y Li | 1611
|
||||
Ying Wang | 1611
|
||||
H Zhang | 1604
|
||||
B. Liu | 1602
|
||||
E. Hirota | 1593
|
||||
Yan Li | 1589
|
||||
K. Lee | 1562
|
||||
L. H. Michael | 1561
|
||||
Yan Zhang | 1561
|
||||
Yang Yang | 1558
|
||||
K. Lucia | 1556
|
||||
B. Li | 1548
|
||||
M. Li | 1533
|
||||
M. Zhang | 1525
|
||||
C. | 1503
|
||||
Jing Zhang | 1498
|
||||
S. Park | 1476
|
||||
M. Jain | 1475
|
||||
L Chen | 1470
|
||||
Hao Zhang | 1468
|
||||
D. Liu | 1466
|
||||
Xin Li | 1466
|
||||
P. Pardasani | 1464
|
||||
J.-C. Fontaine | 1462
|
||||
Li Li | 1455
|
||||
F. Liu | 1452
|
||||
C. Lee | 1447
|
||||
B. Cornils | 1441
|
||||
Feng Wang | 1429
|
||||
W. C. B. | 1422
|
||||
F. Li | 1421
|
||||
J Li | 1421
|
||||
T. Liu | 1419
|
||||
H. Park | 1408
|
||||
USM ADMIN | 1403
|
||||
K. Kim | 1388
|
||||
Rui Wang | 1379
|
||||
D. Kim | 1375
|
||||
X Chen | 1375
|
||||
Hao Wang | 1368
|
||||
F. Zhang | 1355
|
||||
Z Zhang | 1354
|
||||
J.H. Kim | 1352
|
||||
Yi Zhang | 1352
|
||||
D. Li | 1351
|
||||
Y Liu | 1345
|
||||
B. Zhang | 1320
|
||||
R. Wang | 1316
|
||||
Li Zhang | 1306
|
||||
M. Lee | 1303
|
||||
D. Lee | 1298
|
||||
Jie Li | 1293
|
||||
N. Nakamura | 1285
|
||||
Wei Chen | 1285
|
||||
Jie Zhang | 1284
|
||||
Tao Wang | 1281
|
||||
D. Zhang | 1272
|
||||
M. Liu | 1266
|
||||
Jun Zhang | 1254
|
||||
S Wang | 1252
|
||||
Yu Liu | 1252
|
||||
H Chen | 1243
|
||||
Xiang Li | 1242
|
||||
Li Wang | 1235
|
||||
Jun Wang | 1233
|
||||
C. C. B. | 1232
|
||||
Xin Zhang | 1228
|
||||
A. Chen | 1227
|
||||
W Wang | 1224
|
||||
Gottfried Nitze | 1222
|
||||
Peng Zhang | 1217
|
||||
Hui Wang | 1212
|
||||
P. Zhang | 1212
|
||||
C Wang | 1207
|
||||
T. Zhang | 1199
|
||||
L Li | 1189
|
||||
Ying Zhang | 1187
|
||||
W Zhang | 1175
|
||||
Chang Liu | 1173
|
||||
Hui Zhang | 1167
|
||||
R. Zhang | 1167
|
||||
H. Chihara | 1162
|
||||
Hui Li | 1157
|
||||
J. H. Kim | 1157
|
||||
Jun Li | 1156
|
||||
Yi Wang | 1152
|
||||
Rui Zhang | 1150
|
||||
Yang Wang | 1145
|
||||
Q Wang | 1144
|
||||
M. | 1143
|
||||
R.H.O. | 1132
|
||||
Jian Zhang | 1131
|
||||
J. H. Duffus | 1121
|
||||
Bo Wang | 1117
|
||||
Chao Wang | 1117
|
||||
Xin Liu | 1116
|
||||
Yan Liu | 1115
|
||||
편집실 | 1115
|
||||
Qi Wang | 1112
|
||||
Fan Yang | 1100
|
||||
D. A. Ramsay | 1094
|
||||
Qi Zhang | 1093
|
||||
Yang Zhang | 1091
|
||||
Peng Wang | 1090
|
||||
T. Li | 1087
|
||||
Jian Wang | 1085
|
||||
M. Kim | 1084
|
||||
Y. Lee | 1084
|
||||
G. Zhang | 1080
|
||||
Q Zhang | 1080
|
||||
Tao Zhang | 1069
|
||||
D. Chen | 1068
|
||||
J. Castañer | 1066
|
||||
J.H. Lee | 1065
|
||||
G. Liu | 1059
|
||||
J. Vogt | 1059
|
||||
J Liu | 1058
|
||||
P. Chen | 1055
|
||||
Qian Wang | 1052
|
||||
X Li | 1043
|
||||
S. H. Kim | 1039
|
||||
Ming Li | 1036
|
||||
Ying Li | 1031
|
||||
R. Andrew Chambers | 1027
|
||||
Chen Wang | 1013
|
||||
S Chen | 1009
|
||||
Yi Liu | 1005
|
||||
Ying Liu | 1002
|
||||
K. M. REESE | 997
|
||||
Bin Wang | 996
|
||||
K. Liu | 996
|
||||
Jie Liu | 995
|
||||
B. Fischer | 986
|
||||
Xi Chen | 986
|
||||
B. Predel | 985
|
||||
C. Kim | 978
|
||||
J. H. Lee | 972
|
||||
Hao Chen | 970
|
||||
K. Zhang | 968
|
||||
Hao Li | 964
|
||||
Z Chen | 960
|
||||
S Zhang | 958
|
||||
S. | 956
|
||||
K. Li | 955
|
||||
Q. Chen | 955
|
||||
Chen Chen | 954
|
||||
Yue Wang | 952
|
||||
B. | 948
|
||||
Lei Li | 947
|
||||
D Wang | 945
|
||||
Yu Chen | 940
|
||||
Bo Li | 937
|
||||
B. Chen | 927
|
||||
Jing Liu | 927
|
||||
D. Siobhan | 920
|
||||
Jie Wang | 916
|
||||
P. Liu | 911
|
||||
Yue Zhang | 910
|
||||
Jie Chen | 903
|
||||
Lin Li | 903
|
||||
H Li | 896
|
||||
M Wang | 896
|
||||
R. H. De Rijk | 892
|
||||
C Chen | 889
|
||||
B Wang | 887
|
||||
Kai Wang | 885
|
||||
L. Hnědkovský | 881
|
||||
K. Cho | 880
|
||||
Meng Wang | 879
|
||||
Bo Zhang | 877
|
||||
C. Hartwich | 877
|
||||
Qian Zhang | 874
|
||||
Rui Li | 870
|
||||
Yi Li | 868
|
||||
Fei Wang | 866
|
||||
Xin Chen | 865
|
||||
Jun Liu | 863
|
||||
G.F.S. | 862
|
||||
T. Chen | 862
|
||||
G. B. M. Zerr | 861
|
||||
Yong Wang | 860
|
||||
Chao Zhang | 856
|
||||
T. Lee | 854
|
||||
V. Kuprysyuk | 853
|
||||
Fan Zhang | 850
|
||||
S.H. Lee | 848
|
||||
W Chen | 848
|
||||
Hao Wu | 840
|
||||
S.H. Kim | 839
|
||||
Qiang Li | 834
|
||||
R. T. H. | 834
|
||||
Peng Liu | 833
|
||||
Jian Li | 832
|
||||
Yong Li | 828
|
||||
Yang Chen | 827
|
||||
B. Lee | 825
|
||||
F. C. H. | 824
|
||||
H.J. Kim | 824
|
||||
K. Chen | 824
|
||||
H. S. Kim | 823
|
||||
D. H. Kim | 820
|
||||
Qi Li | 820
|
||||
R. Lee | 819
|
||||
M. Patricia Juárez | 818
|
||||
X Liu | 811
|
||||
Xu Wang | 811
|
||||
Jing Chen | 810
|
||||
Jing Yang | 808
|
||||
M. Green | 808
|
||||
S. H. Lee | 805
|
||||
Bin Li | 802
|
||||
Bo Liu | 801
|
||||
Min Zhang | 801
|
||||
Lei Chen | 800
|
||||
J Lee | 799
|
||||
Lin Wang | 799
|
||||
Yi Yang | 798
|
||||
Peng Li | 796
|
||||
W. | 795
|
||||
W. Kim | 794
|
||||
W. Lee | 794
|
||||
Qi Liu | 793
|
||||
Hao Liu | 792
|
||||
Zhen Wang | 792
|
||||
Tao Li | 790
|
||||
Na Li | 787
|
||||
H. S. Chen | 785
|
||||
Bin Liu | 783
|
||||
P. Li | 780
|
||||
Yong Zhang | 779
|
||||
A. Lee | 778
|
||||
Hui Liu | 778
|
||||
Min Li | 778
|
||||
Jie Yang | 777
|
||||
J.S. Kim | 776
|
||||
M Zhang | 770
|
||||
Chao Li | 769
|
||||
S Lee | 769
|
||||
Wei Wei | 769
|
||||
E. Lee | 767
|
||||
B Zhang | 766
|
||||
Meng Li | 766
|
||||
F. Chen | 762
|
||||
R. Li | 761
|
||||
Tao Liu | 756
|
||||
R. Gupta | 752
|
||||
Gang Wang | 751
|
||||
Yang Yu | 750
|
||||
Lei Liu | 749
|
||||
Yuan Li | 749
|
||||
Lu Wang | 747
|
||||
A. Burg | 746
|
||||
Zhen Zhang | 744
|
||||
Xu Zhang | 743
|
||||
R. Chen | 742
|
||||
Wei Xu | 742
|
||||
A. Richard Green | 737
|
||||
C Zhang | 737
|
||||
Li Liu | 737
|
||||
Qian Li | 737
|
||||
J. Green | 735
|
||||
Wei Huang | 735
|
||||
Lin Zhang | 733
|
||||
Kai Zhang | 732
|
||||
Jun Yang | 731
|
||||
K. Park | 731
|
||||
Yan Chen | 731
|
||||
Wei Zhou | 728
|
||||
Yu Li | 726
|
||||
Ning Li | 724
|
||||
R. Liu | 718
|
||||
Wei Wu | 718
|
||||
F Wang | 716
|
||||
C. Park | 715
|
||||
Chi Zhang | 712
|
||||
O. Crosby | 712
|
||||
P. P. | 712
|
||||
Qiang Wang | 712
|
||||
R. Zaremba | 712
|
||||
Wei Zhao | 712
|
||||
T. Kim | 710
|
||||
R. | 709
|
||||
Dong Wang | 708
|
||||
Lu Zhang | 707
|
||||
Z Li | 701
|
||||
L. | 699
|
||||
G. Kraatz | 695
|
||||
J. M. Synge | 695
|
||||
Ying Chen | 694
|
||||
G Wang | 690
|
||||
Lei Yang | 690
|
||||
E. S. Krafsur | 689
|
||||
Wei Yang | 689
|
||||
B. Kim | 687
|
||||
L. L. K. | 687
|
||||
拓二 安達 | 687
|
||||
D. Simon | 686
|
||||
Feng Liu | 686
|
||||
C. Mai | 685
|
||||
K. K. Verma | 685
|
||||
S. Harvey Mudd | 685
|
||||
Chen Li | 684
|
||||
G Chen | 682
|
||||
Feng Li | 680
|
||||
D. Y.-M. | 679
|
||||
Liang Chen | 676
|
||||
H. J. Kim | 675
|
||||
Qiang Zhang | 675
|
||||
Wei Sun | 674
|
||||
Chao Liu | 672
|
||||
Jing Xu | 668
|
||||
Yue Li | 667
|
||||
C.J. Wormald | 665
|
||||
Li Chen | 664
|
||||
D. Green | 663
|
||||
G. | 662
|
||||
H.S. Kim | 662
|
||||
Li Yang | 662
|
||||
Bin Zhang | 661
|
||||
Shuai Wang | 661
|
||||
J.S. Lee | 659
|
||||
Jin Wang | 659
|
||||
N. Li | 659
|
||||
Gang Li | 658
|
||||
J Kim | 658
|
||||
Li Na | 658
|
||||
Lin Chen | 658
|
||||
J.-P.E. Grolier | 657
|
||||
Hong Zhang | 656
|
||||
P. Lee | 655
|
||||
Jing Zhao | 654
|
||||
Yong Liu | 653
|
||||
A. Wang | 652
|
||||
C. Sloby | 651
|
||||
H. B. | 649
|
||||
D. W. E. Green | 646
|
||||
P Wang | 645
|
||||
淳 久保田 | 645
|
||||
J. M. | 643
|
||||
Bo Yang | 642
|
||||
H. | 642
|
||||
J. Alexandre | 642
|
||||
Ning Wang | 642
|
||||
H Liu | 640
|
||||
Amit Kumar | 639
|
||||
Ting Wang | 639
|
||||
M. Rouprêt | 638
|
||||
Yuan Wang | 638
|
||||
D. | 637
|
||||
O Editor | 636
|
||||
P. Syamasundar Rao | 636
|
||||
J. S. Kim | 635
|
||||
K Wang | 635
|
||||
M Chen | 635
|
||||
C. H. Wang | 634
|
||||
S Li | 634
|
||||
Zhen Li | 634
|
||||
Min Wang | 633
|
||||
T Wang | 633
|
||||
Jia Liu | 632
|
||||
Ping Wang | 631
|
||||
Xiao Wang | 630
|
||||
J.S.H. | 628
|
||||
Nan Wang | 628
|
||||
Hui Chen | 624
|
||||
N. Wang | 624
|
||||
Zheng Li | 622
|
||||
Di Wu | 620
|
||||
Ping Li | 618
|
||||
Kai Li | 615
|
||||
Ke Wang | 615
|
||||
Jian Liu | 614
|
||||
D Zhang | 613
|
||||
Feng Zhang | 613
|
||||
A. Balian | 612
|
||||
P. Muller | 612
|
||||
Zheng Wang | 611
|
||||
Jun Chen | 609
|
||||
Tao Chen | 608
|
||||
Dan Li | 607
|
||||
X. Y. Zhang | 606
|
||||
J. H. | 604
|
||||
@@ -0,0 +1,14 @@
|
||||
Filter: nur Institution I62318514 (inkl. Unter-Einheiten)
|
||||
|
||||
Analyse 8: Autoren mit works_count >= 50, aber cited_by_count <= 5. (mögliche 'Placeholder' Authoren)
|
||||
OpenAlexID | Works Count | Cited By Count
|
||||
----------- | ----------- | --------------
|
||||
A5127000715 | 362 | 0
|
||||
A5125181253 | 271 | 2
|
||||
A5094302919 | 215 | 3
|
||||
A5080822544 | 73 | 3
|
||||
A5061785934 | 60 | 1
|
||||
A5127339696 | 55 | 0
|
||||
A5127463379 | 55 | 0
|
||||
A5023622635 | 54 | 1
|
||||
A5100558242 | 50 | 0
|
||||
@@ -0,0 +1,603 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import re
|
||||
import sys
|
||||
from collections import Counter
|
||||
from datetime import date, datetime
|
||||
from pathlib import Path
|
||||
|
||||
import requests
|
||||
|
||||
def search(
|
||||
query: dict,
|
||||
aggs: dict | None = None,
|
||||
size: int = 0,
|
||||
sort: list | None = None,
|
||||
source: list | None = None,
|
||||
search_after: list | None = None,
|
||||
) -> dict:
|
||||
body = {"size": size, "query": query}
|
||||
if aggs is not None:
|
||||
body["aggs"] = aggs
|
||||
if sort is not None:
|
||||
body["sort"] = sort
|
||||
if source is not None:
|
||||
body["_source"] = source
|
||||
if search_after is not None:
|
||||
body["search_after"] = search_after
|
||||
|
||||
response = requests.post(
|
||||
f"https://project.nes.uni-due.de/elastic/openalex-authors/_search",
|
||||
headers={
|
||||
"Authorization": f"ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
json=body,
|
||||
timeout=60,
|
||||
)
|
||||
|
||||
response.raise_for_status()
|
||||
|
||||
return response.json()
|
||||
|
||||
|
||||
def institution_filter(institution_id: str | None) -> dict | None:
|
||||
|
||||
if not institution_id:
|
||||
return None
|
||||
|
||||
full_id = (
|
||||
institution_id
|
||||
if institution_id.startswith("http")
|
||||
else f"https://openalex.org/{institution_id}"
|
||||
)
|
||||
|
||||
return {
|
||||
"nested": {
|
||||
"path": "affiliations",
|
||||
"query": {
|
||||
"term": {"affiliations.institution.lineage": full_id},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def with_institution_filter(base_query: dict, institution_id: str | None) -> dict:
|
||||
inst_filter = institution_filter(institution_id)
|
||||
if inst_filter is None:
|
||||
return base_query
|
||||
return {"bool": {"filter": [base_query, inst_filter]}}
|
||||
|
||||
|
||||
def fetch_analysis_1_data(institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
result = search(
|
||||
query=with_institution_filter({"exists": {"field": "orcid"}}, institution_id),
|
||||
aggs={
|
||||
"by_orcid": {
|
||||
"terms": {
|
||||
"field": "orcid",
|
||||
"size": 500,
|
||||
"min_doc_count": 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
buckets = result["aggregations"]["by_orcid"]["buckets"]
|
||||
|
||||
return [
|
||||
{"orcid": bucket["key"], "author_count": bucket["doc_count"]}
|
||||
for bucket in buckets
|
||||
]
|
||||
|
||||
|
||||
def fetch_analysis_2_data(institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
result = search(
|
||||
query=with_institution_filter({"exists": {"field": "orcid"}}, institution_id),
|
||||
aggs={
|
||||
"by_orcid": {
|
||||
"terms": {
|
||||
"field": "orcid",
|
||||
"size": 500,
|
||||
"min_doc_count": 2,
|
||||
},
|
||||
"aggs": {
|
||||
"unique_names": {
|
||||
"cardinality": {"field": "display_name.keyword"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
buckets = result["aggregations"]["by_orcid"]["buckets"]
|
||||
|
||||
return [
|
||||
{
|
||||
"orcid": bucket["key"],
|
||||
"author_count": bucket["doc_count"],
|
||||
"unique_names": bucket["unique_names"]["value"],
|
||||
}
|
||||
for bucket in buckets
|
||||
]
|
||||
|
||||
|
||||
def fetch_analysis_3_data(limit: int = 50, institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
result = search(
|
||||
query=with_institution_filter(
|
||||
{"exists": {"field": "display_name"}}, institution_id
|
||||
),
|
||||
size=limit,
|
||||
sort=[
|
||||
{
|
||||
"_script": {
|
||||
"type": "number",
|
||||
"script": {
|
||||
"lang": "painless",
|
||||
"source": "doc['display_name.keyword'].value.length()",
|
||||
},
|
||||
"order": "desc",
|
||||
},
|
||||
},
|
||||
],
|
||||
source=["display_name"],
|
||||
)
|
||||
|
||||
hits = result["hits"]["hits"]
|
||||
|
||||
return [
|
||||
{
|
||||
"display_name": hit["_source"]["display_name"],
|
||||
"length": len(hit["_source"]["display_name"]),
|
||||
}
|
||||
for hit in hits
|
||||
]
|
||||
|
||||
|
||||
def fetch_analysis_4_data(institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
emoji_ranges = "☀-➿⬀-⯿\U0001F000-\U0001FFFF"
|
||||
pattern = f".*[{emoji_ranges}].*"
|
||||
emoji_pattern = re.compile(f"[{emoji_ranges}]")
|
||||
|
||||
query = with_institution_filter(
|
||||
{"regexp": {"display_name.keyword": {"value": pattern}}}, institution_id
|
||||
)
|
||||
sort = [{"id": "asc"}]
|
||||
page_size = 1000
|
||||
|
||||
rows = []
|
||||
search_after = None
|
||||
|
||||
while True:
|
||||
result = search(
|
||||
query=query,
|
||||
size=page_size,
|
||||
sort=sort,
|
||||
source=["id", "display_name"],
|
||||
search_after=search_after,
|
||||
)
|
||||
|
||||
hits = result["hits"]["hits"]
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
author_id = hit["_source"]["id"].rsplit("/", 1)[-1]
|
||||
display_name = hit["_source"]["display_name"]
|
||||
for emoji in set(emoji_pattern.findall(display_name)):
|
||||
rows.append({"emoji": emoji, "author_id": author_id})
|
||||
|
||||
if len(hits) < page_size:
|
||||
break
|
||||
search_after = hits[-1]["sort"]
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
def fetch_analysis_5_data(institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
result = search(
|
||||
query=with_institution_filter(
|
||||
{"exists": {"field": "display_name"}}, institution_id
|
||||
),
|
||||
aggs={
|
||||
"by_display_name": {
|
||||
"terms": {
|
||||
"field": "display_name.keyword",
|
||||
"size": 500,
|
||||
"min_doc_count": 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
buckets = result["aggregations"]["by_display_name"]["buckets"]
|
||||
|
||||
return [
|
||||
{"display_name": bucket["key"], "author_count": bucket["doc_count"]}
|
||||
for bucket in buckets
|
||||
]
|
||||
|
||||
|
||||
def fetch_analysis_6_data(
|
||||
min_span: int = 80, institution_id: str | None = None
|
||||
) -> list[dict]:
|
||||
|
||||
query = with_institution_filter({"match_all": {}}, institution_id)
|
||||
sort = [{"id": "asc"}]
|
||||
page_size = 1000
|
||||
|
||||
rows = []
|
||||
search_after = None
|
||||
|
||||
while True:
|
||||
result = search(
|
||||
query=query,
|
||||
size=page_size,
|
||||
sort=sort,
|
||||
source=["id", "counts_by_year"],
|
||||
search_after=search_after,
|
||||
)
|
||||
|
||||
hits = result["hits"]["hits"]
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
years = [
|
||||
entry["year"]
|
||||
for entry in hit["_source"].get("counts_by_year", [])
|
||||
if "year" in entry
|
||||
]
|
||||
if not years:
|
||||
continue
|
||||
|
||||
from_year = min(years)
|
||||
to_year = max(years)
|
||||
span = to_year - from_year
|
||||
|
||||
if span > min_span:
|
||||
rows.append(
|
||||
{
|
||||
"author_id": hit["_source"]["id"].rsplit("/", 1)[-1],
|
||||
"from_year": from_year,
|
||||
"to_year": to_year,
|
||||
"span": span,
|
||||
}
|
||||
)
|
||||
|
||||
if len(hits) < page_size:
|
||||
break
|
||||
search_after = hits[-1]["sort"]
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
def fetch_analysis_7_data(institution_id: str | None = None) -> list[dict]:
|
||||
|
||||
current_year = date.today().year
|
||||
|
||||
query = with_institution_filter({"match_all": {}}, institution_id)
|
||||
sort = [{"id": "asc"}]
|
||||
page_size = 1000
|
||||
|
||||
rows = []
|
||||
search_after = None
|
||||
|
||||
while True:
|
||||
result = search(
|
||||
query=query,
|
||||
size=page_size,
|
||||
sort=sort,
|
||||
source=["id", "counts_by_year"],
|
||||
search_after=search_after,
|
||||
)
|
||||
|
||||
hits = result["hits"]["hits"]
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
author_id = hit["_source"]["id"].rsplit("/", 1)[-1]
|
||||
for entry in hit["_source"].get("counts_by_year", []):
|
||||
year = entry.get("year")
|
||||
if year is not None and year > current_year:
|
||||
rows.append({"author_id": author_id, "year": year})
|
||||
|
||||
if len(hits) < page_size:
|
||||
break
|
||||
search_after = hits[-1]["sort"]
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
def fetch_analysis_8_data(
|
||||
min_works: int = 50, max_citations: int = 5, institution_id: str | None = None
|
||||
) -> list[dict]:
|
||||
|
||||
query = with_institution_filter(
|
||||
{
|
||||
"bool": {
|
||||
"filter": [
|
||||
{"range": {"works_count": {"gte": min_works}}},
|
||||
{"range": {"cited_by_count": {"lte": max_citations}}},
|
||||
],
|
||||
},
|
||||
},
|
||||
institution_id,
|
||||
)
|
||||
sort = [{"id": "asc"}]
|
||||
page_size = 1000
|
||||
|
||||
rows = []
|
||||
search_after = None
|
||||
|
||||
while True:
|
||||
result = search(
|
||||
query=query,
|
||||
size=page_size,
|
||||
sort=sort,
|
||||
source=["id", "works_count", "cited_by_count"],
|
||||
search_after=search_after,
|
||||
)
|
||||
|
||||
hits = result["hits"]["hits"]
|
||||
if not hits:
|
||||
break
|
||||
|
||||
for hit in hits:
|
||||
source = hit["_source"]
|
||||
rows.append(
|
||||
{
|
||||
"author_id": source["id"].rsplit("/", 1)[-1],
|
||||
"works_count": source["works_count"],
|
||||
"cited_by_count": source["cited_by_count"],
|
||||
}
|
||||
)
|
||||
|
||||
if len(hits) < page_size:
|
||||
break
|
||||
search_after = hits[-1]["sort"]
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
def print_table(headers: list[str], rows: list[list[str]]) -> None:
|
||||
widths = [
|
||||
max(len(str(cell)) for cell in [header, *(row[i] for row in rows)])
|
||||
for i, header in enumerate(headers)
|
||||
]
|
||||
|
||||
def print_row(cells: list[str]) -> None:
|
||||
print(" | ".join(str(cell).ljust(width) for cell, width in zip(cells, widths)))
|
||||
|
||||
print_row(headers)
|
||||
print_row(["-" * width for width in widths])
|
||||
for row in rows:
|
||||
print_row(row)
|
||||
|
||||
|
||||
def run_analysis_1(institution_id: str | None = None) -> None:
|
||||
print("Analyse 1: ORCIDs, die von 2 oder mehr Autoren-Dokumenten geteilt werden.")
|
||||
analysis_1_data = fetch_analysis_1_data(institution_id)
|
||||
analysis_1_data.sort(key=lambda group: group["author_count"], reverse=True)
|
||||
print_table(
|
||||
["ORCID", "Anzahl Autoren"],
|
||||
[[group["orcid"], group["author_count"]] for group in analysis_1_data],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_2(institution_id: str | None = None) -> None:
|
||||
print(
|
||||
"Analyse 2: Wie Analyse 1, zusätzlich mit der Anzahl unterschiedlicher "
|
||||
"display_names je ORCID (exakter Match) — trennt echte Namens-Duplikate "
|
||||
"von unterschiedlich benannten Autoren mit derselben ORCID."
|
||||
)
|
||||
analysis_2_data = fetch_analysis_2_data(institution_id)
|
||||
analysis_2_data.sort(key=lambda group: group["author_count"], reverse=True)
|
||||
print_table(
|
||||
["ORCID", "Gesamt", "Unique Names"],
|
||||
[
|
||||
[group["orcid"], group["author_count"], group["unique_names"]]
|
||||
for group in analysis_2_data
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_3(institution_id: str | None = None) -> None:
|
||||
print(
|
||||
"Analyse 3: Die 50 Autoren mit den längsten display_names im gesamten "
|
||||
"Autoren-Index, absteigend nach Zeichenlänge sortiert."
|
||||
)
|
||||
analysis_3_data = fetch_analysis_3_data(limit=50, institution_id=institution_id)
|
||||
analysis_3_data.sort(key=lambda entry: entry["length"], reverse=True)
|
||||
print_table(
|
||||
["Display Name", "Länge"],
|
||||
[[entry["display_name"], entry["length"]] for entry in analysis_3_data],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_4(institution_id: str | None = None) -> None:
|
||||
max_examples_per_emoji = 5
|
||||
print(
|
||||
"Analyse 4: Vollständiger Scan über den gesamten Autoren-Index — für "
|
||||
"jeden Autor mit einem Emoji im display_name eine Zeile je gefundenem "
|
||||
"Emoji (deckt die gängigen Emoji-Unicode-Blöcke ab, nicht zu 100% "
|
||||
f"vollständig). Anzahl der Einträge ist die echte Gesamtzahl, pro Emoji "
|
||||
f"werden aber nur {max_examples_per_emoji} Beispiel-Autoren angezeigt."
|
||||
)
|
||||
analysis_4_data = fetch_analysis_4_data(institution_id)
|
||||
emoji_counts = Counter(row["emoji"] for row in analysis_4_data)
|
||||
analysis_4_data.sort(
|
||||
key=lambda row: (-emoji_counts[row["emoji"]], row["emoji"], row["author_id"])
|
||||
)
|
||||
|
||||
table_rows = []
|
||||
examples_shown = Counter()
|
||||
for row in analysis_4_data:
|
||||
emoji = row["emoji"]
|
||||
if examples_shown[emoji] >= max_examples_per_emoji:
|
||||
continue
|
||||
examples_shown[emoji] += 1
|
||||
table_rows.append([emoji, emoji_counts[emoji], row["author_id"]])
|
||||
|
||||
print_table(["Emoji", "Anzahl der Einträge", "OpenAlexID des Authors"], table_rows)
|
||||
|
||||
|
||||
def run_analysis_5(institution_id: str | None = None) -> None:
|
||||
print(
|
||||
"Analyse 5: Count-by auf display_name — wie viele Autoren-Dokumente "
|
||||
"denselben display_name (exakter Match) teilen."
|
||||
)
|
||||
analysis_5_data = fetch_analysis_5_data(institution_id)
|
||||
analysis_5_data.sort(key=lambda group: group["author_count"], reverse=True)
|
||||
print_table(
|
||||
["Display Name", "Anzahl"],
|
||||
[[group["display_name"], group["author_count"]] for group in analysis_5_data],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_6(institution_id: str | None = None) -> None:
|
||||
min_span = 100
|
||||
print(
|
||||
f"Analyse 6: Autoren, deren Publikationsspanne (max - min Jahr aus "
|
||||
f"counts_by_year) größer als {min_span} Jahre ist."
|
||||
)
|
||||
analysis_6_data = fetch_analysis_6_data(min_span, institution_id)
|
||||
analysis_6_data.sort(key=lambda entry: entry["span"], reverse=True)
|
||||
print_table(
|
||||
["OpenAlexID", "Von", "Bis", "Jahre"],
|
||||
[
|
||||
[entry["author_id"], entry["from_year"], entry["to_year"], entry["span"]]
|
||||
for entry in analysis_6_data
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_7(institution_id: str | None = None) -> None:
|
||||
current_year = date.today().year
|
||||
print(
|
||||
f"Analyse 7: Publikationsjahre aus counts_by_year in der Zukunft "
|
||||
f"(> {current_year})."
|
||||
)
|
||||
analysis_7_data = fetch_analysis_7_data(institution_id)
|
||||
analysis_7_data.sort(key=lambda entry: entry["year"], reverse=True)
|
||||
print_table(
|
||||
["OpenAlexID", "Jahr"],
|
||||
[[entry["author_id"], entry["year"]] for entry in analysis_7_data],
|
||||
)
|
||||
|
||||
|
||||
def run_analysis_8(institution_id: str | None = None) -> None:
|
||||
min_works = 50
|
||||
max_citations = 5
|
||||
print(
|
||||
f"Analyse 8: Autoren mit works_count >= {min_works}, aber "
|
||||
f"cited_by_count <= {max_citations}. (mögliche 'Placeholder' Authoren)"
|
||||
)
|
||||
analysis_8_data = fetch_analysis_8_data(min_works, max_citations, institution_id)
|
||||
analysis_8_data.sort(key=lambda entry: entry["works_count"], reverse=True)
|
||||
print_table(
|
||||
["OpenAlexID", "Works Count", "Cited By Count"],
|
||||
[
|
||||
[entry["author_id"], entry["works_count"], entry["cited_by_count"]]
|
||||
for entry in analysis_8_data
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
ANALYSES = {
|
||||
1: run_analysis_1,
|
||||
2: run_analysis_2,
|
||||
3: run_analysis_3,
|
||||
4: run_analysis_4,
|
||||
5: run_analysis_5,
|
||||
6: run_analysis_6,
|
||||
7: run_analysis_7,
|
||||
8: run_analysis_8,
|
||||
}
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Analysen über den openalex-authors Elasticsearch-Index.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--analysis",
|
||||
type=int,
|
||||
choices=sorted(ANALYSES),
|
||||
help="Nur diese Analyse ausführen (1-8). Ohne Angabe werden alle ausgeführt.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--filter-uni",
|
||||
metavar="INSTITUTION_ID",
|
||||
help="OpenAlex-Institutions-ID (z.B. I62318514), auf die alle Suchen "
|
||||
"gefiltert werden — inklusive Autoren, die nur einer Unter-Einheit "
|
||||
"(z.B. einem Institut) dieser Institution zugeordnet sind.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--save",
|
||||
action="store_true",
|
||||
help="Ausgabe zusätzlich in analysen/run_<timestamp>.txt speichern.",
|
||||
)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
class Tee:
|
||||
|
||||
def __init__(self, *streams) -> None:
|
||||
self.streams = streams
|
||||
|
||||
def write(self, data: str) -> None:
|
||||
for stream in self.streams:
|
||||
stream.write(data)
|
||||
|
||||
def flush(self) -> None:
|
||||
for stream in self.streams:
|
||||
stream.flush()
|
||||
|
||||
|
||||
def run(args: argparse.Namespace) -> None:
|
||||
if args.filter_uni:
|
||||
print(f"Filter: nur Institution {args.filter_uni} (inkl. Unter-Einheiten)\n")
|
||||
|
||||
if args.analysis is not None:
|
||||
ANALYSES[args.analysis](args.filter_uni)
|
||||
return
|
||||
|
||||
for number, run_analysis in sorted(ANALYSES.items()):
|
||||
if number > 1:
|
||||
print()
|
||||
run_analysis(args.filter_uni)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
args = parse_args()
|
||||
|
||||
if not args.save:
|
||||
run(args)
|
||||
return
|
||||
|
||||
analysen_dir = Path(__file__).resolve().parent / "analysen"
|
||||
analysen_dir.mkdir(parents=True, exist_ok=True)
|
||||
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
||||
output_path = analysen_dir / f"run_{timestamp}.txt"
|
||||
|
||||
original_stdout = sys.stdout
|
||||
with output_path.open("w", encoding="utf-8") as file:
|
||||
sys.stdout = Tee(original_stdout, file)
|
||||
try:
|
||||
run(args)
|
||||
finally:
|
||||
sys.stdout = original_stdout
|
||||
|
||||
print(f"\nOutput gespeichert unter: {output_path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,27 @@
|
||||
###
|
||||
POST https://project.nes.uni-due.de/elastic/openalex-authors/_search
|
||||
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"size": 1,
|
||||
"query": {
|
||||
"term": {
|
||||
"id": "https://openalex.org/A5110029571"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
###
|
||||
POST https://project.nes.uni-due.de/elastic/openalex-authors/_search
|
||||
Authorization: ApiKey am1wWXBaMEJEVWJoZkE5MnBaUlk6TWlvbW1LRlMzNjdDUHgzYmVkUmI5UQ==
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"_source": ["id", "display_name", "orcid"],
|
||||
"query": {
|
||||
"term": {
|
||||
"orcid": "https://orcid.org/0000-0002-1203-1424"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
requests
|
||||
python-dotenv
|
||||
@@ -0,0 +1,103 @@
|
||||
# Forschungstimeline-Analyse
|
||||
|
||||
Diese Analyse untersucht, welche OpenAlex-Daten sich eignen, um darzustellen, woran eine
|
||||
Person über die Jahre gearbeitet hat und ob sich ihr Themengebiet verschoben hat oder gleich
|
||||
geblieben ist. Das Ergebnis ist die Grundlage für die Forschungstimeline im
|
||||
Frontend (`/api/works/{author_id}/topics-by-time`).
|
||||
|
||||
## Vorgehen
|
||||
|
||||
- **Stichprobe:** vier manuell ausgewählte Personen mit unterschiedlich langer und breiter
|
||||
Publikationshistorie ([research_timeline_sample.csv](research_timeline_sample.csv)):
|
||||
Lucas Davi, Marcus Handte, Arman Arzani, Pedro José Marrón.
|
||||
- **Datenerhebung:** Für jede Person wurden alle Werke über die OpenAlex-API geladen
|
||||
([openalex_client.py](openalex_client.py)) und pro Werk die Felder `keywords`, `topics`
|
||||
und `primary_topic` extrahiert, nach Publikationsjahr gruppiert
|
||||
([timeline_manual_analysis.py](timeline_manual_analysis.py) →
|
||||
[per_person_details/](per_person_details/)).
|
||||
- **Auswertung:** Vergleich von Keywords und Topics hinsichtlich Menge, Wiederholung und
|
||||
inhaltlicher Präzision.
|
||||
|
||||
## Ergebnisse
|
||||
|
||||
### Keywords sind zu unspezifisch
|
||||
|
||||
Die häufigsten Keywords pro Person sind überwiegend generische Fachbereichs-Label statt
|
||||
konkreter Forschungsthemen. Bei Marcus Handte (110 Werke) ist das häufigste Keyword schlicht
|
||||
**"Computer science"** (94 von 110 Werken), gefolgt von "Engineering" (29),
|
||||
"Telecommunications" (23) und "World Wide Web" (22) — Begriffe, die auf praktisch jede
|
||||
Informatik-Publikation zutreffen und nichts über sein tatsächliches Forschungsgebiet
|
||||
aussagen. Bei Lucas Davi (138 Werke) dominieren ähnlich "Computer science" (126),
|
||||
"Computer security" (95) und "Operating system" (74).
|
||||
|
||||
Zusätzlich zeigen sich klare **Begriffs-Fehlzuordnungen**: Die automatische
|
||||
Keyword-Extraktion von OpenAlex ist nicht domänenspezifisch und ordnet englische
|
||||
Alltagswörter teils der falschen Bedeutung zu. Beispiele aus den Daten:
|
||||
|
||||
- Marcus Handte, _context-aware computing_: Keyword **"Context (archaeology)"**
|
||||
(19 Werke) — "Context" wurde der archäologischen statt der informatischen Bedeutung zugeordnet.
|
||||
- Lucas Davi: Keyword **"Code (set theory)"** (32 Werke) — "Code" wurde
|
||||
der mathematischen Mengenlehre statt Programmcode zugeordnet.
|
||||
- Marcus Handte, Keyword **"Key (lock)"** — "Key" wurde als
|
||||
physisches Türschloss statt als technischer Begriff interpretiert.
|
||||
|
||||
Diese drei Beispiele sind keine Einzelfälle, sondern stehen exemplarisch für ein
|
||||
systematisches Problem: Das Keyword-Feld eignet sich nicht als Grundlage für eine
|
||||
Forschungsthemen-Timeline.
|
||||
|
||||
### Topics sind spezifisch und decken sich mit dem bekannten Forschungsprofil
|
||||
|
||||
Die häufigsten Topics bilden dagegen erkennbar die tatsächlichen Forschungsschwerpunkte ab.
|
||||
Bei Marcus Handte: _"Context-Aware Activity Recognition Systems"_ (32), _"Indoor and Outdoor
|
||||
Localization Technologies"_ (17), _"IoT and Edge/Fog Computing"_ (14) — deckt sich mit seinem
|
||||
bekannten Profil in den Networked Embedded Systems. Bei Lucas Davi: _"Security and
|
||||
Verification in Computing"_ (105), _"Advanced Malware Detection Techniques"_ (91),
|
||||
_"Physical Unclonable Functions (PUFs) and Hardware Security"_ (16) — passt zu seiner
|
||||
Sicherheitsforschung.
|
||||
|
||||
Topics sind zusätzlich hierarchisch in Subfield/Field/Domain eingeordnet, was eine
|
||||
konsistente Farbcodierung und Gruppierung in der Timeline-Legende ermöglicht — bei den
|
||||
freien Keyword-Strings ist eine solche Einordnung nicht verfügbar.
|
||||
|
||||
**Einschränkung:** Auch Topics sind nicht fehlerfrei. Bei Lucas Davi erscheint z. B.
|
||||
_"Diamond and Carbon-based Materials Research"_ unter den Top-Topics (21 Werke) — fachfremd zu
|
||||
seiner Sicherheitsforschung und vermutlich auf eine Autor-Namensverwechslung in OpenAlex
|
||||
zurückzuführen. Solche Ausreißer sind in den Daten deutlich seltener als bei Keywords, aber
|
||||
nicht komplett ausgeschlossen.
|
||||
|
||||
### Quantitativer Überblick
|
||||
|
||||
| Person | Werke | Ø Keywords/Werk | Distinkte Keywords | Ø Topics/Werk | Distinkte Topics |
|
||||
| ----------------- | ----: | --------------: | -----------------: | ------------: | ---------------: |
|
||||
| Lucas Davi | 138 | 9,89 | 324 | 2,83 | 59 |
|
||||
| Marcus Handte | 110 | 9,35 | 309 | 2,79 | 109 |
|
||||
| Arman Arzani | 8 | 5,38 | 36 | 2,50 | 19 |
|
||||
| Pedro José Marrón | 286 | 10,02 | 590 | 2,76 | 183 |
|
||||
|
||||
Pro Werk stehen deutlich mehr Keywords als Topics zur Verfügung (Faktor ~3-4), was auf den
|
||||
ersten Blick nach mehr Information aussieht — die obigen Beispiele zeigen aber, dass ein
|
||||
Großteil davon zu generisch oder falsch zugeordnet ist, um für eine Timeline nutzbar zu sein.
|
||||
|
||||
### Beispiel: sichtbare Themenverschiebung über die Jahre (Marcus Handte, Primary Topics)
|
||||
|
||||
Die pro Jahr häufigsten Primary Topics zeigen genau die Art von Verschiebung, die die
|
||||
Timeline sichtbar machen soll — von Distributed Systems über mehrere Jahre stabiles
|
||||
Context-Aware Computing, dann Indoor-Lokalisierung, bis zu einer thematisch breiteren Phase
|
||||
in den letzten Jahren:
|
||||
|
||||
| Jahre | Dominantes Primary Topic |
|
||||
| --------------- | --------------------------------------------------------------------- |
|
||||
| 2004–2005 | Distributed systems and fault tolerance |
|
||||
| 2006–2012 | Context-Aware Activity Recognition Systems (durchgehend über 7 Jahre) |
|
||||
| 2013, 2016–2017 | Indoor and Outdoor Localization Technologies |
|
||||
| 2014, 2024 | Human Mobility and Location-Based Analysis |
|
||||
| 2022 | Privacy, Security, and Data Protection |
|
||||
| 2023 | Robotics and Sensor-Based Localization |
|
||||
|
||||
(vollständige Jahr-für-Jahr-Aufschlüsselung in
|
||||
[per_person_details/Marcus_Handte.json](per_person_details/Marcus_Handte.json))
|
||||
|
||||
## Fazit: finale Entscheidung im Projekt
|
||||
|
||||
Die Forschungstimeline im Backend basiert ausschließlich auf `topics` und `primary_topic`.
|
||||
Das`keywords`-Feld von OpenAlex wird für die Timeline nicht verwendet.
|
||||
@@ -0,0 +1,88 @@
|
||||
# Kompaktansicht: Gruppierung von Jahren
|
||||
|
||||
Nachdem die Entscheidung für `topics`/`primary_topic` als Datengrundlage gefallen war,
|
||||
haben wir uns die Daten der vier Personen noch einmal angesehen, um zu überlegen,
|
||||
wie sich das pro Jahr in der Timeline darstellen lässt. Bei Personen mit langer
|
||||
Publikationshistorie (z. B. Pedro José Marrón mit 28 Jahren) wird eine
|
||||
reine Jahresansicht schnell unübersichtlich. Deshalb ist zusätzlich eine Kompaktansicht
|
||||
geplant, die aufeinanderfolgende Jahre zu einer Phase zusammenfasst, wenn sie thematisch
|
||||
zusammengehören. Für die konkrete Gruppierungsregel haben wir zwei Ansätze gegeneinander
|
||||
getestet, bevor wir uns entschieden haben.
|
||||
|
||||
## Ansatz A: Primary-Topic-Regel
|
||||
|
||||
Zwei **aufeinanderfolgende** Jahre werden zu einer Phase zusammengefasst, wenn sie dasselbe
|
||||
dominante Primary Topic teilen — also das Topic mit der höchsten Werkanzahl in beiden Jahren
|
||||
(bei Gleichstand zählt jedes der gleichauf liegenden Topics als Treffer). Ein fehlendes Jahr
|
||||
oder ein Wechsel des dominanten Themas beendet die Phase sofort, auch wenn später wieder
|
||||
dasselbe Thema auftaucht.
|
||||
|
||||
Beispiel Marcus Handte, Jahre 2006–2012: Da in jedem dieser sieben Jahre "Context-Aware
|
||||
Activity Recognition Systems" das (gleichauf-)dominante Primary Topic ist, entsteht daraus
|
||||
eine einzige Phase "2006–2012". Sobald 2013 "Indoor and Outdoor Localization Technologies"
|
||||
dominiert, beginnt eine neue Phase.
|
||||
|
||||
## Ansatz B: Cosine-Similarity über das gesamte Themenprofil
|
||||
|
||||
Als Alternative haben wir einen Ansatz geprüft, der nicht nur das dominante Thema, sondern
|
||||
das gesamte Themenprofil eines Jahres berücksichtigt:
|
||||
|
||||
- Für jedes Jahr wird ein Vektor aus allen Topics gebildet: reguläre Topics zählen mit
|
||||
Gewicht 1, Primary Topics zusätzlich mit Gewicht 1,5 (jeweils multipliziert mit der Anzahl
|
||||
der Werke, die das Topic in diesem Jahr tragen).
|
||||
- Ein Jahr wird an eine bestehende (aufeinanderfolgende) Phase angehängt, wenn die
|
||||
Kosinus-Ähnlichkeit zwischen dem Phasen-Vektor (Summe aller bisherigen Jahre der Phase) und
|
||||
dem Jahres-Vektor mindestens 0,55 beträgt — unabhängig davon, ob das _dominante_ Thema
|
||||
übereinstimmt.
|
||||
- Das Label einer fertigen Phase ist danach das über alle enthaltenen Jahre am häufigsten
|
||||
vorkommende Primary Topic.
|
||||
|
||||
Beide Ansätze wurden als Prototyp implementiert und an denselben vier Personen ausgewertet.
|
||||
|
||||
## Vergleich
|
||||
|
||||
### 1. Cosine-Similarity verschluckt genau die Verschiebungen, die die Timeline zeigen soll
|
||||
|
||||
Bei **Lucas Davi** fasst die Primary-Topic-Regel 2013 korrekt als eigene, einjährige Phase
|
||||
("Advanced Malware Detection Techniques") zusammen, weil in diesem Jahr ein anderes Thema
|
||||
dominierte als davor und danach:
|
||||
|
||||
| Verfahren | Ergebnis 2009–2026 |
|
||||
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Primary-Topic-Regel | 2009–2012: Security and Verification in Computing · **2013: Advanced Malware Detection Techniques** · 2014–2026: Security and Verification in Computing |
|
||||
| Cosine-Similarity | **2009–2024: Security and Verification in Computing** (16 Jahre in einer Phase) · 2025: Blockchain Technology Applications and Security · 2026: Security and Verification in Computing |
|
||||
|
||||
Die Cosine-Similarity verschmilzt 16 Jahre zu einer einzigen Phase und lässt dabei den
|
||||
2013er-Ausreißer komplett verschwinden — obwohl genau solche vorübergehenden Themenwechsel
|
||||
für die Timeline interessant wären. Der Grund: Die im Hintergrund mitlaufenden Nebenthemen
|
||||
(z. B. allgemeine Sicherheitsthemen) überlappen Jahr für Jahr stark genug, dass die
|
||||
Ähnlichkeit trotz unterschiedlichem Schwerpunktthema über der Schwelle bleibt.
|
||||
|
||||
Bei **Pedro José Marrón** zeigt sich derselbe Effekt noch deutlicher: Die Primary-Topic-Regel
|
||||
löst 2005–2011, 2012, 2013 und 2014–2015 als vier unterschiedliche, informative Phasen auf;
|
||||
Cosine-Similarity verschmilzt 2004 bis 2016 — **13 Jahre** — zu einer einzigen Phase und
|
||||
verdeckt damit u. a. das 2012er-Jahr zu "Interactive and Immersive Displays" komplett.
|
||||
|
||||
### 2. Cosine-Similarity verhält sich auch gegenteilig unvorhersehbar
|
||||
|
||||
Bei **Arman Arzani** (kurze Historie, 4 Jahre) tritt der umgekehrte Fall auf: 2023 und 2024
|
||||
haben laut Primary-Topic-Regel _dasselbe_ dominante Thema ("Big Data and Business
|
||||
Intelligence") und werden zusammengefasst — Cosine-Similarity trennt die beiden Jahre
|
||||
trotzdem, weil die Nebenthemen zu wenig überlappen. Für Nutzende wäre das schwer
|
||||
nachvollziehbar: Zwei Jahre mit identisch angezeigtem Hauptthema erscheinen als getrennte
|
||||
Phasen, ohne dass ein sichtbarer Grund dafür erkennbar ist.
|
||||
|
||||
### 3. Nachvollziehbarkeit
|
||||
|
||||
Die Primary-Topic-Regel begründet eine Phase immer mit genau dem Label, das auch angezeigt
|
||||
wird ("diese Jahre teilen sich dasselbe Hauptthema"). Die Kosinus-Ähnlichkeit ist dagegen ein
|
||||
unsichtbarer Zahlenwert, der in der Oberfläche nirgends auftaucht — eine Zusammenfassung oder
|
||||
Trennung lässt sich für Nutzende nicht nachvollziehen, wie die Beispiele oben zeigen.
|
||||
|
||||
## Entscheidung
|
||||
|
||||
Auf Basis dieses Vergleichs verwendet die Kompaktansicht die Primary-Topic-Regel. Der
|
||||
Cosine-Similarity-Ansatz bleibt als geprüfte, aber verworfene Alternative dokumentiert: Er
|
||||
neigt auf echten Daten dazu, genau die Themenwechsel zu verschlucken, die die Timeline
|
||||
sichtbar machen soll, und seine Gruppierungsentscheidungen sind für Nutzende nicht
|
||||
nachvollziehbar.
|
||||
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"Arman Arzani": {
|
||||
"year_count": 4,
|
||||
"phases_primary_topic": [
|
||||
"2023-2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Advanced Software Engineering Methodologies"
|
||||
],
|
||||
"phases_cosine_similarity": [
|
||||
"2023: Big Data and Business Intelligence",
|
||||
"2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Advanced Software Engineering Methodologies"
|
||||
],
|
||||
"phase_count_primary_topic": 3,
|
||||
"phase_count_cosine_similarity": 4
|
||||
},
|
||||
"Lucas Davi": {
|
||||
"year_count": 18,
|
||||
"phases_primary_topic": [
|
||||
"2009-2012: Security and Verification in Computing",
|
||||
"2013: Advanced Malware Detection Techniques",
|
||||
"2014-2026: Security and Verification in Computing"
|
||||
],
|
||||
"phases_cosine_similarity": [
|
||||
"2009-2024: Security and Verification in Computing",
|
||||
"2025: Blockchain Technology Applications and Security",
|
||||
"2026: Security and Verification in Computing"
|
||||
],
|
||||
"phase_count_primary_topic": 3,
|
||||
"phase_count_cosine_similarity": 3
|
||||
},
|
||||
"Marcus Handte": {
|
||||
"year_count": 23,
|
||||
"phases_primary_topic": [
|
||||
"2004: Data Visualization and Analytics",
|
||||
"2005: Distributed systems and fault tolerance",
|
||||
"2006-2007: Context-Aware Activity Recognition Systems",
|
||||
"2008: Energy Efficient Wireless Sensor Networks",
|
||||
"2009-2012: Context-Aware Activity Recognition Systems",
|
||||
"2013: Indoor and Outdoor Localization Technologies",
|
||||
"2014: Human Mobility and Location-Based Analysis",
|
||||
"2015: Context-Aware Activity Recognition Systems",
|
||||
"2016-2017: Indoor and Outdoor Localization Technologies",
|
||||
"2018: Bluetooth and Wireless Communication Technologies",
|
||||
"2019: Distributed and Parallel Computing Systems",
|
||||
"2020: Advanced Vision and Imaging",
|
||||
"2021: Human Mobility and Location-Based Analysis",
|
||||
"2022: Privacy, Security, and Data Protection",
|
||||
"2023: Energy Harvesting in Wireless Networks",
|
||||
"2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Advanced Software Engineering Methodologies"
|
||||
],
|
||||
"phases_cosine_similarity": [
|
||||
"2004: Data Visualization and Analytics",
|
||||
"2005: Distributed systems and fault tolerance",
|
||||
"2006-2007: Context-Aware Activity Recognition Systems",
|
||||
"2008: Energy Efficient Wireless Sensor Networks",
|
||||
"2009-2012: Context-Aware Activity Recognition Systems",
|
||||
"2013: Indoor and Outdoor Localization Technologies",
|
||||
"2014: Human Mobility and Location-Based Analysis",
|
||||
"2015: Context-Aware Activity Recognition Systems",
|
||||
"2016-2018: Indoor and Outdoor Localization Technologies",
|
||||
"2019: Distributed and Parallel Computing Systems",
|
||||
"2020: Advanced Vision and Imaging",
|
||||
"2021: Human Mobility and Location-Based Analysis",
|
||||
"2022: Privacy, Security, and Data Protection",
|
||||
"2023: Energy Harvesting in Wireless Networks",
|
||||
"2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Advanced Software Engineering Methodologies"
|
||||
],
|
||||
"phase_count_primary_topic": 18,
|
||||
"phase_count_cosine_similarity": 17
|
||||
},
|
||||
"Pedro José Marrón": {
|
||||
"year_count": 28,
|
||||
"phases_primary_topic": [
|
||||
"1996: Mathematics, Computing, and Information Processing",
|
||||
"1999: Real-Time Systems Scheduling",
|
||||
"2001: Advanced Database Systems and Queries",
|
||||
"2002: Distributed systems and fault tolerance",
|
||||
"2003: Advanced Database Systems and Queries",
|
||||
"2004: Distributed systems and fault tolerance",
|
||||
"2005-2011: Energy Efficient Wireless Sensor Networks",
|
||||
"2012: Interactive and Immersive Displays",
|
||||
"2013: Indoor and Outdoor Localization Technologies",
|
||||
"2014-2015: Energy Efficient Wireless Sensor Networks",
|
||||
"2016-2017: Indoor and Outdoor Localization Technologies",
|
||||
"2018: Bluetooth and Wireless Communication Technologies",
|
||||
"2019: Indoor and Outdoor Localization Technologies",
|
||||
"2020-2021: Robotics and Sensor-Based Localization",
|
||||
"2022: Advanced Database Systems and Queries",
|
||||
"2023: Energy Harvesting in Wireless Networks",
|
||||
"2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Face recognition and analysis"
|
||||
],
|
||||
"phases_cosine_similarity": [
|
||||
"1996: Mathematics, Computing, and Information Processing",
|
||||
"1999: Real-Time Systems Scheduling",
|
||||
"2001: Advanced Database Systems and Queries",
|
||||
"2002: Distributed systems and fault tolerance",
|
||||
"2003: Advanced Database Systems and Queries",
|
||||
"2004-2016: Energy Efficient Wireless Sensor Networks",
|
||||
"2017: Indoor and Outdoor Localization Technologies",
|
||||
"2018: Bluetooth and Wireless Communication Technologies",
|
||||
"2019: Indoor and Outdoor Localization Technologies",
|
||||
"2020: Robotics and Sensor-Based Localization",
|
||||
"2021: Human Mobility and Location-Based Analysis",
|
||||
"2022: Advanced Database Systems and Queries",
|
||||
"2023: Energy Harvesting in Wireless Networks",
|
||||
"2024: Big Data and Business Intelligence",
|
||||
"2025: Data Mining Algorithms and Applications",
|
||||
"2026: Face recognition and analysis"
|
||||
],
|
||||
"phase_count_primary_topic": 19,
|
||||
"phase_count_cosine_similarity": 16
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
"""
|
||||
Reconstructs both compact-view clustering methods that were evaluated for the
|
||||
research timeline and runs them against the same four people used in the
|
||||
keyword-vs-topic analysis (../per_person_details/*.json).
|
||||
|
||||
Method A ("primary-topic"): the method actually shipped. Two contiguous years
|
||||
belong to the same phase if they share the same dominant (highest-count)
|
||||
primary topic. This mirrors `canExtendPhaseByPrimaryTopic` /
|
||||
`getDominantPrimaryTopicCandidates` in research-timeline.component.ts.
|
||||
|
||||
Method B ("cosine-similarity"): an alternative that was implemented and
|
||||
tested but not adopted (commit 65ab9d59, "Timeline: Add cosine similarity
|
||||
clustering"). Two contiguous years belong to the same phase if the cosine
|
||||
similarity between their weighted topic vectors is >= 0.55. Each year's
|
||||
vector is built from its `topics` (weight 1) and `primary_topics` (weight
|
||||
1.5), keyed by normalized topic name, weighted by how many works in that
|
||||
year carry the topic.
|
||||
"""
|
||||
|
||||
import json
|
||||
import math
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
DETAILS_DIR = BASE_DIR.parent / "per_person_details"
|
||||
OUTPUT_FILE = BASE_DIR / "clustering_comparison.json"
|
||||
|
||||
SIMILARITY_THRESHOLD = 0.55
|
||||
PRIMARY_TOPIC_WEIGHT = 1.5
|
||||
|
||||
|
||||
def normalize(name: str) -> str:
|
||||
return name.strip().lower()
|
||||
|
||||
|
||||
def build_year_aggregates(
|
||||
works_by_year: dict[str, list[dict[str, Any]]],
|
||||
) -> dict[int, dict[str, Any]]:
|
||||
"""
|
||||
Turns the per-work records for one person into the same shape the real
|
||||
backend produces per year: topic/primary-topic name -> number of works
|
||||
in that year carrying it.
|
||||
"""
|
||||
aggregates: dict[int, dict[str, Any]] = {}
|
||||
|
||||
for year_str, works in works_by_year.items():
|
||||
year = int(year_str)
|
||||
topic_counts: dict[str, int] = {}
|
||||
primary_counts: dict[str, int] = {}
|
||||
|
||||
for work in works:
|
||||
for topic_name in work.get("topics") or []:
|
||||
topic_counts[topic_name] = topic_counts.get(topic_name, 0) + 1
|
||||
|
||||
primary = work.get("primary_topic")
|
||||
if primary:
|
||||
primary_counts[primary] = primary_counts.get(primary, 0) + 1
|
||||
|
||||
aggregates[year] = {
|
||||
"topics": topic_counts,
|
||||
"primary_topics": primary_counts,
|
||||
}
|
||||
|
||||
return dict(sorted(aggregates.items()))
|
||||
|
||||
|
||||
def dominant_primary_topic_candidates(year_data: dict[str, Any]) -> list[str]:
|
||||
primary_topics = year_data["primary_topics"]
|
||||
if not primary_topics:
|
||||
return []
|
||||
max_count = max(primary_topics.values())
|
||||
return [name for name, count in primary_topics.items() if count == max_count]
|
||||
|
||||
|
||||
def main_topic_name(year_data: dict[str, Any]) -> str:
|
||||
"""
|
||||
Mirrors getMainTopicItem: highest-count primary topic, falling back to
|
||||
the highest-count regular topic if there is no primary topic at all.
|
||||
"""
|
||||
candidates = dominant_primary_topic_candidates(year_data)
|
||||
if candidates:
|
||||
return sorted(candidates)[0]
|
||||
|
||||
topics = year_data["topics"]
|
||||
if not topics:
|
||||
return "Keine Topics"
|
||||
|
||||
max_count = max(topics.values())
|
||||
top = sorted(name for name, count in topics.items() if count == max_count)
|
||||
return top[0]
|
||||
|
||||
|
||||
def build_phases_primary_topic(
|
||||
years: list[tuple[int, dict[str, Any]]],
|
||||
) -> list[dict[str, Any]]:
|
||||
phases: list[dict[str, Any]] = []
|
||||
current: dict[str, Any] | None = None
|
||||
|
||||
for year, data in years:
|
||||
if current is None:
|
||||
current = {"start": year, "end": year, "topic": main_topic_name(data)}
|
||||
continue
|
||||
|
||||
candidates = dominant_primary_topic_candidates(data)
|
||||
matches = any(
|
||||
normalize(c) == normalize(current["topic"]) for c in candidates
|
||||
)
|
||||
contiguous = year == current["end"] + 1
|
||||
|
||||
if contiguous and matches:
|
||||
current["end"] = year
|
||||
continue
|
||||
|
||||
phases.append(current)
|
||||
current = {"start": year, "end": year, "topic": main_topic_name(data)}
|
||||
|
||||
if current is not None:
|
||||
phases.append(current)
|
||||
|
||||
return phases
|
||||
|
||||
|
||||
def make_vector(year_data: dict[str, Any]) -> dict[str, float]:
|
||||
vector: dict[str, float] = {}
|
||||
for name, count in year_data["topics"].items():
|
||||
key = normalize(name)
|
||||
vector[key] = vector.get(key, 0.0) + count
|
||||
for name, count in year_data["primary_topics"].items():
|
||||
key = normalize(name)
|
||||
vector[key] = vector.get(key, 0.0) + count * PRIMARY_TOPIC_WEIGHT
|
||||
return vector
|
||||
|
||||
|
||||
def add_vector(target: dict[str, float], addition: dict[str, float]) -> None:
|
||||
for key, value in addition.items():
|
||||
target[key] = target.get(key, 0.0) + value
|
||||
|
||||
|
||||
def cosine_similarity(left: dict[str, float], right: dict[str, float]) -> float:
|
||||
left_norm = math.sqrt(sum(v * v for v in left.values()))
|
||||
right_norm = math.sqrt(sum(v * v for v in right.values()))
|
||||
if left_norm == 0 or right_norm == 0:
|
||||
return 0.0
|
||||
|
||||
smaller, larger = (left, right) if len(left) < len(right) else (right, left)
|
||||
dot_product = sum(value * larger.get(key, 0.0) for key, value in smaller.items())
|
||||
|
||||
return dot_product / (left_norm * right_norm)
|
||||
|
||||
|
||||
def build_phases_cosine_similarity(
|
||||
years: list[tuple[int, dict[str, Any]]],
|
||||
) -> list[dict[str, Any]]:
|
||||
phases: list[dict[str, Any]] = []
|
||||
current: dict[str, Any] | None = None
|
||||
current_vector: dict[str, float] = {}
|
||||
current_years: list[tuple[int, dict[str, Any]]] = []
|
||||
|
||||
def close_phase() -> None:
|
||||
# Final label = most frequent primary topic across the whole phase,
|
||||
# matching aggregateDominantPhasePrimaryTopic in the original commit.
|
||||
primary_totals: dict[str, int] = {}
|
||||
for _, data in current_years:
|
||||
for name, count in data["primary_topics"].items():
|
||||
primary_totals[name] = primary_totals.get(name, 0) + count
|
||||
if primary_totals:
|
||||
max_count = max(primary_totals.values())
|
||||
label = sorted(
|
||||
name for name, count in primary_totals.items() if count == max_count
|
||||
)[0]
|
||||
else:
|
||||
label = main_topic_name(current_years[0][1])
|
||||
phases.append({"start": current["start"], "end": current["end"], "topic": label})
|
||||
|
||||
for year, data in years:
|
||||
item_vector = make_vector(data)
|
||||
|
||||
if current is None:
|
||||
current = {"start": year, "end": year}
|
||||
current_vector = dict(item_vector)
|
||||
current_years = [(year, data)]
|
||||
continue
|
||||
|
||||
contiguous = year == current["end"] + 1
|
||||
similarity = cosine_similarity(current_vector, item_vector) if contiguous else 0.0
|
||||
|
||||
if contiguous and similarity >= SIMILARITY_THRESHOLD:
|
||||
current["end"] = year
|
||||
add_vector(current_vector, item_vector)
|
||||
current_years.append((year, data))
|
||||
continue
|
||||
|
||||
close_phase()
|
||||
current = {"start": year, "end": year}
|
||||
current_vector = dict(item_vector)
|
||||
current_years = [(year, data)]
|
||||
|
||||
if current is not None:
|
||||
close_phase()
|
||||
|
||||
return phases
|
||||
|
||||
|
||||
def format_phases(phases: list[dict[str, Any]]) -> list[str]:
|
||||
formatted = []
|
||||
for phase in phases:
|
||||
span = (
|
||||
f"{phase['start']}"
|
||||
if phase["start"] == phase["end"]
|
||||
else f"{phase['start']}-{phase['end']}"
|
||||
)
|
||||
formatted.append(f"{span}: {phase['topic']}")
|
||||
return formatted
|
||||
|
||||
|
||||
def run() -> None:
|
||||
results: dict[str, Any] = {}
|
||||
|
||||
for details_file in sorted(DETAILS_DIR.glob("*.json")):
|
||||
name = details_file.stem.replace("_", " ")
|
||||
|
||||
with details_file.open(encoding="utf-8") as file:
|
||||
works_by_year = json.load(file)
|
||||
|
||||
# per_person_details stores lists of work records per year; reduce
|
||||
# each work to just its topic names for the aggregation step.
|
||||
simplified: dict[str, list[dict[str, Any]]] = {}
|
||||
for year, works in works_by_year.items():
|
||||
simplified[year] = [
|
||||
{"topics": w.get("topics"), "primary_topic": w.get("primary_topic")}
|
||||
for w in works
|
||||
]
|
||||
|
||||
year_aggregates = build_year_aggregates(simplified)
|
||||
years_list = list(year_aggregates.items())
|
||||
|
||||
phases_simple = build_phases_primary_topic(years_list)
|
||||
phases_cosine = build_phases_cosine_similarity(years_list)
|
||||
|
||||
results[name] = {
|
||||
"year_count": len(years_list),
|
||||
"phases_primary_topic": format_phases(phases_simple),
|
||||
"phases_cosine_similarity": format_phases(phases_cosine),
|
||||
"phase_count_primary_topic": len(phases_simple),
|
||||
"phase_count_cosine_similarity": len(phases_cosine),
|
||||
}
|
||||
|
||||
print(f"\n=== {name} ({len(years_list)} Jahre) ===")
|
||||
print(f"Primary-Topic-Regel: {len(phases_simple)} Phasen")
|
||||
for line in format_phases(phases_simple):
|
||||
print(f" {line}")
|
||||
print(f"Cosine-Similarity: {len(phases_cosine)} Phasen")
|
||||
for line in format_phases(phases_cosine):
|
||||
print(f" {line}")
|
||||
|
||||
with OUTPUT_FILE.open(mode="w", encoding="utf-8") as output_file:
|
||||
json.dump(results, output_file, indent=2, ensure_ascii=False)
|
||||
|
||||
print(f"\nErgebnisse geschrieben nach {OUTPUT_FILE}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
@@ -0,0 +1,5 @@
|
||||
name,openalex_author_id,work_count,years_covered,avg_keywords_per_work,distinct_keywords,keyword_distinct_ratio,avg_topics_per_work,distinct_topics,topic_distinct_ratio
|
||||
Lucas Davi,A5089242868,138,18,9.89,324,0.237,2.83,59,0.151
|
||||
Marcus Handte,A5007170803,110,23,9.35,309,0.301,2.79,109,0.355
|
||||
Arman Arzani,A5093075883,8,4,5.38,36,0.837,2.5,19,0.95
|
||||
Pedro José Marrón,A5047117780,286,28,10.02,590,0.206,2.76,183,0.232
|
||||
|
@@ -0,0 +1,104 @@
|
||||
import json
|
||||
from typing import Any
|
||||
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
|
||||
|
||||
|
||||
def normalize_author_id(author_id: str) -> str:
|
||||
"""
|
||||
Normalizes OpenAlex author IDs.
|
||||
|
||||
Supported inputs:
|
||||
- A123456789
|
||||
- https://openalex.org/A123456789
|
||||
- https://api.openalex.org/authors/A123456789
|
||||
"""
|
||||
cleaned_author_id = author_id.strip()
|
||||
|
||||
if cleaned_author_id.startswith("https://api.openalex.org/authors/"):
|
||||
return cleaned_author_id.replace(
|
||||
"https://api.openalex.org/authors/",
|
||||
"https://openalex.org/",
|
||||
)
|
||||
|
||||
if cleaned_author_id.startswith("https://openalex.org/"):
|
||||
return cleaned_author_id
|
||||
|
||||
if cleaned_author_id.startswith("A"):
|
||||
return f"https://openalex.org/{cleaned_author_id}"
|
||||
|
||||
return cleaned_author_id
|
||||
|
||||
|
||||
def fetch_openalex_page(
|
||||
author_id: str, cursor: str, select: str | None = None
|
||||
) -> dict[str, Any]:
|
||||
normalized_author_id = normalize_author_id(author_id)
|
||||
|
||||
params = {
|
||||
"filter": f"authorships.author.id:{normalized_author_id}",
|
||||
"per-page": PER_PAGE,
|
||||
"cursor": cursor,
|
||||
"sort": "publication_year:asc",
|
||||
}
|
||||
if select:
|
||||
params["select"] = select
|
||||
|
||||
query_params = urlencode(params)
|
||||
|
||||
url = f"{OPENALEX_WORKS_URL}?{query_params}"
|
||||
|
||||
request = Request(
|
||||
url,
|
||||
headers={
|
||||
"Accept": "application/json",
|
||||
"User-Agent": "AIIS career stage analysis",
|
||||
},
|
||||
)
|
||||
|
||||
try:
|
||||
with urlopen(request, timeout=REQUEST_TIMEOUT_SECONDS) as response:
|
||||
response_body = response.read().decode("utf-8")
|
||||
return json.loads(response_body)
|
||||
|
||||
except HTTPError as error:
|
||||
raise RuntimeError(
|
||||
f"OpenAlex request failed with HTTP status {error.code}: {url}"
|
||||
) from error
|
||||
|
||||
except URLError as error:
|
||||
raise RuntimeError(f"OpenAlex request failed: {error}") from error
|
||||
|
||||
|
||||
def get_all_author_works(
|
||||
author_id: str, select: str | None = None
|
||||
) -> list[dict[str, Any]]:
|
||||
"""
|
||||
Fetches all works for an OpenAlex author by using cursor pagination.
|
||||
|
||||
`select` restricts the returned fields (comma-separated OpenAlex field
|
||||
names) to keep responses small when only a few fields are needed.
|
||||
"""
|
||||
works: list[dict[str, Any]] = []
|
||||
cursor = "*"
|
||||
|
||||
while cursor:
|
||||
data = fetch_openalex_page(author_id, cursor, select=select)
|
||||
|
||||
page_results = data.get("results", [])
|
||||
works.extend(page_results)
|
||||
|
||||
meta = data.get("meta", {})
|
||||
next_cursor = meta.get("next_cursor")
|
||||
|
||||
if not next_cursor or next_cursor == cursor:
|
||||
break
|
||||
|
||||
cursor = next_cursor
|
||||
|
||||
return works
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"2023": [
|
||||
{
|
||||
"year": 2023,
|
||||
"title": "Discovering Potential Founders Based on Academic Background",
|
||||
"keywords": ["Computer science", "Data science"],
|
||||
"topics": ["Education and Critical Thinking Development"],
|
||||
"primary_topic": "Education and Critical Thinking Development"
|
||||
},
|
||||
{
|
||||
"year": 2023,
|
||||
"title": "Challenges in Implementing a University-Based Innovation Search Engine",
|
||||
"keywords": ["Computer science", "Search engine", "World Wide Web"],
|
||||
"topics": ["Big Data and Business Intelligence"],
|
||||
"primary_topic": "Big Data and Business Intelligence"
|
||||
},
|
||||
{
|
||||
"year": 2023,
|
||||
"title": "Exploiting Topic Modelling for the Identification of Untapped Scientific Collaborations",
|
||||
"keywords": [
|
||||
"Data science",
|
||||
"Computer science",
|
||||
"Identification (biology)",
|
||||
"Citation",
|
||||
"Topic model",
|
||||
"Information retrieval",
|
||||
"Knowledge management",
|
||||
"World Wide Web"
|
||||
],
|
||||
"topics": [
|
||||
"Topic Modeling",
|
||||
"Complex Network Analysis Techniques",
|
||||
"Computational and Text Analysis Methods"
|
||||
],
|
||||
"primary_topic": "Topic Modeling"
|
||||
}
|
||||
],
|
||||
"2024": [
|
||||
{
|
||||
"year": 2024,
|
||||
"title": "Ai-Based Pattern Recognition in Limited, Unstructured Information: Improving Joint Value Creation in Mobility as a Service",
|
||||
"keywords": [
|
||||
"Joint (building)",
|
||||
"Service (business)",
|
||||
"Computer science",
|
||||
"Value (mathematics)",
|
||||
"Artificial intelligence",
|
||||
"Pattern recognition (psychology)",
|
||||
"Machine learning",
|
||||
"Business",
|
||||
"Engineering",
|
||||
"Marketing"
|
||||
],
|
||||
"topics": [
|
||||
"Big Data and Business Intelligence",
|
||||
"Customer churn and segmentation",
|
||||
"Semantic Web and Ontologies"
|
||||
],
|
||||
"primary_topic": "Big Data and Business Intelligence"
|
||||
},
|
||||
{
|
||||
"year": 2024,
|
||||
"title": "Discovering potential founders within academic institutions",
|
||||
"keywords": [
|
||||
"Political science",
|
||||
"Mathematics education",
|
||||
"Sociology",
|
||||
"Psychology"
|
||||
],
|
||||
"topics": [
|
||||
"Entrepreneurship Studies and Influences",
|
||||
"Genetics, Bioinformatics, and Biomedical Research",
|
||||
"Biomedical and Engineering Education"
|
||||
],
|
||||
"primary_topic": "Entrepreneurship Studies and Influences"
|
||||
}
|
||||
],
|
||||
"2025": [
|
||||
{
|
||||
"year": 2025,
|
||||
"title": "A Hybrid Approach for Mining the Organizational Structure from University Websites",
|
||||
"keywords": [
|
||||
"Organizational structure",
|
||||
"Key (lock)",
|
||||
"Field (mathematics)",
|
||||
"Information system",
|
||||
"The Internet",
|
||||
"Work (physics)"
|
||||
],
|
||||
"topics": [
|
||||
"Data Mining Algorithms and Applications",
|
||||
"Advanced Text Analysis Techniques",
|
||||
"Web visibility and informetrics"
|
||||
],
|
||||
"primary_topic": "Data Mining Algorithms and Applications"
|
||||
}
|
||||
],
|
||||
"2026": [
|
||||
{
|
||||
"year": 2026,
|
||||
"title": "Technical Architecture of Ecosystems: Customer Application, Middleware and Backend",
|
||||
"keywords": [
|
||||
"Middleware (distributed applications)",
|
||||
"Architecture",
|
||||
"Systems architecture",
|
||||
"Component (thermodynamics)",
|
||||
"Common Object Request Broker Architecture"
|
||||
],
|
||||
"topics": [
|
||||
"Advanced Software Engineering Methodologies",
|
||||
"Green IT and Sustainability",
|
||||
"Sustainable Industrial Ecology"
|
||||
],
|
||||
"primary_topic": "Advanced Software Engineering Methodologies"
|
||||
},
|
||||
{
|
||||
"year": 2026,
|
||||
"title": "Mobility as a Service Transaction Ecosystems Worldwide",
|
||||
"keywords": [
|
||||
"Database transaction",
|
||||
"Service (business)",
|
||||
"Ecosystem",
|
||||
"Key (lock)",
|
||||
"Production (economics)"
|
||||
],
|
||||
"topics": [
|
||||
"Service and Product Innovation",
|
||||
"Transportation and Mobility Innovations",
|
||||
"Information Systems Theories and Implementation"
|
||||
],
|
||||
"primary_topic": "Service and Product Innovation"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,5 @@
|
||||
name,role,openalex_author_id
|
||||
Lucas Davi,Professor,A5089242868
|
||||
Marcus Handte,Advisor / Wissenschaftlicher Mitarbeiter,A5007170803
|
||||
Arman Arzani,Advisor / Wissenschaftlicher Mitarbeiter,A5093075883
|
||||
Pedro José Marrón,Professor,A5047117780
|
||||
|
@@ -0,0 +1,186 @@
|
||||
import csv
|
||||
import json
|
||||
from collections import Counter
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from openalex_client import get_all_author_works
|
||||
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
INPUT_FILE = BASE_DIR / "research_timeline_sample.csv"
|
||||
DETAILS_DIR = BASE_DIR / "per_person_details"
|
||||
SUMMARY_FILE = BASE_DIR / "keyword_vs_topic_summary.csv"
|
||||
TOP_TERMS_FILE = BASE_DIR / "top_terms_by_person.csv"
|
||||
|
||||
SELECT_FIELDS = "id,title,publication_year,keywords,topics,primary_topic"
|
||||
TOP_N_TERMS = 15
|
||||
|
||||
|
||||
def extract_work_record(work: dict[str, Any]) -> dict[str, Any]:
|
||||
"""
|
||||
Reduces one OpenAlex work to the fields relevant for comparing keywords
|
||||
against topics per publication year.
|
||||
"""
|
||||
keywords = [kw.get("display_name") for kw in (work.get("keywords") or [])]
|
||||
topics = [t.get("display_name") for t in (work.get("topics") or [])]
|
||||
primary_topic = (work.get("primary_topic") or {}).get("display_name")
|
||||
|
||||
return {
|
||||
"year": work.get("publication_year"),
|
||||
"title": work.get("title"),
|
||||
"keywords": keywords,
|
||||
"topics": topics,
|
||||
"primary_topic": primary_topic,
|
||||
}
|
||||
|
||||
|
||||
def group_by_year(records: list[dict[str, Any]]) -> dict[int, list[dict[str, Any]]]:
|
||||
by_year: dict[int, list[dict[str, Any]]] = {}
|
||||
|
||||
for record in records:
|
||||
year = record["year"]
|
||||
if not isinstance(year, int):
|
||||
continue
|
||||
by_year.setdefault(year, []).append(record)
|
||||
|
||||
return dict(sorted(by_year.items()))
|
||||
|
||||
|
||||
def summarize_terms(records: list[dict[str, Any]], field: str) -> dict[str, Any]:
|
||||
"""
|
||||
Computes basic descriptive stats for a term field (keywords or topics)
|
||||
across all works of one person.
|
||||
|
||||
`distinct_ratio` = distinct terms / total term mentions. A low ratio
|
||||
means the same terms keep reappearing across many works; a high ratio
|
||||
means most mentions are of a term not seen elsewhere.
|
||||
"""
|
||||
all_terms: list[str] = []
|
||||
per_work_counts: list[int] = []
|
||||
|
||||
for record in records:
|
||||
terms = record[field]
|
||||
per_work_counts.append(len(terms))
|
||||
all_terms.extend(terms)
|
||||
|
||||
total_mentions = len(all_terms)
|
||||
distinct_terms = len(set(all_terms))
|
||||
avg_per_work = total_mentions / len(records) if records else 0.0
|
||||
distinct_ratio = distinct_terms / total_mentions if total_mentions else 0.0
|
||||
|
||||
counter = Counter(all_terms)
|
||||
top_terms = counter.most_common(TOP_N_TERMS)
|
||||
|
||||
return {
|
||||
"total_mentions": total_mentions,
|
||||
"distinct_terms": distinct_terms,
|
||||
"avg_per_work": round(avg_per_work, 2),
|
||||
"distinct_ratio": round(distinct_ratio, 3),
|
||||
"top_terms": top_terms,
|
||||
}
|
||||
|
||||
|
||||
def analyze_sample() -> None:
|
||||
if not INPUT_FILE.exists():
|
||||
raise FileNotFoundError(f"Input file not found: {INPUT_FILE}")
|
||||
|
||||
DETAILS_DIR.mkdir(exist_ok=True)
|
||||
|
||||
summary_rows: list[dict[str, Any]] = []
|
||||
top_terms_rows: list[dict[str, Any]] = []
|
||||
|
||||
with INPUT_FILE.open(mode="r", encoding="utf-8", newline="") as input_file:
|
||||
reader = csv.DictReader(input_file)
|
||||
|
||||
for row in reader:
|
||||
name = row.get("name", "").strip()
|
||||
openalex_author_id = row.get("openalex_author_id", "").strip()
|
||||
|
||||
if not openalex_author_id:
|
||||
print(f"Skipping {name}: missing OpenAlex author ID")
|
||||
continue
|
||||
|
||||
print(f"Fetching works for {name} ({openalex_author_id})...")
|
||||
|
||||
try:
|
||||
works = get_all_author_works(openalex_author_id, select=SELECT_FIELDS)
|
||||
except Exception as error:
|
||||
print(f"Error while processing {name}: {error}")
|
||||
continue
|
||||
|
||||
records = [extract_work_record(work) for work in works]
|
||||
by_year = group_by_year(records)
|
||||
|
||||
details_path = DETAILS_DIR / f"{name.replace(' ', '_')}.json"
|
||||
with details_path.open(mode="w", encoding="utf-8") as details_file:
|
||||
json.dump(by_year, details_file, indent=2, ensure_ascii=False)
|
||||
|
||||
keyword_stats = summarize_terms(records, "keywords")
|
||||
topic_stats = summarize_terms(records, "topics")
|
||||
|
||||
summary_rows.append(
|
||||
{
|
||||
"name": name,
|
||||
"openalex_author_id": openalex_author_id,
|
||||
"work_count": len(records),
|
||||
"years_covered": len(by_year),
|
||||
"avg_keywords_per_work": keyword_stats["avg_per_work"],
|
||||
"distinct_keywords": keyword_stats["distinct_terms"],
|
||||
"keyword_distinct_ratio": keyword_stats["distinct_ratio"],
|
||||
"avg_topics_per_work": topic_stats["avg_per_work"],
|
||||
"distinct_topics": topic_stats["distinct_terms"],
|
||||
"topic_distinct_ratio": topic_stats["distinct_ratio"],
|
||||
}
|
||||
)
|
||||
|
||||
for rank, (term, count) in enumerate(keyword_stats["top_terms"], start=1):
|
||||
top_terms_rows.append(
|
||||
{
|
||||
"name": name,
|
||||
"field": "keyword",
|
||||
"rank": rank,
|
||||
"term": term,
|
||||
"work_count": count,
|
||||
}
|
||||
)
|
||||
for rank, (term, count) in enumerate(topic_stats["top_terms"], start=1):
|
||||
top_terms_rows.append(
|
||||
{
|
||||
"name": name,
|
||||
"field": "topic",
|
||||
"rank": rank,
|
||||
"term": term,
|
||||
"work_count": count,
|
||||
}
|
||||
)
|
||||
|
||||
with SUMMARY_FILE.open(mode="w", encoding="utf-8", newline="") as summary_file:
|
||||
fieldnames = [
|
||||
"name",
|
||||
"openalex_author_id",
|
||||
"work_count",
|
||||
"years_covered",
|
||||
"avg_keywords_per_work",
|
||||
"distinct_keywords",
|
||||
"keyword_distinct_ratio",
|
||||
"avg_topics_per_work",
|
||||
"distinct_topics",
|
||||
"topic_distinct_ratio",
|
||||
]
|
||||
writer = csv.DictWriter(summary_file, fieldnames=fieldnames)
|
||||
writer.writeheader()
|
||||
writer.writerows(summary_rows)
|
||||
|
||||
with TOP_TERMS_FILE.open(mode="w", encoding="utf-8", newline="") as top_terms_file:
|
||||
fieldnames = ["name", "field", "rank", "term", "work_count"]
|
||||
writer = csv.DictWriter(top_terms_file, fieldnames=fieldnames)
|
||||
writer.writeheader()
|
||||
writer.writerows(top_terms_rows)
|
||||
|
||||
print(f"Analysis finished. Summary written to {SUMMARY_FILE}")
|
||||
print(f"Top terms written to {TOP_TERMS_FILE}")
|
||||
print(f"Per-person year/keyword/topic details written to {DETAILS_DIR}/")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
analyze_sample()
|
||||
@@ -0,0 +1,121 @@
|
||||
name,field,rank,term,work_count
|
||||
Lucas Davi,keyword,1,Computer science,126
|
||||
Lucas Davi,keyword,2,Computer security,95
|
||||
Lucas Davi,keyword,3,Operating system,74
|
||||
Lucas Davi,keyword,4,Software,59
|
||||
Lucas Davi,keyword,5,Programming language,54
|
||||
Lucas Davi,keyword,6,Embedded system,45
|
||||
Lucas Davi,keyword,7,Code (set theory),32
|
||||
Lucas Davi,keyword,8,Exploit,30
|
||||
Lucas Davi,keyword,9,Engineering,20
|
||||
Lucas Davi,keyword,10,Control flow,20
|
||||
Lucas Davi,keyword,11,Overhead (engineering),18
|
||||
Lucas Davi,keyword,12,Code reuse,18
|
||||
Lucas Davi,keyword,13,Software engineering,17
|
||||
Lucas Davi,keyword,14,Reuse,17
|
||||
Lucas Davi,keyword,15,Software security assurance,13
|
||||
Lucas Davi,topic,1,Security and Verification in Computing,105
|
||||
Lucas Davi,topic,2,Advanced Malware Detection Techniques,91
|
||||
Lucas Davi,topic,3,Diamond and Carbon-based Materials Research,21
|
||||
Lucas Davi,topic,4,Network Security and Intrusion Detection,17
|
||||
Lucas Davi,topic,5,Physical Unclonable Functions (PUFs) and Hardware Security,16
|
||||
Lucas Davi,topic,6,Cloud Data Security Solutions,13
|
||||
Lucas Davi,topic,7,Blockchain Technology Applications and Security,12
|
||||
Lucas Davi,topic,8,Web Application Security Vulnerabilities,10
|
||||
Lucas Davi,topic,9,Distributed systems and fault tolerance,8
|
||||
Lucas Davi,topic,10,Digital and Cyber Forensics,7
|
||||
Lucas Davi,topic,11,Information and Cyber Security,7
|
||||
Lucas Davi,topic,12,Software Engineering Research,7
|
||||
Lucas Davi,topic,13,Software Testing and Debugging Techniques,6
|
||||
Lucas Davi,topic,14,Adversarial Robustness in Machine Learning,5
|
||||
Lucas Davi,topic,15,Cryptographic Implementations and Security,4
|
||||
Marcus Handte,keyword,1,Computer science,94
|
||||
Marcus Handte,keyword,2,Human–computer interaction,33
|
||||
Marcus Handte,keyword,3,Artificial intelligence,31
|
||||
Marcus Handte,keyword,4,Engineering,29
|
||||
Marcus Handte,keyword,5,Distributed computing,25
|
||||
Marcus Handte,keyword,6,Telecommunications,23
|
||||
Marcus Handte,keyword,7,Ubiquitous computing,22
|
||||
Marcus Handte,keyword,8,World Wide Web,22
|
||||
Marcus Handte,keyword,9,Computer security,20
|
||||
Marcus Handte,keyword,10,Context (archaeology),19
|
||||
Marcus Handte,keyword,11,Wireless,16
|
||||
Marcus Handte,keyword,12,Business,15
|
||||
Marcus Handte,keyword,13,Middleware (distributed applications),15
|
||||
Marcus Handte,keyword,14,Real-time computing,15
|
||||
Marcus Handte,keyword,15,Computer vision,12
|
||||
Marcus Handte,topic,1,Context-Aware Activity Recognition Systems,32
|
||||
Marcus Handte,topic,2,Indoor and Outdoor Localization Technologies,17
|
||||
Marcus Handte,topic,3,IoT and Edge/Fog Computing,14
|
||||
Marcus Handte,topic,4,Distributed systems and fault tolerance,11
|
||||
Marcus Handte,topic,5,Underwater Vehicles and Communication Systems,9
|
||||
Marcus Handte,topic,6,Human Mobility and Location-Based Analysis,9
|
||||
Marcus Handte,topic,7,Energy Efficient Wireless Sensor Networks,8
|
||||
Marcus Handte,topic,8,Robotics and Sensor-Based Localization,8
|
||||
Marcus Handte,topic,9,Advanced Software Engineering Methodologies,6
|
||||
Marcus Handte,topic,10,Service-Oriented Architecture and Web Services,6
|
||||
Marcus Handte,topic,11,Bluetooth and Wireless Communication Technologies,6
|
||||
Marcus Handte,topic,12,Opportunistic and Delay-Tolerant Networks,6
|
||||
Marcus Handte,topic,13,Energy Harvesting in Wireless Networks,6
|
||||
Marcus Handte,topic,14,Mobile Agent-Based Network Management,5
|
||||
Marcus Handte,topic,15,Transportation Planning and Optimization,5
|
||||
Arman Arzani,keyword,1,Computer science,4
|
||||
Arman Arzani,keyword,2,Data science,2
|
||||
Arman Arzani,keyword,3,World Wide Web,2
|
||||
Arman Arzani,keyword,4,Service (business),2
|
||||
Arman Arzani,keyword,5,Key (lock),2
|
||||
Arman Arzani,keyword,6,Search engine,1
|
||||
Arman Arzani,keyword,7,Identification (biology),1
|
||||
Arman Arzani,keyword,8,Citation,1
|
||||
Arman Arzani,keyword,9,Topic model,1
|
||||
Arman Arzani,keyword,10,Information retrieval,1
|
||||
Arman Arzani,keyword,11,Knowledge management,1
|
||||
Arman Arzani,keyword,12,Joint (building),1
|
||||
Arman Arzani,keyword,13,Value (mathematics),1
|
||||
Arman Arzani,keyword,14,Artificial intelligence,1
|
||||
Arman Arzani,keyword,15,Pattern recognition (psychology),1
|
||||
Arman Arzani,topic,1,Big Data and Business Intelligence,2
|
||||
Arman Arzani,topic,2,Education and Critical Thinking Development,1
|
||||
Arman Arzani,topic,3,Topic Modeling,1
|
||||
Arman Arzani,topic,4,Complex Network Analysis Techniques,1
|
||||
Arman Arzani,topic,5,Computational and Text Analysis Methods,1
|
||||
Arman Arzani,topic,6,Customer churn and segmentation,1
|
||||
Arman Arzani,topic,7,Semantic Web and Ontologies,1
|
||||
Arman Arzani,topic,8,Entrepreneurship Studies and Influences,1
|
||||
Arman Arzani,topic,9,"Genetics, Bioinformatics, and Biomedical Research",1
|
||||
Arman Arzani,topic,10,Biomedical and Engineering Education,1
|
||||
Arman Arzani,topic,11,Data Mining Algorithms and Applications,1
|
||||
Arman Arzani,topic,12,Advanced Text Analysis Techniques,1
|
||||
Arman Arzani,topic,13,Web visibility and informetrics,1
|
||||
Arman Arzani,topic,14,Advanced Software Engineering Methodologies,1
|
||||
Arman Arzani,topic,15,Green IT and Sustainability,1
|
||||
Pedro José Marrón,keyword,1,Computer science,264
|
||||
Pedro José Marrón,keyword,2,Computer network,107
|
||||
Pedro José Marrón,keyword,3,Distributed computing,91
|
||||
Pedro José Marrón,keyword,4,Telecommunications,90
|
||||
Pedro José Marrón,keyword,5,Wireless,83
|
||||
Pedro José Marrón,keyword,6,Engineering,80
|
||||
Pedro José Marrón,keyword,7,Artificial intelligence,78
|
||||
Pedro José Marrón,keyword,8,Wireless sensor network,70
|
||||
Pedro José Marrón,keyword,9,Real-time computing,52
|
||||
Pedro José Marrón,keyword,10,Operating system,47
|
||||
Pedro José Marrón,keyword,11,Human–computer interaction,45
|
||||
Pedro José Marrón,keyword,12,World Wide Web,36
|
||||
Pedro José Marrón,keyword,13,Embedded system,33
|
||||
Pedro José Marrón,keyword,14,Computer security,33
|
||||
Pedro José Marrón,keyword,15,Context (archaeology),30
|
||||
Pedro José Marrón,topic,1,Energy Efficient Wireless Sensor Networks,86
|
||||
Pedro José Marrón,topic,2,Context-Aware Activity Recognition Systems,50
|
||||
Pedro José Marrón,topic,3,Mobile Ad Hoc Networks,36
|
||||
Pedro José Marrón,topic,4,Opportunistic and Delay-Tolerant Networks,36
|
||||
Pedro José Marrón,topic,5,Modular Robots and Swarm Intelligence,33
|
||||
Pedro José Marrón,topic,6,Indoor and Outdoor Localization Technologies,29
|
||||
Pedro José Marrón,topic,7,Energy Harvesting in Wireless Networks,20
|
||||
Pedro José Marrón,topic,8,Robotics and Sensor-Based Localization,19
|
||||
Pedro José Marrón,topic,9,IoT and Edge/Fog Computing,17
|
||||
Pedro José Marrón,topic,10,Distributed and Parallel Computing Systems,15
|
||||
Pedro José Marrón,topic,11,Distributed systems and fault tolerance,14
|
||||
Pedro José Marrón,topic,12,Advanced Database Systems and Queries,13
|
||||
Pedro José Marrón,topic,13,Underwater Vehicles and Communication Systems,12
|
||||
Pedro José Marrón,topic,14,Robotic Path Planning Algorithms,12
|
||||
Pedro José Marrón,topic,15,Semantic Web and Ontologies,10
|
||||
|
@@ -1,8 +1,9 @@
|
||||
import os
|
||||
import requests
|
||||
from requests.adapters import HTTPAdapter
|
||||
from urllib.parse import quote
|
||||
|
||||
import requests
|
||||
from dotenv import load_dotenv
|
||||
from requests.adapters import HTTPAdapter
|
||||
|
||||
load_dotenv()
|
||||
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
import os
|
||||
import requests
|
||||
from openai import OpenAI, APIConnectionError
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
try:
|
||||
# The job images copy this module next to sync.py, see
|
||||
# service/scripts/jobs-image/Dockerfile.
|
||||
import keyword_extraction
|
||||
except ModuleNotFoundError:
|
||||
# Running from a repo checkout, where it sits in the service package.
|
||||
sys.path.append(
|
||||
str(Path(__file__).resolve().parents[3] / "service/src/main/inse/news")
|
||||
)
|
||||
import keyword_extraction
|
||||
|
||||
load_dotenv()
|
||||
|
||||
@@ -32,24 +45,33 @@ SYSTEM_PROMPT_NAMES = ("""
|
||||
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):
|
||||
def call(
|
||||
system_prompt,
|
||||
user_prompt,
|
||||
model=LLM_MODEL,
|
||||
temperature=1.0,
|
||||
top_p=0.95,
|
||||
top_k=64,
|
||||
json_schema=None,
|
||||
schema_name=None,
|
||||
):
|
||||
response_format = None
|
||||
if json_schema is not None:
|
||||
response_format = {
|
||||
"type": "json_schema",
|
||||
"json_schema": {
|
||||
"name": schema_name or "response",
|
||||
"strict": True,
|
||||
"schema": json_schema,
|
||||
},
|
||||
}
|
||||
|
||||
try:
|
||||
response = _client.chat.completions.create(
|
||||
model=model,
|
||||
@@ -59,7 +81,8 @@ def call(system_prompt, user_prompt, model=LLM_MODEL, temperature=1.0, top_p=0.9
|
||||
],
|
||||
temperature=temperature,
|
||||
top_p=top_p,
|
||||
extra_body={"top_k": 64},
|
||||
extra_body={"top_k": top_k},
|
||||
response_format=response_format,
|
||||
)
|
||||
except APIConnectionError:
|
||||
return None
|
||||
@@ -83,13 +106,37 @@ def extract_names(text: str) -> list[str]:
|
||||
except json.JSONDecodeError:
|
||||
return []
|
||||
|
||||
def extract_keywords(text: str) -> list[str]:
|
||||
result = call(SYSTEM_PROMPT_KEYWORDS, text)
|
||||
def extract_keywords(maintitle: str | None, full_content: str | None) -> list[str]:
|
||||
"""Extracts an article's keywords, identically to the news detail endpoint.
|
||||
|
||||
Prompt, input bound, sampling and normalization all come from
|
||||
keyword_extraction, so both callers write the same keywords into
|
||||
aktuell_postproc regardless of which one reaches an article first.
|
||||
"""
|
||||
user_prompt = keyword_extraction.build_user_prompt(maintitle, full_content)
|
||||
if not user_prompt:
|
||||
return []
|
||||
|
||||
result = call(
|
||||
keyword_extraction.KEYWORD_SYSTEM_PROMPT,
|
||||
user_prompt,
|
||||
temperature=keyword_extraction.TEMPERATURE,
|
||||
top_p=keyword_extraction.TOP_P,
|
||||
top_k=keyword_extraction.TOP_K,
|
||||
json_schema=keyword_extraction.RESPONSE_SCHEMA,
|
||||
schema_name=keyword_extraction.SCHEMA_NAME,
|
||||
)
|
||||
if result is None:
|
||||
return []
|
||||
|
||||
try:
|
||||
import json
|
||||
data = json.loads(result)
|
||||
return data.get("keywords", [])
|
||||
except json.JSONDecodeError:
|
||||
return []
|
||||
|
||||
candidates = data.get("keywords")
|
||||
if not isinstance(candidates, list):
|
||||
return []
|
||||
|
||||
return keyword_extraction.normalize_keywords(candidates)
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import elastic.client as es_client
|
||||
import llm.client as llm_client
|
||||
import json
|
||||
import argparse
|
||||
import time
|
||||
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__)
|
||||
|
||||
@@ -19,10 +20,11 @@ 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"]
|
||||
article = es_client.get_entry("aktuell", news_id)["_source"]
|
||||
news_text = article["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)
|
||||
keywords = llm_client.extract_keywords(article.get("maintitle"), news_text)
|
||||
new_entry = {
|
||||
"news_id": news_id,
|
||||
"relevant": is_news_relevant,
|
||||
@@ -47,8 +49,10 @@ def update_keywords_single(postproc_entry, target_index=POSTPROC_INDEX, max_retr
|
||||
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)
|
||||
article = es_client.get_entry("aktuell", news_id)["_source"]
|
||||
keywords = llm_client.extract_keywords(
|
||||
article.get("maintitle"), article["full_content"]
|
||||
)
|
||||
if not keywords:
|
||||
# Empty article or unparseable LLM answer: writing an empty list
|
||||
# would look like a success and block a later retry.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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,330 @@
|
||||
"""Arbeitsblatt und Auswertung für die manuelle Bewertung (Layer 2).
|
||||
|
||||
Layer 1 misst Regelkonformität, Layer 2 misst inhaltliche Qualität. Das geht
|
||||
nur von Hand, und zwar in drei Phasen — die Reihenfolge ist Teil der Methode:
|
||||
|
||||
Phase 1 --draw 50
|
||||
Arbeitsblatt ziehen und die *Soll-Begriffe* eintragen, BEVOR die
|
||||
Modellausgabe sichtbar ist. Sonst richtet sich die Annotation an
|
||||
den Vorschlägen des Modells aus und der Recall wird
|
||||
systematisch zu gut.
|
||||
|
||||
Phase 2 --attach --config neu
|
||||
Die extrahierten Keywords ins Arbeitsblatt einspielen und
|
||||
jedes einzeln bewerten.
|
||||
|
||||
Phase 3 --score
|
||||
Precision, Recall und die Verteilung der Urteile berechnen.
|
||||
|
||||
Bewertungsschema (vor der Annotation festgelegt):
|
||||
|
||||
"richtig" inhaltlich zentral für den Artikel und im Text verankert
|
||||
"akzeptabel" kommt vor und ist nicht irreführend, aber randständig, zu
|
||||
allgemein oder zu speziell — würde man selbst nicht wählen
|
||||
"falsch" irreführend, nicht aus dem Artikel, oder klarer Verstoß
|
||||
gegen die Aufgabe (Personenname, Datum, Floskel)
|
||||
|
||||
Soll-Begriffe: die ein bis drei Begriffe, ohne die eine Keywordliste zu
|
||||
diesem Artikel unvollständig wäre. Es geht um das Minimum, nicht
|
||||
um die ideale Liste.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
|
||||
import checks
|
||||
|
||||
ARTICLES_FILE = "data/articles.jsonl"
|
||||
RUNS_DIR = "runs"
|
||||
ANNOTATION_DIR = "annotation"
|
||||
WORKSHEET = os.path.join(ANNOTATION_DIR, "layer2_worksheet.json")
|
||||
RANDOM_SEED = 42
|
||||
|
||||
VERDICTS = ("richtig", "akzeptabel", "falsch")
|
||||
|
||||
|
||||
def load_jsonl(path):
|
||||
records = []
|
||||
with open(path, encoding="utf-8") as input_file:
|
||||
for line in input_file:
|
||||
line = line.strip()
|
||||
if line:
|
||||
records.append(json.loads(line))
|
||||
return records
|
||||
|
||||
|
||||
def worksheet_entry(article):
|
||||
return {
|
||||
"_id": article["_id"],
|
||||
"maintitle": article.get("maintitle"),
|
||||
"full_content": article.get("full_content"),
|
||||
# Phase 1: hier die 1-3 Soll-Begriffe eintragen.
|
||||
"essential_keywords": [],
|
||||
# Phase 2 füllt das hier.
|
||||
"judgements": [],
|
||||
# Optional: Begriff -> true/false, falls der automatische
|
||||
# Abgleich in Phase 3 einen Soll-Begriff falsch zuordnet.
|
||||
"essential_overrides": {},
|
||||
}
|
||||
|
||||
|
||||
def replace(worksheet_path):
|
||||
"""Ersetzt nicht annotierte Artikel durch neue aus derselben Stichprobe."""
|
||||
worksheet = json.load(open(worksheet_path, encoding="utf-8"))
|
||||
keep = [article for article in worksheet if article["essential_keywords"]]
|
||||
drop = [article for article in worksheet if not article["essential_keywords"]]
|
||||
|
||||
if not drop:
|
||||
print("Alle Artikel im Arbeitsblatt sind annotiert — nichts zu ersetzen.")
|
||||
return
|
||||
|
||||
excluded_path = os.path.join(ANNOTATION_DIR, "excluded.json")
|
||||
excluded = []
|
||||
if os.path.exists(excluded_path):
|
||||
excluded = json.load(open(excluded_path, encoding="utf-8"))
|
||||
|
||||
for article in drop:
|
||||
excluded.append(
|
||||
{
|
||||
"_id": article["_id"],
|
||||
"maintitle": article.get("maintitle"),
|
||||
"content_length": len(article.get("full_content") or ""),
|
||||
"reason": None,
|
||||
}
|
||||
)
|
||||
|
||||
used = {article["_id"] for article in worksheet} | {item["_id"] for item in excluded}
|
||||
pool = [article for article in load_jsonl(ARTICLES_FILE) if article["_id"] not in used]
|
||||
if len(pool) < len(drop):
|
||||
raise SystemExit(f"Nur noch {len(pool)} unbenutzte Artikel in der Stichprobe.")
|
||||
|
||||
random.seed(RANDOM_SEED + len(excluded))
|
||||
replacements = random.sample(pool, len(drop))
|
||||
|
||||
os.makedirs(ANNOTATION_DIR, exist_ok=True)
|
||||
with open(worksheet_path, "w", encoding="utf-8") as output_file:
|
||||
json.dump(
|
||||
keep + [worksheet_entry(article) for article in replacements],
|
||||
output_file,
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
with open(excluded_path, "w", encoding="utf-8") as output_file:
|
||||
json.dump(excluded, output_file, ensure_ascii=False, indent=2)
|
||||
|
||||
print(f"{len(drop)} Artikel ersetzt. Arbeitsblatt: {len(keep)} annotiert + {len(drop)} neu.")
|
||||
print(f"Aussortiert dokumentiert in {excluded_path}.\n")
|
||||
print("Neu zu annotieren:")
|
||||
for article in replacements:
|
||||
length = len(article.get("full_content") or "")
|
||||
print(f" {length:>6} Zeichen {article['_id']}")
|
||||
|
||||
|
||||
def draw(count, output):
|
||||
articles = load_jsonl(ARTICLES_FILE)
|
||||
random.seed(RANDOM_SEED)
|
||||
selected = random.sample(articles, min(count, len(articles)))
|
||||
|
||||
worksheet = [worksheet_entry(article) for article in selected]
|
||||
|
||||
os.makedirs(ANNOTATION_DIR, exist_ok=True)
|
||||
with open(output, "w", encoding="utf-8") as output_file:
|
||||
json.dump(worksheet, output_file, ensure_ascii=False, indent=2)
|
||||
|
||||
print(f"{len(worksheet)} Artikel -> {output}")
|
||||
print("\nPhase 1: pro Artikel 1-3 Soll-Begriffe in 'essential_keywords' eintragen.")
|
||||
print("Die Modellausgabe dabei NICHT ansehen.")
|
||||
|
||||
|
||||
def attach(config, worksheet_path):
|
||||
worksheet = json.load(open(worksheet_path, encoding="utf-8"))
|
||||
run = {
|
||||
entry["_id"]: entry
|
||||
for entry in load_jsonl(os.path.join(RUNS_DIR, f"{config}.jsonl"))
|
||||
if entry.get("repeat", 0) == 0
|
||||
}
|
||||
|
||||
missing = 0
|
||||
without_essentials = 0
|
||||
for article in worksheet:
|
||||
if not article["essential_keywords"]:
|
||||
without_essentials += 1
|
||||
|
||||
entry = run.get(article["_id"])
|
||||
if entry is None or entry.get("error"):
|
||||
missing += 1
|
||||
continue
|
||||
|
||||
existing = {item["keyword"]: item["verdict"] for item in article["judgements"]}
|
||||
article["judgements"] = [
|
||||
{"keyword": keyword, "verdict": existing.get(keyword)}
|
||||
for keyword in entry.get("keywords") or []
|
||||
]
|
||||
|
||||
with open(worksheet_path, "w", encoding="utf-8") as output_file:
|
||||
json.dump(worksheet, output_file, ensure_ascii=False, indent=2)
|
||||
|
||||
total = sum(len(article["judgements"]) for article in worksheet)
|
||||
print(f"{total} Keywords aus '{config}' eingespielt -> {worksheet_path}")
|
||||
if missing:
|
||||
print(f" {missing} Artikel ohne Lauf-Eintrag (noch nicht extrahiert?).")
|
||||
if without_essentials:
|
||||
print(
|
||||
f" WARNUNG: {without_essentials} Artikel ohne Soll-Begriffe. "
|
||||
"Phase 1 sollte vor Phase 2 abgeschlossen sein."
|
||||
)
|
||||
print(f"\nPhase 2: 'verdict' je Keyword auf {' / '.join(VERDICTS)} setzen.")
|
||||
|
||||
|
||||
def essential_covered(essential, keywords, overrides):
|
||||
"""Gilt ein Soll-Begriff als abgedeckt?
|
||||
|
||||
Automatischer Abgleich mit derselben flexionstoleranten Phrasenlogik wie
|
||||
L2.
|
||||
"""
|
||||
if essential in overrides:
|
||||
return bool(overrides[essential])
|
||||
|
||||
for keyword in keywords:
|
||||
index = checks.build_article_index(keyword)
|
||||
if checks.literal_l2(essential, index):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def score(worksheet_path):
|
||||
worksheet = json.load(open(worksheet_path, encoding="utf-8"))
|
||||
|
||||
counts = {verdict: 0 for verdict in VERDICTS}
|
||||
unjudged = 0
|
||||
essential_total = 0
|
||||
essential_hit = 0
|
||||
unmatched = []
|
||||
|
||||
for article in worksheet:
|
||||
keywords = [item["keyword"] for item in article["judgements"]]
|
||||
for item in article["judgements"]:
|
||||
verdict = item.get("verdict")
|
||||
if verdict in counts:
|
||||
counts[verdict] += 1
|
||||
else:
|
||||
unjudged += 1
|
||||
|
||||
overrides = article.get("essential_overrides") or {}
|
||||
for essential in article.get("essential_keywords") or []:
|
||||
essential_total += 1
|
||||
if essential_covered(essential, keywords, overrides):
|
||||
essential_hit += 1
|
||||
else:
|
||||
unmatched.append((article["_id"], essential, keywords))
|
||||
|
||||
judged = sum(counts.values())
|
||||
if not judged:
|
||||
raise SystemExit("Keine 'verdict'-Werte gesetzt.")
|
||||
|
||||
print("## Layer 2 — inhaltliche Bewertung\n")
|
||||
print(f"Bewertete Keywords: {judged}" + (f" (offen: {unjudged})" if unjudged else ""))
|
||||
for verdict in VERDICTS:
|
||||
share = 100.0 * counts[verdict] / judged
|
||||
print(f" {verdict:<12} {counts[verdict]:>4} ({share:.1f} %)".replace(".", ","))
|
||||
|
||||
precision = 100.0 * (counts["richtig"] + counts["akzeptabel"]) / judged
|
||||
strict = 100.0 * counts["richtig"] / judged
|
||||
print(f"\nPrecision (richtig + akzeptabel): {precision:.1f} %".replace(".", ","))
|
||||
print(f"Precision (nur richtig): {strict:.1f} %".replace(".", ","))
|
||||
|
||||
if essential_total:
|
||||
recall = 100.0 * essential_hit / essential_total
|
||||
print(
|
||||
f"\nSoll-Begriff-Recall: {essential_hit}/{essential_total} "
|
||||
f"({recall:.1f} %)".replace(".", ",")
|
||||
)
|
||||
if unmatched:
|
||||
print("\nNicht abgedeckte Soll-Begriffe (auf Fehlzuordnung prüfen):")
|
||||
for news_id, essential, keywords in unmatched[:20]:
|
||||
print(f" [{news_id[:35]}] {essential!r} vs {keywords}")
|
||||
else:
|
||||
print("\nKeine Soll-Begriffe eingetragen — Recall nicht berechenbar.")
|
||||
|
||||
results = {
|
||||
"judged": judged,
|
||||
"counts": counts,
|
||||
"precision_incl_acceptable": round(precision, 1),
|
||||
"precision_strict": round(strict, 1),
|
||||
"essential_total": essential_total,
|
||||
"essential_hit": essential_hit,
|
||||
}
|
||||
with open("results_layer2.json", "w", encoding="utf-8") as output_file:
|
||||
json.dump(results, output_file, ensure_ascii=False, indent=2)
|
||||
print("\n-> results_layer2.json")
|
||||
|
||||
|
||||
def kappa(first_path, second_path):
|
||||
"""Cohen's Kappa zwischen zwei unabhängig annotierten Arbeitsblättern."""
|
||||
first = {
|
||||
(article["_id"], item["keyword"]): item.get("verdict")
|
||||
for article in json.load(open(first_path, encoding="utf-8"))
|
||||
for item in article["judgements"]
|
||||
}
|
||||
second = {
|
||||
(article["_id"], item["keyword"]): item.get("verdict")
|
||||
for article in json.load(open(second_path, encoding="utf-8"))
|
||||
for item in article["judgements"]
|
||||
}
|
||||
|
||||
shared = [
|
||||
(first[key], second[key])
|
||||
for key in first.keys() & second.keys()
|
||||
if first[key] in VERDICTS and second[key] in VERDICTS
|
||||
]
|
||||
if not shared:
|
||||
raise SystemExit("Keine gemeinsam bewerteten Keywords gefunden.")
|
||||
|
||||
agreed = sum(1 for left, right in shared if left == right)
|
||||
observed = agreed / len(shared)
|
||||
|
||||
expected = 0.0
|
||||
for verdict in VERDICTS:
|
||||
left_share = sum(1 for left, _ in shared if left == verdict) / len(shared)
|
||||
right_share = sum(1 for _, right in shared if right == verdict) / len(shared)
|
||||
expected += left_share * right_share
|
||||
|
||||
value = (observed - expected) / (1 - expected) if expected < 1 else 1.0
|
||||
print(f"Gemeinsam bewertet: {len(shared)}")
|
||||
print(f"Übereinstimmung: {100 * observed:.1f} %".replace(".", ","))
|
||||
print(f"Cohens Kappa: {value:.3f}".replace(".", ","))
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument("--draw", type=int, metavar="N", help="Phase 1: Arbeitsblatt ziehen.")
|
||||
parser.add_argument(
|
||||
"--replace",
|
||||
action="store_true",
|
||||
help="Nicht annotierte Artikel durch neue aus der Stichprobe ersetzen.",
|
||||
)
|
||||
parser.add_argument("--attach", action="store_true", help="Phase 2: Keywords einspielen.")
|
||||
parser.add_argument("--config", default="neu", help="Lauf für --attach (Default: neu).")
|
||||
parser.add_argument("--score", action="store_true", help="Phase 3: auswerten.")
|
||||
parser.add_argument("--kappa", metavar="ZWEITES_BLATT", help="Cohens Kappa gegen ein zweites Arbeitsblatt.")
|
||||
parser.add_argument("--worksheet", default=WORKSHEET)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.draw:
|
||||
draw(args.draw, args.worksheet)
|
||||
elif args.replace:
|
||||
replace(args.worksheet)
|
||||
elif args.attach:
|
||||
attach(args.config, args.worksheet)
|
||||
elif args.score:
|
||||
score(args.worksheet)
|
||||
elif args.kappa:
|
||||
kappa(args.worksheet, args.kappa)
|
||||
else:
|
||||
parser.print_help()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,56 @@
|
||||
[
|
||||
{
|
||||
"_id": "30112023_UlrikeBohnsack_Altrektorverstorben",
|
||||
"maintitle": "Altrektor verstorben",
|
||||
"content_length": 2293,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "11062015__Aufarbeiten,anerkennenunderinnern_archiv",
|
||||
"maintitle": "Aufarbeiten, anerkennen und erinnern",
|
||||
"content_length": 1369,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "27072021_UlrikeEichweber_LehrenziehenausderPandemie",
|
||||
"maintitle": "Lehren ziehen aus der Pandemie",
|
||||
"content_length": 826,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "05042017_ManuelaMnch_Jubilare-April2017",
|
||||
"maintitle": "Jubilare - April 2017",
|
||||
"content_length": 81,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "26072023_UlrikeEichweber_HilfefrdieHausarbeit",
|
||||
"maintitle": "Hilfe für die Hausarbeit",
|
||||
"content_length": 758,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "05112019_ManuelaMnch_Lehrstuhlvertretungen-November2019",
|
||||
"maintitle": "Lehrstuhlvertretungen - November 2019",
|
||||
"content_length": 182,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "07102005_ChristophLindemann_Kraft-Wrme-KopplungimFokus_archiv",
|
||||
"maintitle": "Kraft-Wärme-Kopplung im Fokus",
|
||||
"content_length": 3348,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "11122019_ManuelaMnch_Umhabilitationen-Dezember2019",
|
||||
"maintitle": "Umhabilitationen - Dezember 2019",
|
||||
"content_length": 234,
|
||||
"reason": null
|
||||
},
|
||||
{
|
||||
"_id": "17082018_ManuelaMnch_Seniorprofessuren-September2018",
|
||||
"maintitle": "Seniorprofessuren - September 2018",
|
||||
"content_length": 96,
|
||||
"reason": null
|
||||
}
|
||||
]
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"0": "rrrarr",
|
||||
"1": "rrrrra",
|
||||
"2": "rrrraa",
|
||||
"3": "rraaa",
|
||||
"4": "rrraaa",
|
||||
"5": "rrrrra",
|
||||
"6": "rraaaa",
|
||||
"7": "arraaa",
|
||||
"8": "raarr",
|
||||
"9": "rraaar",
|
||||
"10": "rrrraa",
|
||||
"11": "rrrraa",
|
||||
"12": "rraaaa",
|
||||
"13": "araaaa",
|
||||
"14": "aaaaaa",
|
||||
"15": "raaaaa",
|
||||
"16": "rraaaf",
|
||||
"17": "rraaaa",
|
||||
"18": "rrarar",
|
||||
"19": "rrraaa",
|
||||
"20": "raa",
|
||||
"21": "rraaaa",
|
||||
"22": "raarar",
|
||||
"23": "rarrra",
|
||||
"24": "rrrrar",
|
||||
"25": "rraaaa",
|
||||
"26": "aaaaaa",
|
||||
"27": "rarraa",
|
||||
"28": "rrrafa",
|
||||
"29": "rafraa",
|
||||
"30": "rraaaa",
|
||||
"31": "rrafar",
|
||||
"32": "rraara",
|
||||
"33": "rraaaa",
|
||||
"34": "rrrrfa",
|
||||
"35": "rraraa",
|
||||
"36": "rraaaa",
|
||||
"37": "rrrrra",
|
||||
"38": "rraaaa",
|
||||
"39": "rrrrfa",
|
||||
"40": "rrraaf",
|
||||
"41": "rraaaa",
|
||||
"42": "rraaa",
|
||||
"43": "rraaaa",
|
||||
"44": "rrrraa",
|
||||
"45": "rrrraa",
|
||||
"46": "rrraaa",
|
||||
"47": "raraaa",
|
||||
"48": "rraaaa",
|
||||
"49": "rrrrra"
|
||||
}
|
||||
@@ -0,0 +1,402 @@
|
||||
"""Deterministic Layer-1 checks for extracted news keywords.
|
||||
|
||||
Every check mirrors a rule the extraction prompt states, so the result is a
|
||||
compliance rate rather than a quality judgement. A check returns:
|
||||
|
||||
True — rule satisfied
|
||||
False — rule violated
|
||||
None — not determinable (e.g. spaCy missing, or no noun to inspect)
|
||||
|
||||
`None` is counted separately in evaluate.py and never silently folded into the
|
||||
pass or fail bucket.
|
||||
|
||||
Levels of "appears literally in the text" (L0 ⊆ L1 ⊆ L2):
|
||||
|
||||
L0 exact case-folded, word-boundary match in title + content
|
||||
L1 normalized additionally NFKC, collapsed whitespace, hyphens removed
|
||||
L2 lemma every token of the keyword matches a token lemma of the
|
||||
article (requires spaCy)
|
||||
|
||||
L2 is the primary metric: the prompt demands base forms ("Nominativ
|
||||
Singular"), so a keyword may legitimately differ from the inflected surface
|
||||
form in the article. L0 and L1 are reported as stricter bounds.
|
||||
"""
|
||||
|
||||
import re
|
||||
import unicodedata
|
||||
|
||||
# --- optional spaCy -------------------------------------------------------
|
||||
|
||||
_NLP = None
|
||||
_SPACY_TRIED = False
|
||||
|
||||
|
||||
def get_nlp():
|
||||
"""Loads de_core_news_sm once; returns None when spaCy is unavailable."""
|
||||
global _NLP, _SPACY_TRIED
|
||||
if _SPACY_TRIED:
|
||||
return _NLP
|
||||
_SPACY_TRIED = True
|
||||
try:
|
||||
import spacy
|
||||
|
||||
_NLP = spacy.load("de_core_news_sm")
|
||||
except Exception:
|
||||
_NLP = None
|
||||
return _NLP
|
||||
|
||||
|
||||
# --- text normalization ---------------------------------------------------
|
||||
|
||||
_WHITESPACE = re.compile(r"\s+")
|
||||
_HYPHENS = re.compile(r"[-‐-―]")
|
||||
|
||||
|
||||
def casefold_text(text):
|
||||
return unicodedata.normalize("NFKC", text or "").casefold()
|
||||
|
||||
|
||||
def normalize_text(text):
|
||||
"""NFKC + casefold + hyphens removed + whitespace collapsed."""
|
||||
text = casefold_text(text)
|
||||
text = _HYPHENS.sub("", text)
|
||||
return _WHITESPACE.sub(" ", text).strip()
|
||||
|
||||
|
||||
def _contains_with_boundaries(haystack, needle):
|
||||
if not needle:
|
||||
return False
|
||||
pattern = r"(?<!\w)" + re.escape(needle) + r"(?!\w)"
|
||||
return re.search(pattern, haystack) is not None
|
||||
|
||||
|
||||
# --- literal occurrence ---------------------------------------------------
|
||||
|
||||
def literal_l0(keyword, article_text):
|
||||
return _contains_with_boundaries(casefold_text(article_text), casefold_text(keyword))
|
||||
|
||||
|
||||
def literal_l1(keyword, article_text):
|
||||
"""L0 oder ein Treffer nach Normalisierung.
|
||||
|
||||
Die L0-Disjunktion ist nötig, damit L0 ⊆ L1 per Konstruktion gilt: das
|
||||
Entfernen der Bindestriche kann Komposita verschmelzen und dadurch eine
|
||||
Wortgrenze zerstören ("S-Bahn" trifft in "S-Bahn-Station", "sbahn" nicht
|
||||
mehr in "sbahnstation"). Ohne die Disjunktion läge L1 in genau diesen
|
||||
Fällen unter L0.
|
||||
"""
|
||||
if literal_l0(keyword, article_text):
|
||||
return True
|
||||
return _contains_with_boundaries(normalize_text(article_text), normalize_text(keyword))
|
||||
|
||||
|
||||
_WORD = re.compile(r"\w+")
|
||||
|
||||
|
||||
def _inflection_tolerance(token):
|
||||
"""How many trailing characters may differ, by token length.
|
||||
|
||||
German inflection is suffixal and short ("-e", "-en", "-er", "-s"), so a
|
||||
small bounded tolerance captures it. The bound also keeps compounds apart:
|
||||
"Forschung" does not match "Forschungsprojekt" (8 extra characters), which
|
||||
is exactly the generalization the prompt forbids.
|
||||
"""
|
||||
length = len(token)
|
||||
if length >= 6:
|
||||
return 3
|
||||
if length >= 4:
|
||||
return 2
|
||||
return 0
|
||||
|
||||
|
||||
def _spacy_tokens(text, nlp):
|
||||
"""(lemma, surface) pairs of a text, punctuation and whitespace dropped."""
|
||||
document = nlp(text or "")
|
||||
return [
|
||||
(token.lemma_.casefold(), token.text.casefold())
|
||||
for token in document
|
||||
if not token.is_punct and not token.is_space
|
||||
]
|
||||
|
||||
|
||||
def build_article_index(article_text, nlp=None):
|
||||
"""Prepares an article for the L2 check.
|
||||
|
||||
Both variants keep the token **order**, because L2 requires a multi-word
|
||||
keyword to occur as a contiguous phrase — "Forschung und Entwicklung" must
|
||||
not count merely because all three words appear somewhere in the article.
|
||||
|
||||
With spaCy: lemma/surface pairs, the linguistically correct basis. Without
|
||||
it: normalized surface tokens, matched suffix-tolerantly. The method is
|
||||
part of the index so callers can tell which one produced the numbers.
|
||||
"""
|
||||
nlp = nlp or get_nlp()
|
||||
|
||||
if nlp is None:
|
||||
return {
|
||||
"method": "flexion",
|
||||
"tokens": _WORD.findall(normalize_text(article_text)),
|
||||
}
|
||||
|
||||
return {"method": "lemma", "tokens": _spacy_tokens(article_text, nlp)}
|
||||
|
||||
|
||||
def _tokens_match_with_inflection(keyword_token, article_token):
|
||||
"""One token pair, allowing a short suffix on either side.
|
||||
|
||||
The article may inflect the keyword's base form ("Forschungsprojekt" vs
|
||||
"Forschungsprojekte"), or the keyword may itself be the longer surface
|
||||
form. The bound keeps compounds apart: "Forschung" never matches
|
||||
"Forschungsprojekt".
|
||||
"""
|
||||
if keyword_token == article_token:
|
||||
return True
|
||||
if article_token.startswith(keyword_token):
|
||||
return len(article_token) - len(keyword_token) <= _inflection_tolerance(keyword_token)
|
||||
if keyword_token.startswith(article_token):
|
||||
return len(keyword_token) - len(article_token) <= _inflection_tolerance(article_token)
|
||||
return False
|
||||
|
||||
|
||||
def _lemma_tokens_match(keyword_token, article_token):
|
||||
keyword_lemma, keyword_surface = keyword_token
|
||||
article_lemma, article_surface = article_token
|
||||
return (
|
||||
keyword_lemma == article_lemma
|
||||
or keyword_lemma == article_surface
|
||||
or keyword_surface == article_surface
|
||||
)
|
||||
|
||||
|
||||
def _contiguous_match(keyword_tokens, article_tokens, compare):
|
||||
"""True when the keyword tokens occur as a contiguous run, in order."""
|
||||
span = len(keyword_tokens)
|
||||
if span == 0 or span > len(article_tokens):
|
||||
return False
|
||||
for start in range(len(article_tokens) - span + 1):
|
||||
if all(
|
||||
compare(keyword_tokens[offset], article_tokens[start + offset])
|
||||
for offset in range(span)
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def literal_l2(keyword, index, nlp=None):
|
||||
"""True when the keyword occurs in the article as a contiguous phrase.
|
||||
|
||||
Each token may differ by inflection — identical lemma with spaCy, a short
|
||||
suffix without it — but the tokens must be adjacent and in order. That is
|
||||
the level at which the two prompt rules ("kommt im Text vor" and
|
||||
"Grundform") are satisfiable at the same time: the term is genuinely taken
|
||||
from the text, only its form is normalized.
|
||||
"""
|
||||
if index is None:
|
||||
return None
|
||||
|
||||
if index["method"] == "lemma":
|
||||
nlp = nlp or get_nlp()
|
||||
if nlp is None:
|
||||
return None
|
||||
keyword_tokens = _spacy_tokens(keyword, nlp)
|
||||
return _contiguous_match(keyword_tokens, index["tokens"], _lemma_tokens_match)
|
||||
|
||||
keyword_tokens = _WORD.findall(normalize_text(keyword))
|
||||
return _contiguous_match(keyword_tokens, index["tokens"], _tokens_match_with_inflection)
|
||||
|
||||
|
||||
# --- per-article structure ------------------------------------------------
|
||||
|
||||
def count_ok(raw_keywords, limit):
|
||||
"""At most `limit` keywords in the RAW model output."""
|
||||
if raw_keywords is None:
|
||||
return None
|
||||
return len(raw_keywords) <= limit
|
||||
|
||||
|
||||
def no_duplicates(raw_keywords):
|
||||
"""No case-insensitive duplicates in the RAW model output."""
|
||||
if raw_keywords is None:
|
||||
return None
|
||||
seen = [item.strip().casefold() for item in raw_keywords if isinstance(item, str)]
|
||||
return len(seen) == len(set(seen))
|
||||
|
||||
|
||||
MIN_STEM_LENGTH = 4
|
||||
|
||||
|
||||
def no_stem_redundancy(keywords):
|
||||
"""No keyword is contained in another ("Forschung" next to "Forschungsprojekt").
|
||||
|
||||
Plain containment rather than a stemmer: Snowball maps those two examples
|
||||
to different stems, so stemming would miss the case the prompt names.
|
||||
"""
|
||||
if keywords is None:
|
||||
return None
|
||||
normalized = [normalize_text(item) for item in keywords if isinstance(item, str)]
|
||||
normalized = [item for item in normalized if len(item) >= MIN_STEM_LENGTH]
|
||||
for i, left in enumerate(normalized):
|
||||
for j, right in enumerate(normalized):
|
||||
if i != j and left in right and left != right:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def redundant_pairs(keywords):
|
||||
"""The offending pairs, for qualitative inspection."""
|
||||
pairs = []
|
||||
normalized = {
|
||||
item: normalize_text(item) for item in keywords if isinstance(item, str)
|
||||
}
|
||||
for left, left_norm in normalized.items():
|
||||
if len(left_norm) < MIN_STEM_LENGTH:
|
||||
continue
|
||||
for right, right_norm in normalized.items():
|
||||
if left is not right and left_norm in right_norm and left_norm != right_norm:
|
||||
pairs.append((left, right))
|
||||
return pairs
|
||||
|
||||
|
||||
# --- forbidden content ----------------------------------------------------
|
||||
|
||||
_MONTH_NAMES = {
|
||||
"januar", "februar", "märz", "april", "mai", "juni", "juli",
|
||||
"august", "september", "oktober", "november", "dezember",
|
||||
}
|
||||
_YEAR = re.compile(r"^(19|20)\d{2}$")
|
||||
_FULL_DATE = re.compile(r"(?<!\d)\d{1,2}\.\s?\d{1,2}\.\s?(19|20)?\d{2}(?!\d)")
|
||||
|
||||
|
||||
def no_date(keyword):
|
||||
"""False, wenn das Schlagwort eine Datumsangabe ist.
|
||||
|
||||
Eine Jahreszahl *innerhalb* eines längeren Begriffs zählt nicht: sie
|
||||
gehört dort in aller Regel zu einem Eigennamen ("Horizont 2020",
|
||||
"Agenda 2010", "EUSA Games 2020"), und Programm- und Veranstaltungsnamen
|
||||
verbietet der Prompt nicht. Gemeldet wird deshalb nur, was ausschließlich
|
||||
aus Datumsbestandteilen besteht, sowie ein vollständiges Tagesdatum an
|
||||
beliebiger Stelle.
|
||||
|
||||
Grenzfall: "Sommersemester 2015" gilt damit als konform, obwohl es eine
|
||||
Zeitangabe enthält. Das ist bewusst die vorsichtigere Richtung — falsch
|
||||
gemeldete Eigennamen wären der teurere Fehler.
|
||||
"""
|
||||
if _FULL_DATE.search(casefold_text(keyword)):
|
||||
return False
|
||||
|
||||
tokens = _WORD.findall(normalize_text(keyword))
|
||||
if not tokens:
|
||||
return True
|
||||
|
||||
return not all(
|
||||
_YEAR.match(token) or token in _MONTH_NAMES or token.isdigit()
|
||||
for token in tokens
|
||||
)
|
||||
|
||||
|
||||
MIN_NAME_TOKEN = 3
|
||||
|
||||
|
||||
def no_person_name_authors(keyword, authors):
|
||||
"""False when the keyword is one of the article's own extracted names.
|
||||
|
||||
Uses the `authors` field the pipeline already produces, so this check
|
||||
needs no external model and no annotation.
|
||||
"""
|
||||
if authors is None:
|
||||
return None
|
||||
keyword_norm = normalize_text(keyword)
|
||||
if not keyword_norm:
|
||||
return True
|
||||
|
||||
for author in authors:
|
||||
author_norm = normalize_text(author)
|
||||
if not author_norm:
|
||||
continue
|
||||
if keyword_norm == author_norm:
|
||||
return False
|
||||
parts = [part for part in author_norm.split() if len(part) >= MIN_NAME_TOKEN]
|
||||
if keyword_norm in parts:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def no_person_name_ner(keyword, nlp=None):
|
||||
"""False when spaCy tags the whole keyword as a person entity."""
|
||||
nlp = nlp or get_nlp()
|
||||
if nlp is None:
|
||||
return None
|
||||
document = nlp(keyword or "")
|
||||
for entity in document.ents:
|
||||
if entity.label_ == "PER" and entity.text.strip() == (keyword or "").strip():
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
# --- grammatical form -----------------------------------------------------
|
||||
|
||||
def base_form(keyword, nlp=None):
|
||||
"""True when the keyword's head noun is nominative singular.
|
||||
|
||||
German head nouns sit at the end of a phrase, so the last NOUN/PROPN token
|
||||
is inspected. Returns None when the keyword contains no noun at all.
|
||||
"""
|
||||
nlp = nlp or get_nlp()
|
||||
if nlp is None:
|
||||
return None
|
||||
|
||||
document = nlp(keyword or "")
|
||||
nouns = [token for token in document if token.pos_ in ("NOUN", "PROPN")]
|
||||
if not nouns:
|
||||
return None
|
||||
|
||||
head = nouns[-1]
|
||||
numbers = head.morph.get("Number")
|
||||
cases = head.morph.get("Case")
|
||||
if not numbers or not cases:
|
||||
return None
|
||||
return "Sing" in numbers and "Nom" in cases
|
||||
|
||||
|
||||
# --- aggregation helpers --------------------------------------------------
|
||||
|
||||
def check_keyword(keyword, article_text, index, authors, nlp=None):
|
||||
"""All keyword-level checks for one keyword."""
|
||||
l0 = literal_l0(keyword, article_text)
|
||||
l1 = literal_l1(keyword, article_text)
|
||||
|
||||
# L0 ⊆ L1 ⊆ L2, so the expensive pass only runs where L1 already failed.
|
||||
if l1:
|
||||
l2 = True
|
||||
else:
|
||||
l2 = literal_l2(keyword, index, nlp=nlp)
|
||||
|
||||
return {
|
||||
"literal_l0": l0,
|
||||
"literal_l1": l1,
|
||||
"literal_l2": l2,
|
||||
"no_person_name_authors": no_person_name_authors(keyword, authors),
|
||||
"no_person_name_ner": no_person_name_ner(keyword, nlp=nlp),
|
||||
"no_date": no_date(keyword),
|
||||
"base_form": base_form(keyword, nlp=nlp),
|
||||
}
|
||||
|
||||
|
||||
def check_article(raw_keywords, keywords, limit):
|
||||
"""All article-level checks for one article."""
|
||||
return {
|
||||
"count_ok": count_ok(raw_keywords, limit),
|
||||
"no_duplicates": no_duplicates(raw_keywords),
|
||||
"no_stem_redundancy": no_stem_redundancy(keywords),
|
||||
}
|
||||
|
||||
|
||||
def jaccard(left, right):
|
||||
"""Set overlap of two keyword lists, case-insensitive."""
|
||||
left_set = {item.casefold() for item in left if isinstance(item, str)}
|
||||
right_set = {item.casefold() for item in right if isinstance(item, str)}
|
||||
if not left_set and not right_set:
|
||||
return 1.0
|
||||
if not left_set or not right_set:
|
||||
return 0.0
|
||||
return len(left_set & right_set) / len(left_set | right_set)
|
||||
@@ -0,0 +1,251 @@
|
||||
"""Applies the Layer-1 checks to an extraction run and aggregates the counts.
|
||||
|
||||
Separate from extract_keywords.py on purpose: the LLM calls are slow and cost
|
||||
GPU time, the checks are cheap, so a changed check definition must not force a
|
||||
re-extraction.
|
||||
|
||||
Writes
|
||||
results_<config>.json aggregated counts for results.py
|
||||
decisions/<config>.jsonl one record per keyword decision, for manual review
|
||||
|
||||
Usage:
|
||||
python evaluate.py --config neu
|
||||
python evaluate.py --config alt
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import statistics
|
||||
import sys
|
||||
from collections import Counter
|
||||
from itertools import combinations
|
||||
from pathlib import Path
|
||||
|
||||
import checks
|
||||
|
||||
sys.path.append(str(Path(__file__).resolve().parents[2] / "service/src/main/inse/news"))
|
||||
import keyword_extraction # noqa: E402
|
||||
|
||||
ARTICLES_FILE = "data/articles.jsonl"
|
||||
RUNS_DIR = "runs"
|
||||
DECISIONS_DIR = "decisions"
|
||||
MAX_EXAMPLES = 25
|
||||
|
||||
KEYWORD_CHECKS = [
|
||||
"literal_l0",
|
||||
"literal_l1",
|
||||
"literal_l2",
|
||||
"no_person_name_authors",
|
||||
"no_person_name_ner",
|
||||
"no_date",
|
||||
"base_form",
|
||||
]
|
||||
ARTICLE_CHECKS = ["count_ok", "no_duplicates", "no_stem_redundancy"]
|
||||
|
||||
|
||||
def load_jsonl(path):
|
||||
records = []
|
||||
with open(path, encoding="utf-8") as input_file:
|
||||
for line in input_file:
|
||||
line = line.strip()
|
||||
if line:
|
||||
records.append(json.loads(line))
|
||||
return records
|
||||
|
||||
|
||||
def empty_tally():
|
||||
return {"pass": 0, "fail": 0, "na": 0}
|
||||
|
||||
|
||||
def tally(bucket, value):
|
||||
if value is None:
|
||||
bucket["na"] += 1
|
||||
elif value:
|
||||
bucket["pass"] += 1
|
||||
else:
|
||||
bucket["fail"] += 1
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--config", required=True)
|
||||
parser.add_argument("--articles", default=ARTICLES_FILE)
|
||||
parser.add_argument("--run", default=None, help="Default: runs/<config>.jsonl")
|
||||
args = parser.parse_args()
|
||||
|
||||
run_path = args.run or os.path.join(RUNS_DIR, f"{args.config}.jsonl")
|
||||
if not os.path.exists(run_path):
|
||||
raise SystemExit(
|
||||
f"'{run_path}' existiert nicht — für '{args.config}' wurde noch nicht "
|
||||
f"extrahiert.\nZuerst: python extract_keywords.py --config {args.config}"
|
||||
)
|
||||
|
||||
articles = {record["_id"]: record for record in load_jsonl(args.articles)}
|
||||
run_records = load_jsonl(run_path)
|
||||
|
||||
nlp = checks.get_nlp()
|
||||
if nlp is None:
|
||||
print(
|
||||
"Hinweis: spaCy/de_core_news_sm nicht verfügbar.\n"
|
||||
" L2 läuft über den Flexions-Fallback (suffixtolerant, ohne Abhängigkeit).\n"
|
||||
" Grundform- und NER-Prüfung werden als 'n. v.' gezählt."
|
||||
)
|
||||
|
||||
keyword_tallies = {name: empty_tally() for name in KEYWORD_CHECKS}
|
||||
article_tallies = {name: empty_tally() for name in ARTICLE_CHECKS}
|
||||
article_tallies["literal_all"] = empty_tally()
|
||||
|
||||
errors = Counter()
|
||||
keyword_counts = []
|
||||
examples = {name: [] for name in KEYWORD_CHECKS + ARTICLE_CHECKS}
|
||||
decisions = []
|
||||
by_article_repeats = {}
|
||||
|
||||
keywords_total = 0
|
||||
articles_evaluated = 0
|
||||
|
||||
for entry in run_records:
|
||||
news_id = entry["_id"]
|
||||
by_article_repeats.setdefault(news_id, []).append(entry)
|
||||
|
||||
# Only the first repeat feeds the compliance counts; the extra repeats
|
||||
# exist for the reproducibility measure and would otherwise weight
|
||||
# those articles more heavily.
|
||||
if entry.get("repeat", 0) != 0:
|
||||
continue
|
||||
|
||||
if entry.get("error"):
|
||||
errors[entry["error"].split(":")[0]] += 1
|
||||
continue
|
||||
|
||||
article = articles.get(news_id)
|
||||
if article is None:
|
||||
errors["article_missing"] += 1
|
||||
continue
|
||||
|
||||
articles_evaluated += 1
|
||||
raw_keywords = entry.get("raw_keywords")
|
||||
keywords = entry.get("keywords") or []
|
||||
keyword_counts.append(len(raw_keywords) if raw_keywords is not None else 0)
|
||||
|
||||
article_text = " ".join(
|
||||
part for part in (article.get("maintitle"), article.get("full_content")) if part
|
||||
)
|
||||
authors = article.get("authors")
|
||||
|
||||
article_results = checks.check_article(
|
||||
raw_keywords, keywords, keyword_extraction.KEYWORD_LIMIT
|
||||
)
|
||||
for name, value in article_results.items():
|
||||
tally(article_tallies[name], value)
|
||||
if value is False and len(examples[name]) < MAX_EXAMPLES:
|
||||
detail = {"_id": news_id, "keywords": raw_keywords}
|
||||
if name == "no_stem_redundancy":
|
||||
detail["pairs"] = checks.redundant_pairs(keywords)
|
||||
examples[name].append(detail)
|
||||
|
||||
# Building the article index is the expensive part, so do it only when
|
||||
# some keyword actually needs it.
|
||||
index = None
|
||||
index_built = False
|
||||
article_literal_ok = True
|
||||
article_literal_undecided = False
|
||||
|
||||
for keyword in keywords:
|
||||
if not isinstance(keyword, str) or not keyword.strip():
|
||||
continue
|
||||
keywords_total += 1
|
||||
|
||||
if not index_built and not checks.literal_l1(keyword, article_text):
|
||||
index = checks.build_article_index(article_text, nlp=nlp)
|
||||
index_built = True
|
||||
|
||||
results = checks.check_keyword(keyword, article_text, index, authors, nlp=nlp)
|
||||
for name, value in results.items():
|
||||
tally(keyword_tallies[name], value)
|
||||
if value is False and len(examples[name]) < MAX_EXAMPLES:
|
||||
examples[name].append({"_id": news_id, "keyword": keyword})
|
||||
|
||||
if results["literal_l2"] is False:
|
||||
article_literal_ok = False
|
||||
elif results["literal_l2"] is None:
|
||||
article_literal_undecided = True
|
||||
|
||||
decisions.append({"_id": news_id, "keyword": keyword, **results})
|
||||
|
||||
# A single undecidable keyword makes the whole article undecidable —
|
||||
# otherwise a missing spaCy model would silently report every article
|
||||
# as compliant.
|
||||
if article_literal_ok and article_literal_undecided:
|
||||
tally(article_tallies["literal_all"], None)
|
||||
else:
|
||||
tally(article_tallies["literal_all"], article_literal_ok)
|
||||
|
||||
# Reproducibility: mean pairwise Jaccard across repeats of the same article.
|
||||
determinism = None
|
||||
repeated = {
|
||||
news_id: entries
|
||||
for news_id, entries in by_article_repeats.items()
|
||||
if len({entry.get("repeat", 0) for entry in entries}) > 1
|
||||
}
|
||||
if repeated:
|
||||
scores = []
|
||||
for entries in repeated.values():
|
||||
usable = [entry["keywords"] for entry in entries if not entry.get("error")]
|
||||
if len(usable) < 2:
|
||||
continue
|
||||
scores.extend(
|
||||
checks.jaccard(left, right) for left, right in combinations(usable, 2)
|
||||
)
|
||||
if scores:
|
||||
determinism = {
|
||||
"articles": len(repeated),
|
||||
"repeats": max(len(entries) for entries in repeated.values()),
|
||||
"mean_pairwise_jaccard": round(statistics.mean(scores), 4),
|
||||
"identical_share": round(
|
||||
sum(1 for score in scores if score == 1.0) / len(scores), 4
|
||||
),
|
||||
}
|
||||
|
||||
results = {
|
||||
"config": args.config,
|
||||
"l2_method": "lemma" if nlp is not None else "flexion",
|
||||
"articles_evaluated": articles_evaluated,
|
||||
"keywords_total": keywords_total,
|
||||
"errors": dict(errors),
|
||||
"keyword_level": keyword_tallies,
|
||||
"article_level": article_tallies,
|
||||
"descriptive": {
|
||||
"mean_keywords": round(statistics.mean(keyword_counts), 2) if keyword_counts else 0,
|
||||
"median_keywords": statistics.median(keyword_counts) if keyword_counts else 0,
|
||||
"articles_zero_keywords": sum(1 for count in keyword_counts if count == 0),
|
||||
"articles_exactly_six": sum(1 for count in keyword_counts if count == 6),
|
||||
"articles_over_six": sum(
|
||||
1 for count in keyword_counts if count > keyword_extraction.KEYWORD_LIMIT
|
||||
),
|
||||
},
|
||||
"determinism": determinism,
|
||||
"examples": examples,
|
||||
}
|
||||
|
||||
output_path = f"results_{args.config}.json"
|
||||
with open(output_path, "w", encoding="utf-8") as output_file:
|
||||
json.dump(results, output_file, ensure_ascii=False, indent=2)
|
||||
|
||||
os.makedirs(DECISIONS_DIR, exist_ok=True)
|
||||
decisions_path = os.path.join(DECISIONS_DIR, f"{args.config}.jsonl")
|
||||
with open(decisions_path, "w", encoding="utf-8") as decisions_file:
|
||||
for decision in decisions:
|
||||
decisions_file.write(json.dumps(decision, ensure_ascii=False) + "\n")
|
||||
|
||||
print(
|
||||
f"{articles_evaluated} Artikel, {keywords_total} Schlagwörter ausgewertet.\n"
|
||||
f"-> {output_path}\n-> {decisions_path}"
|
||||
)
|
||||
if errors:
|
||||
print(f"Fehler: {dict(errors)}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,274 @@
|
||||
"""Runs the keyword extraction under a named configuration and logs raw output.
|
||||
|
||||
Two configurations are defined:
|
||||
|
||||
* `neu` — the production contract, imported from the service module
|
||||
`inse.news.keyword_extraction`, so the evaluation tests what actually ships
|
||||
(title + 20.000-char bound, strict JSON schema, temperature 0.0,
|
||||
normalization).
|
||||
* `alt` — the behaviour of the background job before the paths were unified:
|
||||
full content without the title, no schema, temperature 1.0, and the raw
|
||||
model list persisted without normalization.
|
||||
|
||||
The RAW model response is written out alongside the parsed list, because the
|
||||
count- and duplicate checks have to look at what the model produced, not at
|
||||
what normalize_keywords() left over.
|
||||
|
||||
Output: runs/<config>.jsonl, one object per article and repeat:
|
||||
|
||||
{"_id": ..., "config": ..., "repeat": 0, "raw_response": "...",
|
||||
"raw_keywords": [...], "keywords": [...], "error": null}
|
||||
|
||||
Runs are resumable — (\\_id, repeat) pairs already present are skipped.
|
||||
|
||||
Usage:
|
||||
python extract_keywords.py --config neu
|
||||
python extract_keywords.py --config alt
|
||||
python extract_keywords.py --config neu --repeats 5 --limit 200
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
from openai import APIConnectionError, OpenAI
|
||||
|
||||
# The production contract lives in the service package; import it rather than
|
||||
# restating it, so "neu" cannot silently drift away from what ships.
|
||||
sys.path.append(str(Path(__file__).resolve().parents[2] / "service/src/main/inse/news"))
|
||||
import keyword_extraction # noqa: E402
|
||||
|
||||
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 SystemExit(
|
||||
"INSE_LLM_API_KEY ist nicht gesetzt. Lege eine .env an oder exportiere die Variable."
|
||||
)
|
||||
LLM_MODEL = os.getenv("INSE_LLM_MODEL", "gemma4-e4b")
|
||||
|
||||
_client = OpenAI(base_url=LLM_BASE_URL, api_key=LLM_API_KEY, timeout=120)
|
||||
|
||||
INPUT_FILE = "data/articles.jsonl"
|
||||
OUTPUT_DIR = "runs"
|
||||
|
||||
# Legacy configuration, kept verbatim for the comparison column.
|
||||
ALT_TEMPERATURE = 1.0
|
||||
ALT_TOP_P = 0.95
|
||||
ALT_TOP_K = 64
|
||||
|
||||
|
||||
def build_prompt_neu(record):
|
||||
return keyword_extraction.build_user_prompt(
|
||||
record.get("maintitle"), record.get("full_content")
|
||||
)
|
||||
|
||||
|
||||
def build_prompt_alt(record):
|
||||
"""Legacy: bare full_content, no title, no length bound."""
|
||||
text = (record.get("full_content") or "").strip()
|
||||
return text or None
|
||||
|
||||
|
||||
CONFIGS = {
|
||||
"neu": {
|
||||
"system_prompt": keyword_extraction.KEYWORD_SYSTEM_PROMPT,
|
||||
"build_prompt": build_prompt_neu,
|
||||
"temperature": keyword_extraction.TEMPERATURE,
|
||||
"top_p": keyword_extraction.TOP_P,
|
||||
"top_k": keyword_extraction.TOP_K,
|
||||
"json_schema": keyword_extraction.RESPONSE_SCHEMA,
|
||||
"schema_name": keyword_extraction.SCHEMA_NAME,
|
||||
"normalize": True,
|
||||
},
|
||||
"alt": {
|
||||
"system_prompt": keyword_extraction.KEYWORD_SYSTEM_PROMPT,
|
||||
"build_prompt": build_prompt_alt,
|
||||
"temperature": ALT_TEMPERATURE,
|
||||
"top_p": ALT_TOP_P,
|
||||
"top_k": ALT_TOP_K,
|
||||
"json_schema": None,
|
||||
"schema_name": None,
|
||||
"normalize": False,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def call_llm(config, user_prompt):
|
||||
response_format = None
|
||||
if config["json_schema"] is not None:
|
||||
response_format = {
|
||||
"type": "json_schema",
|
||||
"json_schema": {
|
||||
"name": config["schema_name"],
|
||||
"strict": True,
|
||||
"schema": config["json_schema"],
|
||||
},
|
||||
}
|
||||
|
||||
response = _client.chat.completions.create(
|
||||
model=LLM_MODEL,
|
||||
messages=[
|
||||
{"role": "system", "content": config["system_prompt"]},
|
||||
{"role": "user", "content": user_prompt},
|
||||
],
|
||||
temperature=config["temperature"],
|
||||
top_p=config["top_p"],
|
||||
extra_body={"top_k": config["top_k"]},
|
||||
response_format=response_format,
|
||||
)
|
||||
return response.choices[0].message.content or ""
|
||||
|
||||
|
||||
def parse_raw(raw_response):
|
||||
"""Parses the model answer without applying any normalization."""
|
||||
try:
|
||||
data = json.loads(raw_response)
|
||||
except (json.JSONDecodeError, TypeError):
|
||||
return None
|
||||
if not isinstance(data, dict):
|
||||
return None
|
||||
candidates = data.get("keywords")
|
||||
if not isinstance(candidates, list):
|
||||
return None
|
||||
return candidates
|
||||
|
||||
|
||||
def extract_one(record, config_name, repeat):
|
||||
config = CONFIGS[config_name]
|
||||
result = {
|
||||
"_id": record["_id"],
|
||||
"config": config_name,
|
||||
"repeat": repeat,
|
||||
"raw_response": None,
|
||||
"raw_keywords": None,
|
||||
"keywords": [],
|
||||
"error": None,
|
||||
}
|
||||
|
||||
user_prompt = config["build_prompt"](record)
|
||||
if not user_prompt:
|
||||
result["error"] = "empty_article"
|
||||
return result
|
||||
|
||||
try:
|
||||
raw_response = call_llm(config, user_prompt)
|
||||
except APIConnectionError as error:
|
||||
result["error"] = f"connection_error: {error}"
|
||||
return result
|
||||
except Exception as error: # noqa: BLE001 - one bad article must not stop the run
|
||||
result["error"] = f"llm_error: {error}"
|
||||
return result
|
||||
|
||||
result["raw_response"] = raw_response
|
||||
raw_keywords = parse_raw(raw_response)
|
||||
|
||||
if raw_keywords is None:
|
||||
result["error"] = "unparseable_response"
|
||||
return result
|
||||
|
||||
result["raw_keywords"] = raw_keywords
|
||||
if config["normalize"]:
|
||||
result["keywords"] = keyword_extraction.normalize_keywords(raw_keywords)
|
||||
else:
|
||||
# Legacy behaviour: whatever the model returned was persisted as-is.
|
||||
result["keywords"] = raw_keywords
|
||||
|
||||
return result
|
||||
|
||||
|
||||
def load_articles(path, limit):
|
||||
records = []
|
||||
with open(path, encoding="utf-8") as input_file:
|
||||
for line in input_file:
|
||||
line = line.strip()
|
||||
if line:
|
||||
records.append(json.loads(line))
|
||||
return records[:limit] if limit else records
|
||||
|
||||
|
||||
def load_done(path):
|
||||
"""Returns the (_id, repeat) pairs already written, so runs can resume."""
|
||||
done = set()
|
||||
if not os.path.exists(path):
|
||||
return done
|
||||
with open(path, encoding="utf-8") as existing:
|
||||
for line in existing:
|
||||
line = line.strip()
|
||||
if not line:
|
||||
continue
|
||||
try:
|
||||
entry = json.loads(line)
|
||||
except json.JSONDecodeError:
|
||||
continue
|
||||
done.add((entry.get("_id"), entry.get("repeat")))
|
||||
return done
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--config", choices=sorted(CONFIGS), required=True)
|
||||
parser.add_argument("--input", default=INPUT_FILE)
|
||||
parser.add_argument("--output", default=None, help="Default: runs/<config>.jsonl")
|
||||
parser.add_argument("--threads", type=int, default=4)
|
||||
parser.add_argument("--limit", type=int, default=None, help="Nur die ersten N Artikel.")
|
||||
parser.add_argument(
|
||||
"--repeats",
|
||||
type=int,
|
||||
default=1,
|
||||
help="Wiederholungen je Artikel für die Reproduzierbarkeitsmessung (Default: 1).",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
||||
output_path = args.output or os.path.join(OUTPUT_DIR, f"{args.config}.jsonl")
|
||||
|
||||
records = load_articles(args.input, args.limit)
|
||||
done = load_done(output_path)
|
||||
|
||||
jobs = [
|
||||
(record, repeat)
|
||||
for record in records
|
||||
for repeat in range(args.repeats)
|
||||
if (record["_id"], repeat) not in done
|
||||
]
|
||||
total = len(jobs)
|
||||
print(
|
||||
f"Konfiguration '{args.config}': {len(records)} Artikel x {args.repeats} "
|
||||
f"Wiederholung(en), {total} offen, {len(done)} bereits vorhanden."
|
||||
)
|
||||
if not total:
|
||||
return
|
||||
|
||||
write_lock = threading.Lock()
|
||||
processed = 0
|
||||
failed = 0
|
||||
|
||||
with open(output_path, "a", encoding="utf-8") as output_file:
|
||||
with ThreadPoolExecutor(max_workers=args.threads) as executor:
|
||||
futures = [
|
||||
executor.submit(extract_one, record, args.config, repeat)
|
||||
for record, repeat in jobs
|
||||
]
|
||||
for future in as_completed(futures):
|
||||
result = future.result()
|
||||
with write_lock:
|
||||
output_file.write(json.dumps(result, ensure_ascii=False) + "\n")
|
||||
output_file.flush()
|
||||
processed += 1
|
||||
if result["error"]:
|
||||
failed += 1
|
||||
if processed % 25 == 0 or processed == total:
|
||||
print(f" {processed} / {total} (Fehler: {failed})")
|
||||
|
||||
print(f"Fertig. {processed} Aufrufe, davon {failed} mit Fehler. -> {output_path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,186 @@
|
||||
"""Collects the article sample for the keyword evaluation.
|
||||
|
||||
Reads `aktuell` (title + content) and joins the `authors` field from
|
||||
`aktuell_postproc`, which the person-name check uses as a per-article list of
|
||||
names that must not show up as keywords.
|
||||
|
||||
Writes one JSON object per line to data/articles.jsonl, so a corpus-wide run
|
||||
stays a single file:
|
||||
|
||||
{"_id": ..., "maintitle": ..., "full_content": ..., "date": ...,
|
||||
"authors": [...]}
|
||||
|
||||
Usage:
|
||||
python fetch_articles.py # 500 articles, seed 42
|
||||
python fetch_articles.py --sample 2000
|
||||
python fetch_articles.py --all # every article in the index
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
|
||||
import requests
|
||||
from dotenv import load_dotenv
|
||||
|
||||
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 SystemExit(
|
||||
"INSE_ELASTIC_API_KEY ist nicht gesetzt. Lege eine .env an oder exportiere die Variable."
|
||||
)
|
||||
|
||||
ES_HEADERS = {
|
||||
"Authorization": f"ApiKey {INSE_API_KEY}",
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
|
||||
RANDOM_SEED = 42
|
||||
OUTPUT_FILE = "data/articles.jsonl"
|
||||
MGET_CHUNK = 200
|
||||
|
||||
|
||||
def scroll_ids(index):
|
||||
"""Returns every _id of an index via a scrolling search."""
|
||||
ids = []
|
||||
response = requests.post(
|
||||
f"{INSE_URL}/{index}/_search?scroll=2m",
|
||||
json={"query": {"match_all": {}}, "_source": False, "size": 1000},
|
||||
headers=ES_HEADERS,
|
||||
)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
scroll_id = data.get("_scroll_id")
|
||||
hits = data["hits"]["hits"]
|
||||
|
||||
while hits:
|
||||
ids.extend(hit["_id"] for hit in hits)
|
||||
response = requests.post(
|
||||
f"{INSE_URL}/_search/scroll",
|
||||
json={"scroll": "2m", "scroll_id": scroll_id},
|
||||
headers=ES_HEADERS,
|
||||
)
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
scroll_id = data.get("_scroll_id")
|
||||
hits = data["hits"]["hits"]
|
||||
|
||||
if scroll_id:
|
||||
requests.delete(
|
||||
f"{INSE_URL}/_search/scroll",
|
||||
json={"scroll_id": [scroll_id]},
|
||||
headers=ES_HEADERS,
|
||||
)
|
||||
|
||||
return ids
|
||||
|
||||
|
||||
def mget(index, ids, source_fields):
|
||||
"""Fetches documents by id in chunks.
|
||||
|
||||
The `ids` body form of _mget takes no top-level `_source`; source
|
||||
filtering has to go into the query string, otherwise Elasticsearch
|
||||
answers 400.
|
||||
"""
|
||||
documents = []
|
||||
params = {"_source": ",".join(source_fields)} if source_fields else None
|
||||
for start in range(0, len(ids), MGET_CHUNK):
|
||||
chunk = ids[start:start + MGET_CHUNK]
|
||||
response = requests.post(
|
||||
f"{INSE_URL}/{index}/_mget",
|
||||
json={"ids": chunk},
|
||||
params=params,
|
||||
headers=ES_HEADERS,
|
||||
)
|
||||
response.raise_for_status()
|
||||
documents.extend(response.json()["docs"])
|
||||
return documents
|
||||
|
||||
|
||||
def fetch_authors(news_ids):
|
||||
"""Maps news_id -> extracted author names from aktuell_postproc.
|
||||
|
||||
Searched by the `news_id` field rather than fetched by document id: the
|
||||
sync job POSTs to /_doc without an id, so Elasticsearch assigns a random
|
||||
_id and an _mget on news_id would quietly find nothing. This mirrors how
|
||||
the service resolves postproc entries.
|
||||
"""
|
||||
authors_by_id = {}
|
||||
for start in range(0, len(news_ids), MGET_CHUNK):
|
||||
chunk = news_ids[start:start + MGET_CHUNK]
|
||||
response = requests.post(
|
||||
f"{INSE_URL}/aktuell_postproc/_search",
|
||||
json={
|
||||
"query": {"terms": {"news_id.keyword": chunk}},
|
||||
"_source": ["news_id", "authors"],
|
||||
"size": min(len(chunk) * 2, 10000),
|
||||
},
|
||||
headers=ES_HEADERS,
|
||||
)
|
||||
response.raise_for_status()
|
||||
for hit in response.json().get("hits", {}).get("hits", []):
|
||||
source = hit.get("_source", {})
|
||||
news_id = source.get("news_id")
|
||||
if news_id:
|
||||
authors_by_id[news_id] = source.get("authors") or []
|
||||
return authors_by_id
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--sample", type=int, default=500, help="Stichprobengröße (Default: 500).")
|
||||
parser.add_argument("--all", action="store_true", help="Alle Artikel statt einer Stichprobe.")
|
||||
parser.add_argument("--seed", type=int, default=RANDOM_SEED, help="Zufalls-Seed.")
|
||||
parser.add_argument("--output", default=OUTPUT_FILE)
|
||||
args = parser.parse_args()
|
||||
|
||||
print("Hole alle _id aus dem Index 'aktuell'...")
|
||||
all_ids = scroll_ids("aktuell")
|
||||
print(f"{len(all_ids)} Artikel im Index.")
|
||||
|
||||
if args.all:
|
||||
selected = all_ids
|
||||
else:
|
||||
if len(all_ids) < args.sample:
|
||||
raise SystemExit("Nicht genug Dokumente für die Stichprobe.")
|
||||
random.seed(args.seed)
|
||||
selected = random.sample(all_ids, args.sample)
|
||||
print(f"Ausgewählt: {len(selected)} Artikel (Seed={args.seed}).")
|
||||
|
||||
print("Hole Artikelinhalte...")
|
||||
documents = mget("aktuell", selected, ["maintitle", "full_content", "date"])
|
||||
|
||||
print("Hole Autorennamen aus 'aktuell_postproc'...")
|
||||
authors_by_id = fetch_authors(selected)
|
||||
with_authors = sum(1 for names in authors_by_id.values() if names)
|
||||
print(
|
||||
f" {len(authors_by_id)}/{len(selected)} Artikel haben einen Postproc-Eintrag, "
|
||||
f"davon {with_authors} mit Namen."
|
||||
)
|
||||
|
||||
os.makedirs(os.path.dirname(args.output) or ".", exist_ok=True)
|
||||
written = 0
|
||||
with open(args.output, "w", encoding="utf-8") as output_file:
|
||||
for document in documents:
|
||||
if not document.get("found"):
|
||||
continue
|
||||
source = document.get("_source", {})
|
||||
news_id = document.get("_id")
|
||||
record = {
|
||||
"_id": news_id,
|
||||
"maintitle": source.get("maintitle"),
|
||||
"full_content": source.get("full_content"),
|
||||
"date": source.get("date"),
|
||||
"authors": authors_by_id.get(news_id, []),
|
||||
}
|
||||
output_file.write(json.dumps(record, ensure_ascii=False) + "\n")
|
||||
written += 1
|
||||
|
||||
print(f"Fertig. {written} Datensätze in '{args.output}'.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,8 @@
|
||||
requests==2.34.2
|
||||
openai==2.41.0
|
||||
python-dotenv==1.0.1
|
||||
tabulate==0.9.0
|
||||
|
||||
# Optional, for the lemma-, Grundform- and NER-based checks.
|
||||
# Without it those checks report "n. v." instead of a number:
|
||||
# pip install spacy==3.8.2 && python -m spacy download de_core_news_sm
|
||||
@@ -0,0 +1,157 @@
|
||||
"""Prints the Layer-1 tables.
|
||||
|
||||
Reads results_<config>.json for every configuration given
|
||||
and emits the compliance table, the descriptive table and the error table.
|
||||
|
||||
Usage:
|
||||
python results.py
|
||||
python results.py --configs neu
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
|
||||
from tabulate import tabulate
|
||||
|
||||
L2_LABELS = {"lemma": "L2, Lemma", "flexion": "L2, Flexion"}
|
||||
|
||||
COMPLIANCE_ROWS = [
|
||||
("Wörtlich im Text ({l2})", "keyword_level", "literal_l2"),
|
||||
(" davon normalisiert (L1)", "keyword_level", "literal_l1"),
|
||||
(" davon exakt (L0)", "keyword_level", "literal_l0"),
|
||||
("Artikel ohne Wörtlichkeitsverstoß", "article_level", "literal_all"),
|
||||
("Höchstens sechs Schlagwörter (roh)", "article_level", "count_ok"),
|
||||
("Keine Duplikate (roh)", "article_level", "no_duplicates"),
|
||||
("Keine Stamm-Redundanz", "article_level", "no_stem_redundancy"),
|
||||
("Keine Personennamen (Autorenfeld)", "keyword_level", "no_person_name_authors"),
|
||||
("Keine Personennamen (NER)", "keyword_level", "no_person_name_ner"),
|
||||
("Keine Datumsangaben", "keyword_level", "no_date"),
|
||||
("Grundform (Nom. Sg.)", "keyword_level", "base_form"),
|
||||
]
|
||||
|
||||
DESCRIPTIVE_ROWS = [
|
||||
("Ausgewertete Artikel", "articles_evaluated"),
|
||||
("Ausgewertete Schlagwörter", "keywords_total"),
|
||||
]
|
||||
|
||||
DESCRIPTIVE_SUB_ROWS = [
|
||||
("Schlagwörter je Artikel (Mittelwert)", "mean_keywords"),
|
||||
("Schlagwörter je Artikel (Median)", "median_keywords"),
|
||||
("Artikel ohne Schlagwörter", "articles_zero_keywords"),
|
||||
("Artikel mit genau sechs", "articles_exactly_six"),
|
||||
("Artikel mit mehr als sechs", "articles_over_six"),
|
||||
]
|
||||
|
||||
|
||||
def format_rate(bucket):
|
||||
"""'x/N (yy,y %)', or a bound when some cases are not determinable.
|
||||
|
||||
Undecidable cases are not dropped from the denominator: doing so would
|
||||
report a flattering rate over exactly the easy cases (without spaCy, only
|
||||
the keywords that already passed L1 are decidable at L2, which would print
|
||||
100 %). With n. v. present the honest statement is an interval — every
|
||||
undetermined case is a pass in the best and a failure in the worst case.
|
||||
"""
|
||||
passed = bucket["pass"]
|
||||
failed = bucket["fail"]
|
||||
not_available = bucket["na"]
|
||||
total = passed + failed + not_available
|
||||
|
||||
if total == 0:
|
||||
return "–"
|
||||
if passed + failed == 0:
|
||||
return f"n. v. ({not_available})"
|
||||
|
||||
if not_available == 0:
|
||||
percentage = f"{100.0 * passed / total:.1f}".replace(".", ",")
|
||||
return f"{passed}/{total} ({percentage} %)"
|
||||
|
||||
lower = f"{100.0 * passed / total:.1f}".replace(".", ",")
|
||||
upper = f"{100.0 * (passed + not_available) / total:.1f}".replace(".", ",")
|
||||
return f"{passed}/{total} ({lower}–{upper} %, {not_available} n. v.)"
|
||||
|
||||
|
||||
def load(config):
|
||||
path = f"results_{config}.json"
|
||||
if not os.path.exists(path):
|
||||
return None
|
||||
with open(path, encoding="utf-8") as results_file:
|
||||
return json.load(results_file)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--configs", nargs="+", default=["alt", "neu"])
|
||||
args = parser.parse_args()
|
||||
|
||||
loaded = [(config, load(config)) for config in args.configs]
|
||||
available = [(config, data) for config, data in loaded if data]
|
||||
missing = [config for config, data in loaded if not data]
|
||||
|
||||
if not available:
|
||||
raise SystemExit("Keine results_<config>.json gefunden. Erst evaluate.py laufen lassen.")
|
||||
if missing:
|
||||
print(f"Hinweis: keine Ergebnisse für {', '.join(missing)} — Spalte entfällt.\n")
|
||||
|
||||
labels = {"alt": "Alt-Konfig", "neu": "Neu-Konfig"}
|
||||
headers = ["Kriterium"] + [labels.get(config, config) for config, _ in available]
|
||||
|
||||
methods = {data.get("l2_method", "lemma") for _, data in available}
|
||||
l2_label = " / ".join(sorted(L2_LABELS.get(method, method) for method in methods))
|
||||
|
||||
rows = []
|
||||
for label, section, key in COMPLIANCE_ROWS:
|
||||
row = [label.format(l2=l2_label)]
|
||||
for _, data in available:
|
||||
bucket = data[section].get(key)
|
||||
row.append(format_rate(bucket) if bucket else "–")
|
||||
rows.append(row)
|
||||
|
||||
determinism_row = ["Reproduzierbarkeit (Jaccard, Wiederholungen)"]
|
||||
for _, data in available:
|
||||
determinism = data.get("determinism")
|
||||
if not determinism:
|
||||
determinism_row.append("–")
|
||||
else:
|
||||
value = f"{determinism['mean_pairwise_jaccard']:.4f}".replace(".", ",")
|
||||
determinism_row.append(f"{value} (n={determinism['articles']})")
|
||||
rows.append(determinism_row)
|
||||
|
||||
print("## Regelkonformität (Layer 1)\n")
|
||||
print(tabulate(rows, headers=headers, tablefmt="orgtbl"))
|
||||
|
||||
print("\n\n## Deskriptive Kennzahlen\n")
|
||||
descriptive_rows = []
|
||||
for label, key in DESCRIPTIVE_ROWS:
|
||||
descriptive_rows.append([label] + [str(data[key]) for _, data in available])
|
||||
for label, key in DESCRIPTIVE_SUB_ROWS:
|
||||
descriptive_rows.append(
|
||||
[label] + [str(data["descriptive"][key]).replace(".", ",") for _, data in available]
|
||||
)
|
||||
print(tabulate(descriptive_rows, headers=headers, tablefmt="orgtbl"))
|
||||
|
||||
error_keys = sorted({key for _, data in available for key in data["errors"]})
|
||||
if error_keys:
|
||||
print("\n\n## Fehlerfälle\n")
|
||||
error_rows = [
|
||||
[key] + [str(data["errors"].get(key, 0)) for _, data in available]
|
||||
for key in error_keys
|
||||
]
|
||||
print(tabulate(error_rows, headers=headers, tablefmt="orgtbl"))
|
||||
|
||||
print("\n\n## Beispiele für Verstöße (für den Fließtext)\n")
|
||||
for config, data in available:
|
||||
for check in ("literal_l2", "no_person_name_authors", "no_date"):
|
||||
found = data["examples"].get(check) or []
|
||||
if not found:
|
||||
continue
|
||||
sample = ", ".join(
|
||||
f"\"{item.get('keyword')}\"" for item in found[:5] if item.get("keyword")
|
||||
)
|
||||
if sample:
|
||||
print(f"- [{config}] {check}: {sample}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"judged": 294,
|
||||
"counts": {
|
||||
"richtig": 177,
|
||||
"akzeptabel": 101,
|
||||
"falsch": 16
|
||||
},
|
||||
"precision_incl_acceptable": 94.6,
|
||||
"precision_strict": 60.2,
|
||||
"essential_total": 125,
|
||||
"essential_hit": 96
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"judged": 294,
|
||||
"counts": {
|
||||
"richtig": 141,
|
||||
"akzeptabel": 146,
|
||||
"falsch": 7
|
||||
},
|
||||
"precision_incl_acceptable": 97.6,
|
||||
"precision_strict": 48.0,
|
||||
"essential_total": 125,
|
||||
"essential_hit": 96
|
||||
}
|
||||
@@ -0,0 +1,731 @@
|
||||
{
|
||||
"config": "neu",
|
||||
"l2_method": "flexion",
|
||||
"articles_evaluated": 500,
|
||||
"keywords_total": 2890,
|
||||
"errors": {},
|
||||
"keyword_level": {
|
||||
"literal_l0": {
|
||||
"pass": 2461,
|
||||
"fail": 429,
|
||||
"na": 0
|
||||
},
|
||||
"literal_l1": {
|
||||
"pass": 2464,
|
||||
"fail": 426,
|
||||
"na": 0
|
||||
},
|
||||
"literal_l2": {
|
||||
"pass": 2796,
|
||||
"fail": 94,
|
||||
"na": 0
|
||||
},
|
||||
"no_person_name_authors": {
|
||||
"pass": 2889,
|
||||
"fail": 1,
|
||||
"na": 0
|
||||
},
|
||||
"no_person_name_ner": {
|
||||
"pass": 0,
|
||||
"fail": 0,
|
||||
"na": 2890
|
||||
},
|
||||
"no_date": {
|
||||
"pass": 2890,
|
||||
"fail": 0,
|
||||
"na": 0
|
||||
},
|
||||
"base_form": {
|
||||
"pass": 0,
|
||||
"fail": 0,
|
||||
"na": 2890
|
||||
}
|
||||
},
|
||||
"article_level": {
|
||||
"count_ok": {
|
||||
"pass": 499,
|
||||
"fail": 1,
|
||||
"na": 0
|
||||
},
|
||||
"no_duplicates": {
|
||||
"pass": 500,
|
||||
"fail": 0,
|
||||
"na": 0
|
||||
},
|
||||
"no_stem_redundancy": {
|
||||
"pass": 464,
|
||||
"fail": 36,
|
||||
"na": 0
|
||||
},
|
||||
"literal_all": {
|
||||
"pass": 415,
|
||||
"fail": 85,
|
||||
"na": 0
|
||||
}
|
||||
},
|
||||
"descriptive": {
|
||||
"mean_keywords": 5.78,
|
||||
"median_keywords": 6.0,
|
||||
"articles_zero_keywords": 0,
|
||||
"articles_exactly_six": 439,
|
||||
"articles_over_six": 1
|
||||
},
|
||||
"determinism": null,
|
||||
"examples": {
|
||||
"literal_l0": [
|
||||
{
|
||||
"_id": "08072015_KatrinKoster_beralleGrenzenhinweg_archiv",
|
||||
"keyword": "internationale Kooperationen"
|
||||
},
|
||||
{
|
||||
"_id": "08072015_KatrinKoster_beralleGrenzenhinweg_archiv",
|
||||
"keyword": "Wissenschaftler"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "Zahnstruktur"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "Nano- und Werkstoffwissenschaft"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "mechanische Messung"
|
||||
},
|
||||
{
|
||||
"_id": "23032007_AnnikaBingmann_VielWindumEnergie_archiv",
|
||||
"keyword": "Hochsee-Windpark"
|
||||
},
|
||||
{
|
||||
"_id": "23032007_AnnikaBingmann_VielWindumEnergie_archiv",
|
||||
"keyword": "bipolares Kabelsystem"
|
||||
},
|
||||
{
|
||||
"_id": "07102019__Stipendium–auchohneEinser-Abi",
|
||||
"keyword": "Förderwerke"
|
||||
},
|
||||
{
|
||||
"_id": "22052017_ClaudiaBraczko_RentnerarbeitimBetrieb",
|
||||
"keyword": "Teilzeit- und Minijobs"
|
||||
},
|
||||
{
|
||||
"_id": "18012005_ChristophLindemann_UnterrichtaufderMbelmesse_archiv",
|
||||
"keyword": "Internationale Möbelmesse IMM Cologne"
|
||||
},
|
||||
{
|
||||
"_id": "18012005_ChristophLindemann_UnterrichtaufderMbelmesse_archiv",
|
||||
"keyword": "Wohnobjekt aus Edelstahl"
|
||||
},
|
||||
{
|
||||
"_id": "20112018_DrAlexandraNießen_NanogroßbeiTumorforschung",
|
||||
"keyword": "Implantat"
|
||||
},
|
||||
{
|
||||
"_id": "10112004_MonikaRgge_DiagnosenfrFrauenundMnner_archiv",
|
||||
"keyword": "kardiovaskuläre Erkrankung"
|
||||
},
|
||||
{
|
||||
"_id": "10112004_MonikaRgge_DiagnosenfrFrauenundMnner_archiv",
|
||||
"keyword": "romantische Poesie"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Süßwassersystem"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Forschungsprojekt"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Sanierungsstrategie"
|
||||
},
|
||||
{
|
||||
"_id": "16112017_UlrikeEichweber_WiewarendieerstenWochen",
|
||||
"keyword": "UDE-Panel"
|
||||
},
|
||||
{
|
||||
"_id": "08102019_UlrikeEichweber_KIinderFinanzwelt",
|
||||
"keyword": "Banken-Symposium"
|
||||
},
|
||||
{
|
||||
"_id": "21092018_BeateKostka_Zweifacherfolgreich",
|
||||
"keyword": "Deutsche Forschungsgemeinschaft"
|
||||
},
|
||||
{
|
||||
"_id": "22122004_UlrikeBohnsack_Neu:VariantenwrterbuchDeutsch_archiv",
|
||||
"keyword": "regionale Ausdrücke"
|
||||
},
|
||||
{
|
||||
"_id": "05042011_BeateHKostka_„JapanbrauchtunsereHilfe!“_archiv",
|
||||
"keyword": "Reaktorunglück von Fukushima"
|
||||
},
|
||||
{
|
||||
"_id": "05042011_BeateHKostka_„JapanbrauchtunsereHilfe!“_archiv",
|
||||
"keyword": "Rotes Kreuz"
|
||||
},
|
||||
{
|
||||
"_id": "25112021_UlrikeEichweber_UDE-DoktorandinimFinale",
|
||||
"keyword": "Deutsche Science Slam Meisterschaft"
|
||||
},
|
||||
{
|
||||
"_id": "25112021_UlrikeEichweber_UDE-DoktorandinimFinale",
|
||||
"keyword": "Wirkstoffkombination"
|
||||
}
|
||||
],
|
||||
"literal_l1": [
|
||||
{
|
||||
"_id": "08072015_KatrinKoster_beralleGrenzenhinweg_archiv",
|
||||
"keyword": "internationale Kooperationen"
|
||||
},
|
||||
{
|
||||
"_id": "08072015_KatrinKoster_beralleGrenzenhinweg_archiv",
|
||||
"keyword": "Wissenschaftler"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "Zahnstruktur"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "Nano- und Werkstoffwissenschaft"
|
||||
},
|
||||
{
|
||||
"_id": "27072012__Damitsieauchmorgennochzubeißen_archiv",
|
||||
"keyword": "mechanische Messung"
|
||||
},
|
||||
{
|
||||
"_id": "23032007_AnnikaBingmann_VielWindumEnergie_archiv",
|
||||
"keyword": "Hochsee-Windpark"
|
||||
},
|
||||
{
|
||||
"_id": "23032007_AnnikaBingmann_VielWindumEnergie_archiv",
|
||||
"keyword": "bipolares Kabelsystem"
|
||||
},
|
||||
{
|
||||
"_id": "07102019__Stipendium–auchohneEinser-Abi",
|
||||
"keyword": "Förderwerke"
|
||||
},
|
||||
{
|
||||
"_id": "18012005_ChristophLindemann_UnterrichtaufderMbelmesse_archiv",
|
||||
"keyword": "Internationale Möbelmesse IMM Cologne"
|
||||
},
|
||||
{
|
||||
"_id": "18012005_ChristophLindemann_UnterrichtaufderMbelmesse_archiv",
|
||||
"keyword": "Wohnobjekt aus Edelstahl"
|
||||
},
|
||||
{
|
||||
"_id": "20112018_DrAlexandraNießen_NanogroßbeiTumorforschung",
|
||||
"keyword": "Implantat"
|
||||
},
|
||||
{
|
||||
"_id": "10112004_MonikaRgge_DiagnosenfrFrauenundMnner_archiv",
|
||||
"keyword": "kardiovaskuläre Erkrankung"
|
||||
},
|
||||
{
|
||||
"_id": "10112004_MonikaRgge_DiagnosenfrFrauenundMnner_archiv",
|
||||
"keyword": "romantische Poesie"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Süßwassersystem"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Forschungsprojekt"
|
||||
},
|
||||
{
|
||||
"_id": "06052015_KatrinKoster_WasunserenGewssernhilft_archiv",
|
||||
"keyword": "Sanierungsstrategie"
|
||||
},
|
||||
{
|
||||
"_id": "16112017_UlrikeEichweber_WiewarendieerstenWochen",
|
||||
"keyword": "UDE-Panel"
|
||||
},
|
||||
{
|
||||
"_id": "08102019_UlrikeEichweber_KIinderFinanzwelt",
|
||||
"keyword": "Banken-Symposium"
|
||||
},
|
||||
{
|
||||
"_id": "21092018_BeateKostka_Zweifacherfolgreich",
|
||||
"keyword": "Deutsche Forschungsgemeinschaft"
|
||||
},
|
||||
{
|
||||
"_id": "22122004_UlrikeBohnsack_Neu:VariantenwrterbuchDeutsch_archiv",
|
||||
"keyword": "regionale Ausdrücke"
|
||||
},
|
||||
{
|
||||
"_id": "05042011_BeateHKostka_„JapanbrauchtunsereHilfe!“_archiv",
|
||||
"keyword": "Reaktorunglück von Fukushima"
|
||||
},
|
||||
{
|
||||
"_id": "05042011_BeateHKostka_„JapanbrauchtunsereHilfe!“_archiv",
|
||||
"keyword": "Rotes Kreuz"
|
||||
},
|
||||
{
|
||||
"_id": "25112021_UlrikeEichweber_UDE-DoktorandinimFinale",
|
||||
"keyword": "Deutsche Science Slam Meisterschaft"
|
||||
},
|
||||
{
|
||||
"_id": "25112021_UlrikeEichweber_UDE-DoktorandinimFinale",
|
||||
"keyword": "Wirkstoffkombination"
|
||||
},
|
||||
{
|
||||
"_id": "27102015__NeuesKonzeptsollPflegeerleichtern_archiv",
|
||||
"keyword": "emotionale Belastung"
|
||||
}
|
||||
],
|
||||
"literal_l2": [
|
||||
{
|
||||
"_id": "23032007_AnnikaBingmann_VielWindumEnergie_archiv",
|
||||
"keyword": "bipolares Kabelsystem"
|
||||
},
|
||||
{
|
||||
"_id": "22122004_UlrikeBohnsack_Neu:VariantenwrterbuchDeutsch_archiv",
|
||||
"keyword": "regionale Ausdrücke"
|
||||
},
|
||||
{
|
||||
"_id": "05042011_BeateHKostka_„JapanbrauchtunsereHilfe!“_archiv",
|
||||
"keyword": "Rotes Kreuz"
|
||||
},
|
||||
{
|
||||
"_id": "29112018_BeateKostka_RelevanteInformationenausDatenbergen",
|
||||
"keyword": "Verkehrsvorhersage"
|
||||
},
|
||||
{
|
||||
"_id": "11092015__JemehrMutationen,destowirksamer_archiv",
|
||||
"keyword": "Wirkmechanismus"
|
||||
},
|
||||
{
|
||||
"_id": "19092006__ZweiFliegenmiteinerKlappeschlagen_archiv",
|
||||
"keyword": "Virtueller Weiterbildungsstudiengang Wirtschaftsinformatik"
|
||||
},
|
||||
{
|
||||
"_id": "11042005_UlrikeBohnsack_GroßeFestveranstaltunginBerlin_archiv",
|
||||
"keyword": "Linguistik"
|
||||
},
|
||||
{
|
||||
"_id": "20032026_DrAlexandraNießen_GuteZusammenarbeitmitKI",
|
||||
"keyword": "Arbeitsplatz"
|
||||
},
|
||||
{
|
||||
"_id": "14092021_UlrikeEichweber_IFWW-Frderpreis",
|
||||
"keyword": "wissenschaftlicher Nachwuchs"
|
||||
},
|
||||
{
|
||||
"_id": "14092021_UlrikeEichweber_IFWW-Frderpreis",
|
||||
"keyword": "Trinkwasser"
|
||||
},
|
||||
{
|
||||
"_id": "14092021_UlrikeEichweber_IFWW-Frderpreis",
|
||||
"keyword": "Abwasser"
|
||||
},
|
||||
{
|
||||
"_id": "13122023_DrAlexandraNießen_WasistanderUnilos",
|
||||
"keyword": "Smart City"
|
||||
},
|
||||
{
|
||||
"_id": "21052024_CathrinBecker_Wannmanwenwieanspricht",
|
||||
"keyword": "Spender:in"
|
||||
},
|
||||
{
|
||||
"_id": "05042024_CathrinBecker_10JahreSpitzenfrderung",
|
||||
"keyword": "Leitthema"
|
||||
},
|
||||
{
|
||||
"_id": "02122019_DrAlexandraNießen_EuropaweiterAustausch",
|
||||
"keyword": "Akademisches Auslandsamt"
|
||||
},
|
||||
{
|
||||
"_id": "16062025_UlrikeEichweber_Dalberg-PreisfrtransdisziplinreNachwuchsforschung",
|
||||
"keyword": "Geisteswissenschaften"
|
||||
},
|
||||
{
|
||||
"_id": "09032017_UlrikeBohnsack_DieAngstvormScheitern",
|
||||
"keyword": "Risiko"
|
||||
},
|
||||
{
|
||||
"_id": "08092020_DrAlexandraNießen_Cooperatingrobots",
|
||||
"keyword": "remote-controlled robot arm"
|
||||
},
|
||||
{
|
||||
"_id": "27072021_UlrikeEichweber_LehrenziehenausderPandemie",
|
||||
"keyword": "Lehrkraft"
|
||||
},
|
||||
{
|
||||
"_id": "06112019_DrAlexandraNießen_Typischdeutsch",
|
||||
"keyword": "Kulturwissenschaftliches Institut"
|
||||
},
|
||||
{
|
||||
"_id": "03062019_UlrikeEichweber_EuropischekonomeninGenua",
|
||||
"keyword": "Vortrag"
|
||||
},
|
||||
{
|
||||
"_id": "12102012__Studienstartfr25TeilnehmerInnen_archiv",
|
||||
"keyword": "Stipendium"
|
||||
},
|
||||
{
|
||||
"_id": "12112007_JuliaHarzendorf_LeistungenfrsStudiumanrechnen_archiv",
|
||||
"keyword": "Logistikstudiengang"
|
||||
},
|
||||
{
|
||||
"_id": "16082022_ThomasWittek_ErsterSchnappschusseinesScheibenwinds",
|
||||
"keyword": "Schwarzes Loch"
|
||||
},
|
||||
{
|
||||
"_id": "16082022_ThomasWittek_ErsterSchnappschusseinesScheibenwinds",
|
||||
"keyword": "massereicher Stern"
|
||||
}
|
||||
],
|
||||
"no_person_name_authors": [
|
||||
{
|
||||
"_id": "01092017_CathrinBecker_AlleParteienimberblick",
|
||||
"keyword": "Politikwissenschaftler"
|
||||
}
|
||||
],
|
||||
"no_person_name_ner": [],
|
||||
"no_date": [],
|
||||
"base_form": [],
|
||||
"count_ok": [
|
||||
{
|
||||
"_id": "30042019_UlrikeEichweber_FrwenigerCO",
|
||||
"keywords": [
|
||||
"Stadtradeln",
|
||||
"Klima-Bündnisses e.V.",
|
||||
"CO2",
|
||||
"Radler",
|
||||
"Kilometer",
|
||||
"Duisburg",
|
||||
"Essen"
|
||||
]
|
||||
}
|
||||
],
|
||||
"no_duplicates": [],
|
||||
"no_stem_redundancy": [
|
||||
{
|
||||
"_id": "14022003_MonikaRgge_KonzertinderKreuzeskirche_archiv",
|
||||
"keywords": [
|
||||
"Essener Studentenorchester",
|
||||
"Konzert",
|
||||
"Orchester",
|
||||
"Studenten",
|
||||
"Folkwang-Hochschule Essen",
|
||||
"Musizieren"
|
||||
],
|
||||
"pairs": [
|
||||
["Orchester", "Essener Studentenorchester"],
|
||||
["Studenten", "Essener Studentenorchester"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "22052017_ClaudiaBraczko_RentnerarbeitimBetrieb",
|
||||
"keywords": [
|
||||
"Rentnerarbeit im Betrieb",
|
||||
"Fachkräftemangel",
|
||||
"Teilzeit- und Minijobs",
|
||||
"Wissensverlust",
|
||||
"flexibler Personalpuffer",
|
||||
"Rentner"
|
||||
],
|
||||
"pairs": [["Rentner", "Rentnerarbeit im Betrieb"]]
|
||||
},
|
||||
{
|
||||
"_id": "22122004_UlrikeBohnsack_Neu:VariantenwrterbuchDeutsch_archiv",
|
||||
"keywords": [
|
||||
"Variantenwörterbuch",
|
||||
"Standardsprache",
|
||||
"Linguistik",
|
||||
"Soziolinguistik",
|
||||
"regionale Ausdrücke",
|
||||
"Grammatik"
|
||||
],
|
||||
"pairs": [["Linguistik", "Soziolinguistik"]]
|
||||
},
|
||||
{
|
||||
"_id": "19052009__InallenStudienphasengutberaten_archiv",
|
||||
"keywords": [
|
||||
"Mentoring-System",
|
||||
"Studierendenbetreuung",
|
||||
"Studierende",
|
||||
"Fachbereichen",
|
||||
"persönliche Beratung",
|
||||
"Studienabbrüche"
|
||||
],
|
||||
"pairs": [["Studierende", "Studierendenbetreuung"]]
|
||||
},
|
||||
{
|
||||
"_id": "20112019_ChristineHarrell_EinNichtsmitgroßerWirkung",
|
||||
"keywords": [
|
||||
"chronische Rückenschmerzen",
|
||||
"Open-Label Placebos",
|
||||
"Schmerz",
|
||||
"Beweglichkeit",
|
||||
"klinische Neurowissenschaft",
|
||||
"Schmerztherapie"
|
||||
],
|
||||
"pairs": [
|
||||
["Schmerz", "chronische Rückenschmerzen"],
|
||||
["Schmerz", "Schmerztherapie"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "17042018_BeateKostka_FitfrdieDemokratie",
|
||||
"keywords": [
|
||||
"Demokratie",
|
||||
"Jugendliche",
|
||||
"politische und zivilgesellschaftliche Bildung",
|
||||
"politisches Wissen",
|
||||
"Elternhaus",
|
||||
"demokratiekompetent"
|
||||
],
|
||||
"pairs": [["Demokratie", "demokratiekompetent"]]
|
||||
},
|
||||
{
|
||||
"_id": "21052024_CathrinBecker_Wannmanwenwieanspricht",
|
||||
"keywords": [
|
||||
"Stammzelle",
|
||||
"Blut",
|
||||
"Spendenbereitschaft",
|
||||
"Spender:in",
|
||||
"Information",
|
||||
"Blutkrebs"
|
||||
],
|
||||
"pairs": [["Blut", "Blutkrebs"]]
|
||||
},
|
||||
{
|
||||
"_id": "27112014__DerFallBeloMonte_archiv",
|
||||
"keywords": [
|
||||
"Menschrechte",
|
||||
"Konflikt",
|
||||
"Ureinwohner",
|
||||
"Belo Monte-Wasserkraftwerk",
|
||||
"Amazonasgebiet",
|
||||
"Grundlegende politische Konflikte"
|
||||
],
|
||||
"pairs": [["Konflikt", "Grundlegende politische Konflikte"]]
|
||||
},
|
||||
{
|
||||
"_id": "26062017_CathrinBecker_PionierforschungzuNanopartikeln",
|
||||
"keywords": [
|
||||
"Nanopartikel",
|
||||
"Pionierforschung",
|
||||
"lasergenerierte Nanoteilchen",
|
||||
"Biomedizin- und Energietechnik",
|
||||
"kontinuierlichen laserbasierten Nanopartikelsynthese",
|
||||
"Habilitationsschrift"
|
||||
],
|
||||
"pairs": [
|
||||
[
|
||||
"Nanopartikel",
|
||||
"kontinuierlichen laserbasierten Nanopartikelsynthese"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "18122023__Pathtosustainablehydrogen",
|
||||
"keywords": [
|
||||
"green hydrogen",
|
||||
"electrocatalysts",
|
||||
"oxygen evolution reaction",
|
||||
"surface transformation",
|
||||
"perovskite",
|
||||
"crystal facet-dependent surface transformation"
|
||||
],
|
||||
"pairs": [
|
||||
[
|
||||
"surface transformation",
|
||||
"crystal facet-dependent surface transformation"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "01072014_AlexandraNießen_MathematikalsLebenshilfe_archiv",
|
||||
"keywords": [
|
||||
"Mathematik",
|
||||
"Problemlösen",
|
||||
"Didaktik",
|
||||
"Techniken und Strategien des Problemlösens",
|
||||
"Heurismen",
|
||||
"Learning the Science of Education"
|
||||
],
|
||||
"pairs": [
|
||||
["Problemlösen", "Techniken und Strategien des Problemlösens"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "02052017_ManuelaMnch_Berufungen-Mai2017",
|
||||
"keywords": [
|
||||
"Professur",
|
||||
"Juniorprofessur",
|
||||
"Medizinische Onkologie mit Schwerpunkt Gastrointestinale Onkologie",
|
||||
"Informatik",
|
||||
"Experimentelle Physik",
|
||||
"Fakultät für Medizin"
|
||||
],
|
||||
"pairs": [["Professur", "Juniorprofessur"]]
|
||||
},
|
||||
{
|
||||
"_id": "16112011_CarmenTomlik_ZumSchutzezndenderIdeen_archiv",
|
||||
"keywords": [
|
||||
"PatentScouts",
|
||||
"Erfinderberatung",
|
||||
"Forschungsergebnis",
|
||||
"Patent",
|
||||
"Drittmittel",
|
||||
"Biomedizin"
|
||||
],
|
||||
"pairs": [["Patent", "PatentScouts"]]
|
||||
},
|
||||
{
|
||||
"_id": "27112020_DrAlexandraNießen_SpracheverleihtFlgel",
|
||||
"keywords": [
|
||||
"Mehrsprachigkeit",
|
||||
"gesellschaftliche Teilhabe",
|
||||
"Arbeitsmarkt",
|
||||
"Deutsch als Zweitsprache",
|
||||
"Fremdsprachen",
|
||||
"Sprache"
|
||||
],
|
||||
"pairs": [
|
||||
["Sprache", "Deutsch als Zweitsprache"],
|
||||
["Sprache", "Fremdsprachen"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "02112009__NochzehnStipendienzuvergeben_archiv",
|
||||
"keywords": [
|
||||
"Stipendien",
|
||||
"Erstsemester",
|
||||
"Migrationshintergrund",
|
||||
"NRW-Stipendienprogramm",
|
||||
"Diversity Management"
|
||||
],
|
||||
"pairs": [["Stipendien", "NRW-Stipendienprogramm"]]
|
||||
},
|
||||
{
|
||||
"_id": "10082005_ChristophLindemann_1000LernmodulefrdieMedizin_archiv",
|
||||
"keywords": [
|
||||
"Learning Resource Server Medizin",
|
||||
"Lernmodul",
|
||||
"Medizin",
|
||||
"Aus-, Fort- und Weiterbildung",
|
||||
"Datenbank",
|
||||
"Internet-Portal"
|
||||
],
|
||||
"pairs": [["Medizin", "Learning Resource Server Medizin"]]
|
||||
},
|
||||
{
|
||||
"_id": "24092003_DanielaEndrulat_TrauerumlangjhrigenKlinikleiter_archiv",
|
||||
"keywords": [
|
||||
"Unfallchirurgie",
|
||||
"Klinik und Poliklinik für Unfallchirurgie",
|
||||
"Präklinische Unfallrettung",
|
||||
"Klinische Schockforschung",
|
||||
"Tumor-Chirurgie",
|
||||
"Ausbildung von Notarzt"
|
||||
],
|
||||
"pairs": [
|
||||
["Unfallchirurgie", "Klinik und Poliklinik für Unfallchirurgie"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "08042021_UlrikeEichweber_UDE-Lehrpreis",
|
||||
"keywords": [
|
||||
"Duisburg-Essener Lehrpreis",
|
||||
"Lehrpreis",
|
||||
"Fakultäten",
|
||||
"Fachschaftsräte",
|
||||
"Kandidat",
|
||||
"Team"
|
||||
],
|
||||
"pairs": [["Lehrpreis", "Duisburg-Essener Lehrpreis"]]
|
||||
},
|
||||
{
|
||||
"_id": "25052011__NickReillybesuchtUniversitt_archiv",
|
||||
"keywords": [
|
||||
"Elektromobilität",
|
||||
"Automobiltechnik",
|
||||
"Brennstoffzelle",
|
||||
"Automobilindustrie",
|
||||
"Zentrum für BrennstoffzellenTechnik",
|
||||
"Nano-Material"
|
||||
],
|
||||
"pairs": [["Brennstoffzelle", "Zentrum für BrennstoffzellenTechnik"]]
|
||||
},
|
||||
{
|
||||
"_id": "13102005_MonikaRgge_VortragberDemenzen_archiv",
|
||||
"keywords": [
|
||||
"Demenzen",
|
||||
"Früherkennung und Diagnostik von Demenzen",
|
||||
"Klinik für Psychiatrie und Psychotherapie",
|
||||
"Essener Universitätsklinikum"
|
||||
],
|
||||
"pairs": [["Demenzen", "Früherkennung und Diagnostik von Demenzen"]]
|
||||
},
|
||||
{
|
||||
"_id": "19022026__MathematikldtzumTagderoffenenTr",
|
||||
"keywords": [
|
||||
"Mathematik",
|
||||
"Tag der offenen Tür",
|
||||
"Mathematikstudium",
|
||||
"Schnuppervorlesung",
|
||||
"Quantencomputer",
|
||||
"Brettspiel"
|
||||
],
|
||||
"pairs": [["Mathematik", "Mathematikstudium"]]
|
||||
},
|
||||
{
|
||||
"_id": "18122012__BestmglicheHeilung_archiv",
|
||||
"keywords": [
|
||||
"Krebs",
|
||||
"Translationale Krebsforschung",
|
||||
"Therapie",
|
||||
"Diagnostik",
|
||||
"Immunsystem",
|
||||
"individualisierte Therapie"
|
||||
],
|
||||
"pairs": [
|
||||
["Krebs", "Translationale Krebsforschung"],
|
||||
["Therapie", "individualisierte Therapie"]
|
||||
]
|
||||
},
|
||||
{
|
||||
"_id": "28082025_DrAlexandraNießen_Wissenshungerkanngestilltwerden",
|
||||
"keywords": [
|
||||
"Universität Duisburg-Essen",
|
||||
"Gasthörer",
|
||||
"Lehrprogramm",
|
||||
"Gasthörerverzeichnis",
|
||||
"Einschreibung",
|
||||
"Smart Farming"
|
||||
],
|
||||
"pairs": [["Gasthörer", "Gasthörerverzeichnis"]]
|
||||
},
|
||||
{
|
||||
"_id": "15102019_UlrikeEichweber_Einblickein30JahreForschung",
|
||||
"keywords": [
|
||||
"China",
|
||||
"Forschung",
|
||||
"Vorlesungsreihe",
|
||||
"China as a Developmental State",
|
||||
"Theory-based Researcg and Fieldwork",
|
||||
"Chinese Party State"
|
||||
],
|
||||
"pairs": [["China", "China as a Developmental State"]]
|
||||
},
|
||||
{
|
||||
"_id": "20062007_BeateKostka_DatenbertragungmitLicht_archiv",
|
||||
"keywords": [
|
||||
"Datenübertragung mit Licht",
|
||||
"Optoelektronik",
|
||||
"Laser",
|
||||
"Glasfaserkabel",
|
||||
"Halbleiter-Laser",
|
||||
"Medizintechnik"
|
||||
],
|
||||
"pairs": [["Laser", "Halbleiter-Laser"]]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
+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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import logging
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(message)s")
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -18,4 +18,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy the job code.
|
||||
COPY background-jobs/app/ ./
|
||||
|
||||
# Keyword extraction contract shared with the service (inse.news.logic).
|
||||
COPY service/src/main/inse/news/keyword_extraction.py ./keyword_extraction.py
|
||||
|
||||
COPY service/scripts/ ./service/scripts/
|
||||
|
||||
@@ -14,6 +14,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY background-jobs/app/ ./
|
||||
|
||||
# Keyword extraction contract shared with the service (inse.news.logic).
|
||||
COPY service/src/main/inse/news/keyword_extraction.py ./keyword_extraction.py
|
||||
|
||||
# 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
map_news_topics.py — Map news keywords to OpenAlex topics.
|
||||
|
||||
@@ -37,7 +37,7 @@ import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from datetime import datetime, timezone
|
||||
from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
@@ -121,7 +121,7 @@ async def fetch_source_entries(cluster: str, max_docs: int | None) -> dict[str,
|
||||
|
||||
|
||||
async def run(args: argparse.Namespace) -> None:
|
||||
built_at = datetime.now(timezone.utc).isoformat()
|
||||
built_at = datetime.now(UTC).isoformat()
|
||||
model_name = os.getenv("SENTENCE_TRANSFORMERS_MODEL_NAME")
|
||||
|
||||
await base.check_backend(args.api_base_url)
|
||||
|
||||
@@ -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,10 +1,10 @@
|
||||
import subprocess
|
||||
import sys
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
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__)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
import os
|
||||
import json
|
||||
import time
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from urllib.parse import quote
|
||||
|
||||
import requests
|
||||
|
||||
@@ -0,0 +1,465 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Live runtime benchmark for the frozen Author→Patent pipeline.
|
||||
|
||||
Measures stage timings and query counts. Does not change decision logic.
|
||||
Does not write gold or FINAL evaluation artifacts.
|
||||
|
||||
python scripts/patents/benchmark_author_patent_performance.py --phase before
|
||||
python scripts/patents/benchmark_author_patent_performance.py --phase after
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import csv
|
||||
import json
|
||||
import statistics
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
SCRIPT_DIR = Path(__file__).resolve().parent
|
||||
SERVICE_SRC = SCRIPT_DIR.parent.parent / "src" / "main"
|
||||
load_dotenv(SERVICE_SRC / "inse" / ".env")
|
||||
sys.path.insert(0, str(SERVICE_SRC))
|
||||
|
||||
from inse.patents.authors.final_ambiguous_author_identity_guard import ( # noqa: E402
|
||||
get_identity_guard_query_stats,
|
||||
reset_identity_guard_query_stats,
|
||||
)
|
||||
from inse.patents.authors.logic import get_patents_by_author_id # noqa: E402
|
||||
from inse.patents.authors.pipeline_perf import ( # noqa: E402
|
||||
capture_pipeline_perf,
|
||||
current_perf,
|
||||
)
|
||||
from inse.patents.common.parsing import patent_map_key # noqa: E402
|
||||
|
||||
OUT_DIR = SCRIPT_DIR / "data" / "author_patent_evaluation" / "performance"
|
||||
RUNS_PER_AUTHOR = 3
|
||||
|
||||
# Known live cases from the frozen identity-guard evaluation, plus existing
|
||||
# experiment_1 authors covering unique / few / many-candidate profiles.
|
||||
BENCHMARK_AUTHORS: tuple[tuple[str, str, str], ...] = (
|
||||
("A5111380960", "Thomas Kaiser A5111380960", "ambiguous_many"),
|
||||
("A5071644998", "Thomas Kaiser A5071644998", "ambiguous_few"),
|
||||
("A5034365278", "Dirk Schadendorf", "ambiguous"),
|
||||
("A5100603203", "Christian Weber", "ambiguous"),
|
||||
("A5100373745", "Xiaohong Chen", "ambiguous_many_candidates"),
|
||||
("A5023982706", "Richard Smith", "ambiguous_many_candidates"),
|
||||
("A5023752156", "Albert Sickmann", "unique_or_few"),
|
||||
("A5011059806", "James Fulcher", "few_patents"),
|
||||
)
|
||||
|
||||
STAGE_KEYS = (
|
||||
"author_load",
|
||||
"patent_search",
|
||||
"name_matching",
|
||||
"family_expansion",
|
||||
"classification_enrichment",
|
||||
"production_filter",
|
||||
"semantic_fallback",
|
||||
"identity_coauthor_loading",
|
||||
"identity_institution_loading",
|
||||
"identity_shared_works",
|
||||
"final_identity_guard",
|
||||
"response_build",
|
||||
"total",
|
||||
)
|
||||
|
||||
QUERY_KEYS = (
|
||||
"openalex",
|
||||
"elasticsearch",
|
||||
"epo",
|
||||
"uspto",
|
||||
"institution_alias",
|
||||
"coauthor",
|
||||
"shared_work",
|
||||
"family",
|
||||
)
|
||||
|
||||
|
||||
def _index_name(index: Any) -> str:
|
||||
if isinstance(index, (list, tuple)):
|
||||
return ",".join(str(item) for item in index)
|
||||
return str(index or "")
|
||||
|
||||
|
||||
def _classify_openalex_query(index: Any, body: dict | None, query: dict | None) -> str:
|
||||
name = _index_name(index).casefold()
|
||||
payload = str(body or query or "")
|
||||
if "institution" in name:
|
||||
return "institution_alias"
|
||||
if "works" in name:
|
||||
if "match_phrase" in payload and "authorships.author.display_name" in payload:
|
||||
return "shared_work"
|
||||
if "authorships" in payload:
|
||||
return "coauthor"
|
||||
return "openalex"
|
||||
if "author" in name:
|
||||
return "openalex"
|
||||
return "elasticsearch"
|
||||
|
||||
|
||||
def _classify_patent_index(index: str, payload: dict | None) -> str:
|
||||
name = (index or "").casefold()
|
||||
query = str((payload or {}).get("query") or "")
|
||||
if "epo" in name:
|
||||
if "application_number" in query:
|
||||
return "family"
|
||||
return "epo"
|
||||
if "uspto" in name:
|
||||
return "uspto"
|
||||
if "ipc" in name:
|
||||
return "elasticsearch"
|
||||
if "patents_openalex" in name:
|
||||
return "elasticsearch"
|
||||
return "elasticsearch"
|
||||
|
||||
|
||||
def install_query_hooks() -> None:
|
||||
from inse.integrations import elasticsearch as es
|
||||
from inse.patents.common import elastic_search_client as patent_es
|
||||
from inse.patents.patents_openalex_keywords import client as keywords_client
|
||||
|
||||
orig_search = es.search
|
||||
orig_count = es.count
|
||||
orig_get = es.get
|
||||
orig_patent_search = patent_es.BasePatentSearchClient._search
|
||||
orig_lookup_ids = keywords_client.PatentsOpenAlexKeywordsClient.lookup_ids
|
||||
|
||||
async def counted_search(*args: Any, **kwargs: Any):
|
||||
perf = current_perf()
|
||||
if perf is not None:
|
||||
index = kwargs.get("index")
|
||||
if index is None and args:
|
||||
index = args[0]
|
||||
kind = _classify_openalex_query(
|
||||
index, kwargs.get("body"), kwargs.get("query")
|
||||
)
|
||||
perf.add_query(kind)
|
||||
if kind != "elasticsearch":
|
||||
perf.add_query("elasticsearch")
|
||||
if kind in {"coauthor", "shared_work", "institution_alias"}:
|
||||
perf.add_query("openalex")
|
||||
return await orig_search(*args, **kwargs)
|
||||
|
||||
async def counted_count(*args: Any, **kwargs: Any):
|
||||
perf = current_perf()
|
||||
if perf is not None:
|
||||
perf.add_query("openalex")
|
||||
perf.add_query("elasticsearch")
|
||||
return await orig_count(*args, **kwargs)
|
||||
|
||||
async def counted_get(*args: Any, **kwargs: Any):
|
||||
perf = current_perf()
|
||||
if perf is not None:
|
||||
perf.add_query("openalex")
|
||||
perf.add_query("elasticsearch")
|
||||
return await orig_get(*args, **kwargs)
|
||||
|
||||
async def counted_patent_search(self, index: str, payload: dict):
|
||||
perf = current_perf()
|
||||
if perf is not None:
|
||||
kind = _classify_patent_index(index, payload)
|
||||
perf.add_query(kind)
|
||||
if kind == "family":
|
||||
perf.add_query("epo")
|
||||
if kind not in {"elasticsearch"}:
|
||||
perf.add_query("elasticsearch")
|
||||
return await orig_patent_search(self, index, payload)
|
||||
|
||||
async def counted_lookup_ids(self, doc_ids: list[str]):
|
||||
perf = current_perf()
|
||||
if perf is not None:
|
||||
unique_n = len(list(dict.fromkeys(doc_ids)))
|
||||
batches = (unique_n + 999) // 1000 if unique_n else 0
|
||||
perf.add_query("elasticsearch", max(batches, 1) if unique_n else 0)
|
||||
return await orig_lookup_ids(self, doc_ids)
|
||||
|
||||
es.search = counted_search
|
||||
es.count = counted_count
|
||||
es.get = counted_get
|
||||
patent_es.BasePatentSearchClient._search = counted_patent_search
|
||||
keywords_client.PatentsOpenAlexKeywordsClient.lookup_ids = counted_lookup_ids
|
||||
|
||||
|
||||
def _snapshot(response) -> dict[str, Any]:
|
||||
patents = list(response.patents or [])
|
||||
return {
|
||||
"author_id": response.author_id,
|
||||
"author_name": response.author_name,
|
||||
"patent_count": int(response.patent_count or 0),
|
||||
"patent_ids": [patent.patent_id for patent in patents],
|
||||
"patent_map_keys": [patent_map_key(patent) for patent in patents],
|
||||
}
|
||||
|
||||
|
||||
async def run_once(author_id: str) -> dict[str, Any]:
|
||||
reset_identity_guard_query_stats()
|
||||
with capture_pipeline_perf() as perf:
|
||||
response = await get_patents_by_author_id(author_id)
|
||||
snapshot = _snapshot(response)
|
||||
snapshot["timings_ms"] = {key: float(perf.timings_ms.get(key, 0.0)) for key in STAGE_KEYS}
|
||||
snapshot["queries"] = {key: int(perf.queries.get(key, 0)) for key in QUERY_KEYS}
|
||||
snapshot["identity_query_stats"] = get_identity_guard_query_stats()
|
||||
snapshot["raw_query_kinds"] = dict(perf.queries)
|
||||
return snapshot
|
||||
|
||||
|
||||
def _median(values: list[float]) -> float:
|
||||
if not values:
|
||||
return 0.0
|
||||
return float(statistics.median(values))
|
||||
|
||||
|
||||
def _summarize_author(label: str, author_id: str, note: str, runs: list[dict[str, Any]]) -> dict[str, Any]:
|
||||
totals = [float(run["timings_ms"]["total"]) for run in runs]
|
||||
query_avgs = {
|
||||
key: sum(int(run["queries"].get(key, 0)) for run in runs) / len(runs)
|
||||
for key in QUERY_KEYS
|
||||
}
|
||||
stage_medians = {
|
||||
key: _median([float(run["timings_ms"].get(key, 0.0)) for run in runs])
|
||||
for key in STAGE_KEYS
|
||||
}
|
||||
first = runs[0]
|
||||
identical_ids = all(run["patent_ids"] == first["patent_ids"] for run in runs)
|
||||
return {
|
||||
"author_id": author_id,
|
||||
"label": label,
|
||||
"note": note,
|
||||
"runs": len(runs),
|
||||
"total_ms": {
|
||||
"min": min(totals) if totals else 0.0,
|
||||
"max": max(totals) if totals else 0.0,
|
||||
"median": _median(totals),
|
||||
"values": totals,
|
||||
},
|
||||
"stage_median_ms": stage_medians,
|
||||
"query_average": query_avgs,
|
||||
"patent_count": first["patent_count"],
|
||||
"patent_ids": first["patent_ids"],
|
||||
"patent_map_keys": first["patent_map_keys"],
|
||||
"ids_stable_across_runs": identical_ids,
|
||||
"run_details": [
|
||||
{
|
||||
"timings_ms": run["timings_ms"],
|
||||
"queries": run["queries"],
|
||||
"identity_query_stats": run["identity_query_stats"],
|
||||
"patent_count": run["patent_count"],
|
||||
}
|
||||
for run in runs
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
async def warmup_semantic_model() -> dict[str, Any]:
|
||||
started = time.perf_counter()
|
||||
from inse.util import get_model
|
||||
|
||||
model = get_model()
|
||||
model.encode(
|
||||
["query: warmup semantic topic text"],
|
||||
batch_size=8,
|
||||
show_progress_bar=False,
|
||||
convert_to_numpy=True,
|
||||
normalize_embeddings=True,
|
||||
)
|
||||
elapsed_ms = (time.perf_counter() - started) * 1000.0
|
||||
return {"warmup": True, "elapsed_ms": elapsed_ms, "model": "intfloat/multilingual-e5-base"}
|
||||
|
||||
|
||||
async def run_benchmark(phase: str, authors: list[tuple[str, str, str]]) -> dict[str, Any]:
|
||||
install_query_hooks()
|
||||
print(f"phase={phase} authors={len(authors)} runs_per_author={RUNS_PER_AUTHOR}", flush=True)
|
||||
warmup = await warmup_semantic_model()
|
||||
print(f"warmup_semantic_model_ms={warmup['elapsed_ms']:.1f}", flush=True)
|
||||
|
||||
author_rows = []
|
||||
for author_id, label, note in authors:
|
||||
print(f"\n=== {label} ({author_id}) ===", flush=True)
|
||||
runs = []
|
||||
for index in range(1, RUNS_PER_AUTHOR + 1):
|
||||
started = time.perf_counter()
|
||||
try:
|
||||
result = await run_once(author_id)
|
||||
except Exception as exc:
|
||||
elapsed_ms = (time.perf_counter() - started) * 1000.0
|
||||
print(f" run {index} FAILED after {elapsed_ms:.0f}ms: {exc}", flush=True)
|
||||
raise
|
||||
wall_ms = (time.perf_counter() - started) * 1000.0
|
||||
result["timings_ms"]["total"] = float(result["timings_ms"].get("total") or wall_ms)
|
||||
runs.append(result)
|
||||
print(
|
||||
f" run {index}: {result['timings_ms']['total']:.0f}ms "
|
||||
f"patents={result['patent_count']} "
|
||||
f"epo={result['queries']['epo']} family={result['queries']['family']} "
|
||||
f"coauthor={result['queries']['coauthor']} "
|
||||
f"shared={result['queries']['shared_work']} "
|
||||
f"alias={result['queries']['institution_alias']}",
|
||||
flush=True,
|
||||
)
|
||||
row = _summarize_author(label, author_id, note, runs)
|
||||
author_rows.append(row)
|
||||
print(
|
||||
f" median={row['total_ms']['median']:.0f}ms "
|
||||
f"min={row['total_ms']['min']:.0f} max={row['total_ms']['max']:.0f}",
|
||||
flush=True,
|
||||
)
|
||||
|
||||
payload = {
|
||||
"phase": phase,
|
||||
"warmup": warmup,
|
||||
"runs_per_author": RUNS_PER_AUTHOR,
|
||||
"authors": author_rows,
|
||||
}
|
||||
return payload
|
||||
|
||||
|
||||
def _write_json(path: Path, payload: dict[str, Any]) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
path.write_text(json.dumps(payload, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
|
||||
|
||||
|
||||
def _write_csv(path: Path, rows: list[dict[str, Any]], fieldnames: list[str]) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
with path.open("w", encoding="utf-8", newline="") as handle:
|
||||
writer = csv.DictWriter(handle, fieldnames=fieldnames)
|
||||
writer.writeheader()
|
||||
for row in rows:
|
||||
writer.writerow(row)
|
||||
|
||||
|
||||
def write_phase_artifacts(payload: dict[str, Any]) -> None:
|
||||
phase = payload["phase"]
|
||||
OUT_DIR.mkdir(parents=True, exist_ok=True)
|
||||
_write_json(OUT_DIR / f"benchmark_{phase}.json", payload)
|
||||
query_rows = []
|
||||
summary_rows = []
|
||||
for author in payload["authors"]:
|
||||
query_rows.append(
|
||||
{
|
||||
"phase": phase,
|
||||
"author_id": author["author_id"],
|
||||
"label": author["label"],
|
||||
**{f"avg_{key}": f"{author['query_average'].get(key, 0):.2f}" for key in QUERY_KEYS},
|
||||
}
|
||||
)
|
||||
summary_rows.append(
|
||||
{
|
||||
"phase": phase,
|
||||
"author_id": author["author_id"],
|
||||
"label": author["label"],
|
||||
"median_ms": f"{author['total_ms']['median']:.1f}",
|
||||
"min_ms": f"{author['total_ms']['min']:.1f}",
|
||||
"max_ms": f"{author['total_ms']['max']:.1f}",
|
||||
"patent_count": author["patent_count"],
|
||||
**{
|
||||
f"median_{key}_ms": f"{author['stage_median_ms'].get(key, 0):.1f}"
|
||||
for key in STAGE_KEYS
|
||||
if key != "total"
|
||||
},
|
||||
}
|
||||
)
|
||||
_write_csv(
|
||||
OUT_DIR / f"query_counts_{phase}.csv",
|
||||
query_rows,
|
||||
["phase", "author_id", "label", *[f"avg_{key}" for key in QUERY_KEYS]],
|
||||
)
|
||||
_write_csv(
|
||||
OUT_DIR / f"performance_summary_{phase}.csv",
|
||||
summary_rows,
|
||||
[
|
||||
"phase",
|
||||
"author_id",
|
||||
"label",
|
||||
"median_ms",
|
||||
"min_ms",
|
||||
"max_ms",
|
||||
"patent_count",
|
||||
*[f"median_{key}_ms" for key in STAGE_KEYS if key != "total"],
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
def compare_phases(before: dict[str, Any], after: dict[str, Any]) -> dict[str, Any]:
|
||||
before_by_id = {row["author_id"]: row for row in before["authors"]}
|
||||
after_by_id = {row["author_id"]: row for row in after["authors"]}
|
||||
rows = []
|
||||
ids_ok = True
|
||||
counts_ok = True
|
||||
for author_id, before_row in before_by_id.items():
|
||||
after_row = after_by_id.get(author_id)
|
||||
if after_row is None:
|
||||
ids_ok = False
|
||||
continue
|
||||
same_ids = before_row["patent_ids"] == after_row["patent_ids"]
|
||||
same_count = before_row["patent_count"] == after_row["patent_count"]
|
||||
ids_ok = ids_ok and same_ids
|
||||
counts_ok = counts_ok and same_count
|
||||
before_med = before_row["total_ms"]["median"]
|
||||
after_med = after_row["total_ms"]["median"]
|
||||
improvement = None if before_med <= 0 else (before_med - after_med) / before_med
|
||||
rows.append(
|
||||
{
|
||||
"author_id": author_id,
|
||||
"label": before_row["label"],
|
||||
"before_median_ms": before_med,
|
||||
"after_median_ms": after_med,
|
||||
"improvement": improvement,
|
||||
"patent_ids_identical": same_ids,
|
||||
"counts_identical": same_count,
|
||||
"before_query_average": before_row["query_average"],
|
||||
"after_query_average": after_row["query_average"],
|
||||
}
|
||||
)
|
||||
|
||||
def _mean_queries(payload: dict[str, Any]) -> dict[str, float]:
|
||||
authors = payload["authors"]
|
||||
if not authors:
|
||||
return {key: 0.0 for key in QUERY_KEYS}
|
||||
return {
|
||||
key: sum(author["query_average"].get(key, 0.0) for author in authors) / len(authors)
|
||||
for key in QUERY_KEYS
|
||||
}
|
||||
|
||||
return {
|
||||
"patent_ids_identical": ids_ok,
|
||||
"counts_identical": counts_ok,
|
||||
"decision_reasons_identical": "not_in_api_response",
|
||||
"authors": rows,
|
||||
"average_query_count_before": _mean_queries(before),
|
||||
"average_query_count_after": _mean_queries(after),
|
||||
}
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument("--phase", choices=("before", "after", "compare"), required=True)
|
||||
parser.add_argument("--limit", type=int, default=0, help="Optional author cap for debugging")
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def main() -> int:
|
||||
args = parse_args()
|
||||
authors = list(BENCHMARK_AUTHORS)
|
||||
if args.limit:
|
||||
authors = authors[: args.limit]
|
||||
if args.phase == "compare":
|
||||
before = json.loads((OUT_DIR / "benchmark_before.json").read_text(encoding="utf-8"))
|
||||
after = json.loads((OUT_DIR / "benchmark_after.json").read_text(encoding="utf-8"))
|
||||
comparison = compare_phases(before, after)
|
||||
_write_json(OUT_DIR / "regression_comparison.json", comparison)
|
||||
print(json.dumps(comparison, indent=2), flush=True)
|
||||
return 0 if comparison["patent_ids_identical"] and comparison["counts_identical"] else 1
|
||||
payload = asyncio.run(run_benchmark(args.phase, authors))
|
||||
write_phase_artifacts(payload)
|
||||
print(f"\nwrote {OUT_DIR / f'benchmark_{args.phase}.json'}", flush=True)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
@@ -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
|
||||
```
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user