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

ValueError: could not broadcast input array from shape (128) into shape (96) #33

Open
onceone opened this issue May 26, 2020 · 2 comments

Comments

@onceone
Copy link

onceone commented May 26, 2020

when I run the code,
'''
import spacy
nlp = spacy.load('zh_core_web_sm')
'''
There are some errors: ValueError: could not broadcast input array from shape (128) into shape (96)

@howl-anderson
Copy link
Owner

考虑更新 SpaCy 至最新的版本(建议使用一个干净的虚拟环境)

@onceone
Copy link
Author

onceone commented May 26, 2020

可能是版本问题。谢谢。
spacy 2.2.4 ,zh_core_web_sm-0.1.0.tar.gz 可以。
spacy 2.2.4 zh_core_web_sm-2.0.5.tar.gz 不可以。

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