Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bert一直报错 #8

Closed
kindofking opened this issue Mar 15, 2021 · 3 comments
Closed

bert一直报错 #8

kindofking opened this issue Mar 15, 2021 · 3 comments

Comments

@kindofking
Copy link

Model name 'model/bert-base-chinese' was not found in model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese). We assumed 'model/bert-base-chinese\vocab.txt' was a path or url but couldn't find any file associated to this path or url.

@SomeoneNotLikeYou
Copy link

我也和你一样 是同一个错误

@l-i-p-f
Copy link

l-i-p-f commented May 22, 2021

我是网络限制,自己手动下载的模型。
self.bert = BertModel.from_pretrained(config.BertModelPath)
from_pretrained 里的参数改为本地bert模型路径

@cooscao
Copy link
Owner

cooscao commented May 22, 2021

我是网络限制,自己手动下载的模型。
self.bert = BertModel.from_pretrained(config.BertModelPath)
from_pretrained 里的参数改为本地bert模型路径

transformers版本为0.6.1,试试呢

@cooscao cooscao closed this as completed May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants