【发布时间】:2021-02-19 20:09:03
【问题描述】:
我在 pandas 数据框中有一个字段,其中有一个文本字段,我想为其生成 BioBERT 嵌入。有没有一种简单的方法可以生成向量嵌入?我想在另一个模型中使用它们。
这是数据框的假设样本
| Visit Code | Problem Assessment |
|---|---|
| 1234 | ge reflux working diagnosis well |
| 4567 | medication refill order working diagnosis note called in brand benicar 5mg qd 30 prn refill |
我试过这个包,但安装时收到错误 https://pypi.org/project/biobert-embedding
错误:
Collecting biobert-embedding
Using cached biobert-embedding-0.1.2.tar.gz (4.8 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.2.0 (from biobert-embedding) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.1)
ERROR: No matching distribution found for torch==1.2.0 (from biobert-embedding)
非常感谢任何帮助!
【问题讨论】:
标签: python nlp data-science biopython bert-language-model