0
import boto3
import pandas as pd

translate = boto3.client(service_name='translate', region_name='us-east-1',use_ssl=True)

json_data = {"title": "El gran poder", "subtitle": "Es un gran libro de persuasión"
result = translate.translate_text(Text=json_data,SourceLanguageCode="es", TargetLanguageCode="en")

实际上 Text 不支持 json

4

0 回答 0