microsoft / LightLDA

Scalable, fast, and lightweight system for large-scale topic modeling
http://www.dmtk.io
MIT License
842 stars 234 forks source link

terminate called after throwing an instance of 'std::bad_alloc' #27

Closed ericxsun closed 4 years ago

ericxsun commented 8 years ago

While doing dump_binary in the given example nytimes.sh, throw out such error: std:bad_alloc

bin/dump_binary example/data/nytimes/nytimes.libsvm example/data/nytimes/nytimes.word_id.dict example/data/nytimes/ 0

logs:

There are totally 101636 words in the vocabulary There are maximally totally 99542125 tokens in the data set terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Abort

Could anybody help me? Highly appreciated.

feiga commented 8 years ago

It seems there is no enough memory.

ericxsun commented 8 years ago

yes, I have solved it when I increased the memory. Also thanks a lot. @feiga