当我尝试在脚本中加载spacy时出现以下错误?是不是因为meomry已经满了?或任何其他原因?
Traceback (most recent call last):
english_model = English()
File "/home/ubuntu/.local/lib/python3.4/site-packages/spacy/language.py", line 257, in __init__
add_vectors(self.vocab)
File "/home/ubuntu/.local/lib/python3.4/site-packages/spacy/language.py", line 60, in <lambda>
return lambda vocab: vocab.load_vectors_from_bin_loc(vec_path)
File "spacy/vocab.pyx", line 436, in spacy.vocab.Vocab.load_vectors_from_bin_loc (spacy/vocab.cpp:10463)
File "spacy/cfile.pyx", line 40, in spacy.cfile.CFile.alloc_read (spacy/cfile.cpp:1410)
File "cymem/cymem.pyx", line 44, in cymem.cymem.Pool.alloc (cymem/cymem.cpp:1126)
MemoryError
答案 0 :(得分:0)
您可能正在使用32位版本的python或32位版本的64位python包。卸载现有版本的python和所有软件包并重新安装 64位版本的python和相关包。