|
This post was updated on .
Hi Jiba,
I have tried to use the script on python 3.7 . It loads a minute and then there is an error:
* Owlready2 * Warning: optimized Cython parser module 'owlready2_optimized' is not available, defaulting to slower Python implementation
Importing UMLS from Zip file 2018AB-full/2018ab-1-meta.nlm...
Parsing 2018AB/META/MRRANK.RRF.gz as MRRANK...
Parsing 2018AB/META/MRCONSO.RRF.aa.gz as MRCONSO...
Traceback (most recent call last):
File "Script5.py", line 5, in <module> import_umls("umls-2018AB-full.zip", terminologies = ["ICD10", "SNOMEDCT_US", "CUI"])
File "C:\Users\developer\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2-0.17-py3.7.egg\owlready2\pymedtermino2\umls.py", line 678, in import_umls
remnants[table_name])
File "C:\Users\developer\AppData\Local\Programs\Python\Python37\lib\site-packages\owlready2-0.17-py3.7.egg\owlready2\pymedtermino2\umls.py", line 79, in parse_mrconso
for line in f:
File "C:\Users\developer\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 5439: character maps to <undefined>
How can I do?
Many thanks.
Best regards,
Hamico
|