翻译语言 Python
Translation Languages Python
我可以使用哪个 API 来翻译 Python 中的文本?
我不想使用 Google 或 Bing。还有其他的吗?
Google 一直说 "Day limit exceed" 并且 Bing 翻译了前 3-4 个问题,然后我得到了 "Cannot find an active Azure Market Place Translator Subscription associated with the request credentials"
我制作了这个脚本,如果你想查看的话:https://github.com/mouuff/Google-Translate-API :)
非常容易使用:
to_translate = 'Hola como estas?'
print("%s >> %s" % (to_translate, translate(to_translate)))
print("%s >> %s" % (to_translate, translate(to_translate, 'fr')))
应该打印 Hola como estas >> 你好,你好吗
你好吗? >> Bonjour comment allez-vous?
我可以使用哪个 API 来翻译 Python 中的文本?
我不想使用 Google 或 Bing。还有其他的吗?
Google 一直说 "Day limit exceed" 并且 Bing 翻译了前 3-4 个问题,然后我得到了 "Cannot find an active Azure Market Place Translator Subscription associated with the request credentials"
我制作了这个脚本,如果你想查看的话:https://github.com/mouuff/Google-Translate-API :)
非常容易使用:
to_translate = 'Hola como estas?'
print("%s >> %s" % (to_translate, translate(to_translate)))
print("%s >> %s" % (to_translate, translate(to_translate, 'fr')))
应该打印 Hola como estas >> 你好,你好吗
你好吗? >> Bonjour comment allez-vous?