kenlm
kenlm copied to clipboard
std::string std::bad_alloc
when i debugging "model = new lm::ngram::Model(filePath, config);", it will throw the "std::bad_alloc" exceptions
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.