无法安装QuickUMLS

时间:2019-05-27 02:30:11

标签: python nlp medical

我正在尝试在用于医疗NLP的python 3.7(Ubuntu OS)中安装QuickUMLS。我遵循了此网站链接提供的分步安装指南-

https://github.com/Georgetown-IR-Lab/QuickUMLS

但是,在完成安装后,我无法使用QuickUMLS()命令实例化匹配器对象。弹出以下错误信息。

matcher = QuickUMLS(quickumls_fp='/home/dileep/QuickUMLS')

----------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-4-2c04f59d4b93> in <module>
----> 1 matcher = QuickUMLS(quickumls_fp='/home/dileep/QuickUMLS')

NameError: name 'QuickUMLS' is not defined

我在这里错过了什么吗?请帮忙。

由于本指南中没有涉及或未指定pip安装,因此我也尝试了

pip install https://github.com/Georgetown-IR-Lab/QuickUMLS.git

显示此错误

ERROR: Cannot unpack file /tmp/pip-unpack-s1k8klso/QuickUMLS.git (downloaded from /tmp/pip-req-build-4f1w2qgm, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-4f1w2qgm

1 个答案:

答案 0 :(得分:1)

在创建QuickUMLS对象之前,请在代码中创建导入语句:

从quickumls导入QuickUMLS

matcher = QuickUMLS(quickumls_fp ='/ home / dileep / QuickUMLS')