kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.5k stars 513 forks source link

std::string std::bad_alloc #268

Open wuqingshan2010 opened 4 years ago

wuqingshan2010 commented 4 years ago

when i debugging "model = new lm::ngram::Model(filePath, config);", it will throw the "std::bad_alloc" exceptions

kpu commented 4 years ago

Smells like a different compiler version or different options. Try building with make VERBOSE=1 and copy the compiler flags, especially any -std= flags exactly to your project.

Also, please include the exact text of the exception i.e. what makes you think it is std::string.