python调用谷歌翻译

from GoogleFreeTrans import Translator

if __name__ == '__main__':
    translator = Translator.translator(src='en', dest='zh-CN')
print(translator.translate('I love you'))
from googletrans import Translator

translator = Translator(service_urls=['translate.google.cn'])

title = 'Today is a gooday'

title_alternative = translator.translate(title, dest='zh-CN').text

print (title_alternative)

前者会以句号断句,只翻译第一句,后者会整段翻译。

SDL Trados软件SDK开发包 The SDL Trados 2007 Desktop SDK, Version March 2007 Introduction Sample code uses Visual Basic 6 or C#. The API reference notes co-classes rather than interfaces. Libraries Tag Settings Manager API Location: TradosSettingsManager.dll, which can be found in the SDL Trados Translation Tools installation folder. TRADOS Filter Manager API Location: The relevant DLL can be found in the SDL Trados Translation Tools installation folder on the client side. TagEditor API Location: TagEditor.exe, which can be found in the SDL Trados Translation Tools installation folder. TagEditor Message Collection API Location: TradosMessageCollection.dll, which can be found in the SDL Trados Translation Tools installation folder. TRADOS S-Tagger (Framemaker) API Location: TradosSTaggerFAPI.dll, which can be found in the FI/FM sub-folder of the SDL Trados Translation Tools installation folder. TRADOS S-Tagger (Interleaf) API Location: TradosSTaggerIAPI.dll, which can be found in the FI/IL sub-folder of the SDL Trados Translation Tools installation folder. TRADOS Translator's Workbench (TW4Win) API Location: Tw4win.exe, which can be found in the SDL Trados Translation Tools installation folder. TRADOStag API API Location: TRADOStagApi.dll, which can be found in the SDL Trados Translation Tools installation folder. TRADOS XConvert API Location: TradosXConvert.dll, which can be found in the SDL Trados Translation Tools installation folder. SDK Support Please note that the SDK is provided as is and for use at your own risk. SDL does not provide support and consulting services unless expressly agreed upon in a support & maintenance contract. Copyright © 2007 SDL International. All rights reserved.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值