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

分词报错 #693

Open
dedey opened this issue Apr 30, 2024 · 2 comments
Open

分词报错 #693

dedey opened this issue Apr 30, 2024 · 2 comments

Comments

@dedey
Copy link

dedey commented Apr 30, 2024

句子:视觉Transformers通过将图像区域表示为转换后的tokens并通过注意力权重整合它们来提取视觉信息。
报错信息:
File "/venv3/lib/python3.10/site-packages/ltp/nerual.py", line 293, in _cws_post
entities[-1].append((0, length2index[e]))
KeyError: 13

@AlongWY 麻烦,帮忙看看

@AlongWY
Copy link
Contributor

AlongWY commented May 4, 2024

无法复现

@dedey
Copy link
Author

dedey commented May 11, 2024

您在处理时,有没有加载自己的字典?@AlongWY

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