我怎样才能从谷歌API与JSON中获得中文罗马化 [英] how can I Get Chinese Romanization from google API with JSON

查看:118
本文介绍了我怎样才能从谷歌API与JSON中获得中文罗马化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想把英文翻译成中文,并且我得到了这个工作,但我也需要中文罗马化。也就是说,上帝应该将其转化为神以及谢恩;我无法得到Shén。我怎么做到这一点?

解决方案

我只对goslate(谷歌翻译的非官方API)能够获得罗马化的翻译,并将其命名为goslater。我希望谷歌能够在未来给我们提供这种功能,但现在,您可以在这里下载goslater:

https://sites.google.com/site/javialamo/python/mis-programas/modulos/goslater



https://github.com/javialamo/goslater



希望它有帮助


I want to translate English to Chinese and I got that working, but I also need Chinese Romanization. I.e., God should translate to to 神 as well as Shén; I couldn't get Shén. How can I do this?

解决方案

I just have made minor changes to goslate (an unofficial API for google translator) to made it able to get the romanised translation, and named it goslater. I hope google give us this funcionality in the future, but for now, you can download goslater here:

https://sites.google.com/site/javialamo/python/mis-programas/modulos/goslater

https://github.com/javialamo/goslater

Hope it helps

这篇关于我怎样才能从谷歌API与JSON中获得中文罗马化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆