kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

std::string std::bad_alloc

Open lucky-dersan opened this issue 5 years ago • 1 comments

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

lucky-dersan avatar Mar 31 '20 06:03 lucky-dersan

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.

kpu avatar Mar 31 '20 07:03 kpu