-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
绕口令转换结果不是很完美 #270
Comments
你这个太狠了 [哈哈哈] |
考虑了下,这个绕口令最关键之处在于分词:
如果分词算法能准确分词得到上面的结果,那么转成拼音就没什么难度了:
|
下次得加 AI 识别了吧 |
更难一点的: 小时候看电视遇到的一副对联:据说是纪晓岚?
秦皇岛孟姜女庙的一副对联:
|
这个问题通过分词是无解的,除了“一行小白杨”还有“一行人”这样的说法,字形和词性相同但读音不同。必须引入上下文情景才有可能按照理想的结果输出。 |
我用微软的TTS尝试了下,read表示过去分词是可以正确的生成读音的,也许找找看微软用的什么方案可以解决这个问题。 |
我已经不认识行这个字了 |
加上足够的字典应该就行: 例如: 行一行: 'xíng yì háng',
一行行: 'yì háng xíng',
干哪行: 'gàn nǎ háng',
干一行: 'gàn yì háng', |
没有ai不行的,如果不结合上下文甚至是全文理解,我这样读理论上也没问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原文
人要是行 ,干一行行一行 ,
一行行行行行
人要是不行,干一行不行一行,
一行不行行行不行。
结果
rén yào shì háng , gān yī háng háng yī xíng , yī háng háng háng háng háng rén yào shì bù xíng , gān yī háng bù xíng yī xíng , yī xíng bù xíng háng háng bù háng
多音结果
The text was updated successfully, but these errors were encountered: