add namespace for frontend_interface.h

pull/3030/head
TianYuan 3 years ago
parent 54fb4e8238
commit 5f6a4978f8

@ -260,7 +260,8 @@ int FrontEngineInterface::GetWordsIds(
if (std::find(_punc.begin(), _punc.end(), word) == if (std::find(_punc.begin(), _punc.end(), word) ==
_punc.end()) { // 文字 _punc.end()) { // 文字
// 获取字词的声母韵母列表 // 获取字词的声母韵母列表
if (0 != GetInitialsFinals(word, &word_initials, &word_finals)) { if (0 !=
GetInitialsFinals(word, &word_initials, &word_finals)) {
LOG(ERROR) LOG(ERROR)
<< "Genarate the word_initials and word_finals of " << "Genarate the word_initials and word_finals of "
<< word << " failed"; << word << " failed";

@ -194,5 +194,5 @@ class FrontEngineInterface : public TextNormalizer {
std::vector<std::string> must_not_neural_tone_words; std::vector<std::string> must_not_neural_tone_words;
std::vector<std::string> must_neural_tone_words; std::vector<std::string> must_neural_tone_words;
}; };
} } // namespace ppspeech
#endif #endif
Loading…
Cancel
Save