Fix linux build.

This commit is contained in:
Egor Pugin 2021-03-10 15:35:13 +03:00
parent ce058604ba
commit 3444618075

View File

@ -174,7 +174,7 @@ bool LSTMRecognizer::LoadDictionary(const ParamsVectors* params,
dict_->LoadLSTM(lang, mgr); dict_->LoadLSTM(lang, mgr);
if (dict_->FinishLoad()) return true; // Success. if (dict_->FinishLoad()) return true; // Success.
tprintf("Failed to load any lstm-specific dictionaries for lang %s!!\n", tprintf("Failed to load any lstm-specific dictionaries for lang %s!!\n",
lang); lang.c_str());
delete dict_; delete dict_;
dict_ = nullptr; dict_ = nullptr;
return false; return false;