BrikerMan / Kashgari

Kashgari is a production-level NLP Transfer learning framework built on top of tf.keras for text-labeling and text-classification, includes Word2Vec, BERT, and GPT2 Language Embedding.
http://kashgari.readthedocs.io/
Apache License 2.0
2.4k stars 441 forks source link

导入BERTEmbedding失败 #487

Closed Robinaoko closed 2 years ago

Robinaoko commented 2 years ago

您好,我使用Anaconda安装环境如下:

python 3.6 tensorflow ==2.5.0 tensorflow_addons==0.13.0 kashgari 2.0.2

得到的错误是:ImportError: cannot import name 'Bertembedding' 尝试了很多办法,新建了很多环境也没有解决,求助!

hwq458362228 commented 2 years ago

是不是因为E要大写,应该是“BertEmbedding”,你的报错里写的是“Bertembedding”

Robinaoko commented 2 years ago

是不是因为E要大写,应该是“BertEmbedding”,你的报错里写的是“Bertembedding” 是的是的!解决了,非常感谢!