Python Cloud Translate(使用术语表,和不使用术语表)
使用术语表
Google的控制台的storage创建bucket;
新建glossary术语表文件(TSV、CSV 或 TMX 文件),上传到该bucket;文件格式(https://cloud.google.com/translate/docs/advanced/glossary)
调用函数创建术语资源(下图);
使用术语表翻译文本。
from google.cloud import translate_v3 as translate
'''
PROJECT_NUMBER_OR_ID:.
原创
2022-05-14 20:12:18 ·
430 阅读 ·
0 评论