You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MemoryError: Error allocating memory for feature #786
I already had run long ago python -m spacy.de.download all and tried to redownload it using --force, however this behaviour is currently broken in spacy 1.6 (on master it is already fixed), hence I might have an older download from spacy 1.2
I executed python -m spacy.en.download all and downloaded all english data.
Still the same error. (also with the english equivalent code)
I am encountering similar issues now - upgrading to thinc-6.4.0 solved my memory issues, however now I am unable to save the models I update. Traceback below:
File "/mnt/alex/NER/train_general_model.py", line 277, in <module>
train_client_brand_model(output_path, td)
File "/mnt/alex/NER/train_general_model.py", line 211, in train_client_brand_model
ner.model.dump(str(model_dir / 'model'))
File "thinc/linear/avgtron.pyx", line 81, in thinc.linear.avgtron.AveragedPerceptron.dump
(thinc/linear/avgtron.cpp:2852)
AttributeError: 'preshed.maps.PreshMap' object has no attribute 'capacity' ```
Activity
honnibal commentedon Jan 29, 2017
Hi,
Labelling this bug, because no matter the root cause that shouldn't be the expected behaviour.
Do you have the data installed?
Matt
schlichtanders commentedon Jan 30, 2017
thank you very much for your fast response
I already had run long ago
python -m spacy.de.download alland tried to redownload it using--force, however this behaviour is currently broken in spacy 1.6 (on master it is already fixed), hence I might have an older download from spacy 1.2I executed
python -m spacy.en.download alland downloaded all english data.Still the same error. (also with the english equivalent code)
schlichtanders commentedon Feb 13, 2017
I tried it again with the new thinc master adapted for #799 however this memory allocation error is unfortunately still there.
akalino commentedon Mar 6, 2017
I am encountering similar issues now - upgrading to thinc-6.4.0 solved my memory issues, however now I am unable to save the models I update. Traceback below:
akalino commentedon Mar 6, 2017
Actually, looks like an upgrade of preshed to 1.0.0 solves the issue I was seeing.
honnibal commentedon Mar 31, 2017
This should be fixed now -- see #910
lock commentedon May 9, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.