I tried using the entity linker with UMLS from scispacy and it takes a while to load (for the first time) ~ around 14s.
The second time I run it is noticeably faster ~ 30 ms. I assume its cached?
..(the printed values)...
CPU times: user 0 ns, sys: 297 ms, total: 297 ms
Wall time: 13.8 s
Is this normal? Is there a way to make the results appear faster as in the demo in Streamlit, when I type in words in the textbox, the results seem to come out instantaneously. How is it done there?
I tried using the entity linker with UMLS from scispacy and it takes a while to load (for the first time) ~ around 14s. The second time I run it is noticeably faster ~ 30 ms. I assume its cached?
Here is the code I ran:
and it outputted:
Is this normal? Is there a way to make the results appear faster as in the demo in Streamlit, when I type in words in the textbox, the results seem to come out instantaneously. How is it done there?