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

添加用户词典后报错 #44

Open
Excuses123 opened this issue May 17, 2023 · 1 comment
Open

添加用户词典后报错 #44

Excuses123 opened this issue May 17, 2023 · 1 comment

Comments

@Excuses123
Copy link

Excuses123 commented May 17, 2023

RuntimeError: The size of tensor a (39) must match the size of tensor b (34) at non-singleton dimension 1

全是中文时,能正常分词
image

句子中加入英文单词后就报错
image

use_dict改成False后也能正常分词
image

@fdugzc
Copy link
Member

fdugzc commented Nov 11, 2023

你用的是2.x的版本吗?

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