如何在iPhone应用程序中实现语言翻译工具? [英] How to implement language translator facility in an iphone application?

查看:53
本文介绍了如何在iPhone应用程序中实现语言翻译工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iphone应用程序中实现语言翻译工具?我发现对于在线模式,可以使用GOOGLE API进行工作:(例如)

How to implement language translator facility in an iphone application ? I have found that for Online mode this works, using GOOGLE API :(for example)

http://ajax.googleapis.com/ajax/services/language/translate?q=nature&v=1.0&langpair=en%7Cja

但是如何在离线模式下执行语言翻译?任何可用的开源API.

But how to perform language translation in offline mode ? Any open source API available.

是否允许在iphone应用程序中使用Google翻译API?

Is it allowed to use google translate API in iphone application ??

(语言:iPhone支持的所有语言)

(Languages : All languages which are supported by iPhone)

推荐答案

自然语言翻译是一个非常困难的问题.鉴于移动设备可用的存储和计算资源有限,我想说,您最好的选择是利用现有的在线服务,例如Google的翻译引擎.

Natural language translation is an incredibly hard problem. Given the limited storage and computational resources available to a mobile device, I'd say that your best bet would be to leverage an existing online service, like Google's translation engine.

否则,您可以查看此问题中提到的库:"您最喜欢的自然语言解析器?"来解析语言.此后的翻译将是另一个挑战.这个问题的答案指出了一个或两个Python资源,但这并不是真的与iPhone兼容.

Otherwise, you could check out the libraries mentioned in this question: "Your favorite natural language parser?" to parse the language. Translation after that point will be another challenge. The answers to this question point out one or two resources for Python, but that's not really compatible with the iPhone.

这篇关于如何在iPhone应用程序中实现语言翻译工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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