We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
如果您希望在两种语言之间实际翻译一串文本,例如从英语“Hello”翻译成西班牙语“Hola”,您可能需要查看 Google 语言 API。
由于最近弃用了免费版本的 Google API,另一个替代方案是 Bing Translator API。
最后,Google Cloud Platform 提供翻译 API 作为服务,每翻译 50,000 个字符的费用约为 1 美元。
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.
Another alternative due to recent deprecation of the free version of Google's API is the Bing Translator API.
Lastly, Google Cloud Platform offers the Translate API as a service, costing about $1 USD per 50,000 characters translated.
Python 自然语言工具包 几乎肯定对您有用:
“开源 Python 模块、语言数据以及自然语言处理研究和开发的文档”
我不相信它会直接进行翻译,但它对于机器理解自然语言文本非常有用。
The Python Natural Language Toolkit will almost certainly be useful to you:
"Open source Python modules, linguistic data and documentation for research and development in natural language processing"
I don't believe it will do translation directly, but it's great for machine understanding of natural language text.
Python 支持
gettext
。查看此处的文档。Python supports
gettext
. Check out the docs here.如果您想翻译任意(自然)文本,请查看
Goslate
,这是一个免费的 Google 翻译服务 Python API。根据 这个网站,代码就像这样简单:您可以使用 pip install
If you want to translate arbitrary (natural) text, check out
Goslate
, a free python API to Google Translation Services. According to this website, code is as easy as this:You can pip install using
使用什么取决于您要翻译的内容。
根据你的描述,听起来你在追求#2。
What to use depends on what you want to translate.
On your description, it sounds like you are after #2.