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_config.json里的vocb_size和vocab.txt里的词汇不一致 #4

Open
linjianz opened this issue Sep 12, 2019 · 1 comment
Open

Comments

@linjianz
Copy link

您好,在转成pytorch后的模型文件中,bert_config.json里的vocb_size为18000,但是vocab.txt里只有17964个词汇,解码时生成的17964之后的id没法对应到词表,请问这个差异怎么处理?

@lonePatient
Copy link
Owner

@linjian93 模型转不影响 config和vocab文件的,你是否下载正确呢

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

2 participants