from BackTranslation import BackTranslation_Baidu
trans = BackTranslation_Baidu(appid='xxx', secretKey='xxx')
result = trans.translate('好吧,你可以理解他的想法,但我们不能用金钱来考验家庭的感情,', src='auto', tmp='en')
print(result.result_text)
trans.closeHTTP()
We use the code as above ,but It reply me "{'error_code': '54003', 'error_msg': 'Invalid Access Limit'}"
from BackTranslation import BackTranslation_Baidu trans = BackTranslation_Baidu(appid='xxx', secretKey='xxx') result = trans.translate('好吧,你可以理解他的想法,但我们不能用金钱来考验家庭的感情,', src='auto', tmp='en') print(result.result_text) trans.closeHTTP()
We use the code as above ,but It reply me "{'error_code': '54003', 'error_msg': 'Invalid Access Limit'}"