Failed in inference
Created by: daiannan1993
Hello, when I tried to run the run_infer_golden.sh file, I met with the following problem. Error information is attached below.
terminate called after throwing an instance of 'lm::FormatLoadException' what(): kenlm/lm/vocab.cc:43 in void lm::ngram::{anonymous}::ReadWords(int, lm::EnumerateVocab*, lm::WordIndex, uint64_t) threw FormatLoadException because
memcmp(check_unk, "", 6)'.
Vocabulary words are in the wrong place. This could be because the binary file was built with stale gcc and old kenlm. Stale gcc, including the gcc distributed with RedHat and OS X, has a bug that ignores pragma pack for template-dependent types. New kenlm works around this, so you'll save memory but have to rebuild any binary files using the probing data structure.
`
I have no idea about what this problem is about and how to solve this. Have you ever encountered this kind of issue and successfully solved it? Thanks so much~~