用Python翻译人类语言 [英] Translating human languages in Python

查看:118
本文介绍了用Python翻译人类语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于将文本从一种人类语言翻译成另一种语言的Python模块?我打算使用Python脚本对文本进行前后处理. 可以使用其他哪些与Python集成的方法?

Is there a Python module for the translation of texts from one human language to another? I'm planning to work with texts that are to be pre and post processed with Python scripts. What other Python-integrated approaches can be used?

推荐答案

如果您要在两种语言之间实际翻译文本字符串,例如从英语"Hello"到西班牙语"Hola",则可能需要查找进入 Google语言API .

If you're looking to actually translate a string of text between two languages, say from English "Hello" to Spanish "Hola", you might want to look into the Google Language API.

由于最近弃用了Google API的免费版本,另一种替代方法是 Bing Translator API

Another alternative due to recent deprecation of the free version of Google's API is the Bing Translator API.

最后,Google云端平台提供了翻译API 作为服务,费用约为1美元已翻译50,000个字符.

Lastly, Google Cloud Platform offers the Translate API as a service, costing about $1 USD per 50,000 characters translated.

这篇关于用Python翻译人类语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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