Add more engdict#395
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
更新英文词库
1、增加cmudict-fast。更新时间2021,加入了spotify、github、ipad等互联网时代新词汇
2、增加engdict-hot,用来补充cmudict-fast中没有收录的词汇,待完善
3、从cmudict、cmudict-fast、cmudict-hot重新生成字典cache
兼容性
在语种切割auto的情况下,会调用LangSegment对文本进行分割处理。触发LangSegment英文优化(# 其中英文缩写字母如“LCD”,英文标准发音为“L-C-D”,# 而在语音合成TTS项目中,一般用空格隔开字母来单独发音:“L C D”)。导致输入IPAD会被优化成I P A D单个英文字母朗读,无法匹配字典中正确读法
而在语种切割english的情况下,纯大写输入的词语不会被LangSegment优化,若匹配不到字典则由g2p_en处理
兼容性解决方案
可考虑进一步规范输入、增加提示来避免LangSegment优化变成负优化,同时给单english也进行LangSegment处理以达成一致。