简体   繁体   English

如何在iPhone应用程序中实现语言翻译工具?

[英]How to implement language translator facility in an iphone application?

How to implement language translator facility in an iphone application ? 如何在iPhone应用程序中实现语言翻译工具? I have found that for Online mode this works, using GOOGLE API :(for example) 我发现对于在线模式,可以使用GOOGLE API进行工作:(例如)

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

But how to perform language translation in offline mode ? 但是如何在离线模式下执行语言翻译? Any open source API available. 任何可用的开源API。

Is it allowed to use google translate API in iphone application ?? 是否可以在iPhone应用程序中使用Google翻译API?

(Languages : All languages which are supported by iPhone) (语言:iPhone支持的所有语言)

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. 鉴于移动设备可用的存储和计算资源有限,我想说最好的选择是利用现有的在线服务,例如Google的翻译引擎。

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. 这个问题的答案指出了Python的一两个资源,但这与iPhone并不真正兼容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM