Closed slbayer closed 6 years ago
Inserting a try-except inside get() at line 255 of toolbox.py seems to fix the problem, whatever it is.
Thank you for the report! I'll be investigating this issue shortly.
I can't reproduce this issue on Python 2.7.14. Looking at ngram_cands
, I get the following candidates:
['leucovorin', 'Leucovorin', 'Leucovorin\xc2\xae', 'L-leucovorin', 'S-leucovorin', 'S leucovorin', '6S leucovorin', '6S-leucovorin']
which return no errors. Note how the third candidate is Leucovorin®
which matches concept [A24104223/LNC/LA/LA14337-2]
in UMLS. Could it be due to some data corruption between installation and matching?
Hm. Must be something like that on my end, because ngram_cands for me looks like this:
['leucovorin', 'Leucovorin', 'Leucovorin\xc3\x82', 'L-leucovorin', 'S-leucovorin', 'S leucovorin', '6S leucovorin', '6S-leucovorin']
The third candidate in your list does, indeed, return something from the DB. Not sure what's going on, but I don't have time to figure it out. Sigh. Thanks.
Version 1.2.2 downloaded from the releases section, on macOS 10.13.3, Python 2.7.11, successfully installed all dependencies and built the QuickUMLS database from UMLS_2017AB, after installing UMLS using only the active vocabularies. I get this error:
In quickumls.py, line 216, ngram_cands is
['leucovorin', 'Leucovorin', 'Leucovorin\xc3\x82', 'L-leucovorin', 'S-leucovorin', 'S leucovorin', '6S leucovorin', '6S-leucovorin']
and it's barfing on the third one.