因此,我使用Colab,我有一个问题,进口bert_embedding.
我用:
!pip install bert-embedding
from bert_embedding import BertEmbedding
bert_embedding = BertEmbedding()错误:没有名为bert_embedding的模块
但在文档中,它清楚地说明了我应该这样称呼它:https://pypi.org/project/bert-embedding/
有什么办法解决这个问题吗?
谢谢
发布于 2020-02-25 11:44:24
参考bert嵌入项目中github解决的问题,我建议您安装最新的gluonnlp包
pip install https://github.com/dmlc/gluon-nlp/tarball/master
https://github.com/imgarylai/bert-embedding/issues/3 -这就是我所指的问题。这应该对你有用。
https://stackoverflow.com/questions/60393474
复制相似问题