【问题标题】:how to disable Google Translate API from not translating proper names with common words如何禁用谷歌翻译 API 不翻译常用词的专有名称
【发布时间】:2019-01-31 03:04:01
【问题描述】:

我正在使用 Google Cloud Platform 以印度地区语言创建内容。部分内容包含建筑物和社团名称,其中包含“The Nest Glory”等常用词。从谷歌翻译 API 转换后,建筑物名称只能用地区语言拼写,而不是按字面意思翻译。这听起来很有趣,用户永远不会找到那个建筑。

【问题讨论】:

    标签: google-cloud-platform google-translator-toolkit


    【解决方案1】:

    可以告诉 Cloud Translation API 不要翻译部分文本,使用以下 HTML 标签:

    <span translate="no"> </span>
    <span class="notranslate"> </span>
    

    此功能需要以 HTML 格式提交源文本。

    Access to the Cloud Translation API

    How to Disable Google Translate from Translating Specific Words

    【讨论】:

      【解决方案2】:

      经过一番搜索,我认为一种较旧的方法是使用被谷歌贬低的音译 API

      Google Transliteration API Depricated

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2011-12-26
        • 1970-01-01
        • 2011-06-06
        • 1970-01-01
        • 2017-06-25
        • 2016-11-18
        • 1970-01-01
        相关资源
        最近更新 更多