pull/4021/head
co63oc 6 months ago
parent 6d330bd477
commit 96cf970741

@ -916,11 +916,11 @@ int FrontEngineInterface::NeuralSandhi(const std::string &word,
if (find(must_neural_tone_words.begin(), if (find(must_neural_tone_words.begin(),
must_neural_tone_words.end(), must_neural_tone_words.end(),
word) != must_neural_tone_words.end() || word) != must_neural_tone_words.end() ||
(word_num >= 2 && (word_num >= 2 && find(must_neural_tone_words.begin(),
find(must_neural_tone_words.begin(), must_neural_tone_words.end(),
must_neural_tone_words.end(), ppspeech::wstring2utf8string(
ppspeech::wstring2utf8string(word_wstr.substr( word_wstr.substr(word_num - 2))) !=
word_num - 2))) != must_neural_tone_words.end())) { must_neural_tone_words.end())) {
(*finals).back() = (*finals).back() =
(*finals).back().replace((*finals).back().length() - 1, 1, "5"); (*finals).back().replace((*finals).back().length() - 1, 1, "5");
} }

Loading…
Cancel
Save