In function _g2p_v2(in chinese_mix.cpp),in order to add pre_merge_for_modify (to regulate the Chinese segmentation results), it is necessary to add a sliding window after the Jieba word segmentation. The sliding window will determine the left and right boundaries of Chinese or English word segmentations in the Jieba result's vector, the Chinese part will serve as the input for pre_merge_for_modify.
In function
_g2p_v2
(inchinese_mix.cpp
),in order to addpre_merge_for_modify
(to regulate the Chinese segmentation results), it is necessary to add a sliding window after the Jieba word segmentation. The sliding window will determine the left and right boundaries of Chinese or English word segmentations in the Jieba result's vector, the Chinese part will serve as the input forpre_merge_for_modify
.