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

ERNIE/applications/task/text_classification:infer阶段vocab.txt是否只支持40000个词? #919

Open
alice-create opened this issue May 28, 2024 · 0 comments

Comments

@alice-create
Copy link

(ValueError: (invalidargument) variable value (input) of op(fluid.layers.embedding) expected >= 0 and < 40000, but got 40240. please check input value.)

我替换了自己的词表后,有40240个词,训练阶段(run_trainer)没问题,但是infer阶段出现了如上报错。
所以,vocab.txt最多只能有40000个词吗?

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

1 participant