安装QuickUML时出现问题

2024-10-02 16:26:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试在python3.7(Ubuntu操作系统)中为医学NLP安装QuickUMLS。我遵循了这个网站提供的分步安装指南链接-

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

但是,在完成安装之后,我无法使用QuickUMLS()命令实例化matcher对象。弹出以下错误消息。你知道吗

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

Tags: piphttpsgithubcomhomeir错误lab