安装 QuickUMLS 时遇到问题

Trouble installing QuickUMLS

我正在尝试在 python 3.7 (Ubuntu OS) 中安装 QuickUMLS 用于医学 NLP。我按照本网站提供的分步安装指南进行操作 link -

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

在创建 QuickUMLS 对象之前,在您的代码中添加一个导入语句:

从 quickumls 导入 QuickUMLS

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