Chinese_models_for_SpaCy icon indicating copy to clipboard operation
Chinese_models_for_SpaCy copied to clipboard

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

Open onceone opened this issue 4 years ago • 2 comments

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)

onceone avatar May 26 '20 03:05 onceone

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

howl-anderson avatar May 26 '20 04:05 howl-anderson

可能是版本问题。谢谢。 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 不可以。

onceone avatar May 26 '20 06:05 onceone