facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.85k stars 4.71k forks source link

memoryerror std bad_alloc #1222

Closed yushiokamura closed 3 years ago

yushiokamura commented 3 years ago

hi,

I use this module. when I try to encode a lot of word by fasttext model with mulitiprocessing.

a error MemoryError std::bad_alloc occurs. How is the memory allocated by molloc released?

https://github.com/facebookresearch/fastText/blob/a20c0d27cd0ee88a25ea0433b7f03038cd728459/webassembly/fasttext.js#L28

And, What should I do about memory errors?