您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

什么是文本翻译 API?What is Translator Text API?

文本翻译 API 可以轻松地集成到应用程序、网站、工具和解决方案中。The Translator Text API is easy to integrate in your applications, websites, tools, and solutions. 它允许你使用 60 多种语言添加多语言用户体验,可以在任何硬件平台上使用,以及在任何操作系统中使用,用于文本到文本语言翻译。It allows you to add multi-language user experiences in more than 60 languages, and can be used on any hardware platform with any operating system for text-to-text language translation.

文本翻译 API 是云中机器学习和 AI 算法的 Azure 认知服务 API 集合的一部分,可随时在开发项目中使用。The Translator Text API is part of the Azure Cognitive Services API collection of machine learning and AI algorithms in the cloud, and is readily consumable in your development projects.

关于 Microsoft TranslatorAbout Microsoft Translator

Microsoft Translator 是基于云的机器翻译服务。Microsoft Translator is a cloud-based machine translation service. 核心服务是文本翻译 API,该 API 为各种 Microsoft 产品和服务提供支持,并已在全球数千家企业的应用程序和工作流中使用,使他们的内容可传播到全球的受众。The core service is the Translator Text API, which powers a number of Microsoft products and services, and is used by thousands of businesses worldwide in their applications and workflows, which allows their content to reach a global audience.

语音翻译由文本翻译 API 提供支持,也通过 Microsoft 语音服务提供。Speech translation, powered by the Translator Text API, is also available through the Microsoft Speech Service. 它将语音翻译 API 和自定义语音服务的功能组合成了一项统一的可完全自定义的服务。It combines functionality from the Translator Speech API and the Custom Speech Service into a unified and fully customizable service. 语音服务将替换语音翻译 API,后者自 2019 年 10 月 15 日起停用。 Speech Service is replacing the Translator Speech API, which will be decommissioned on October 15, 2019.

语言支持Language support

Microsoft Translator 为翻译、直译、语言检测和字典提供多语言支持。Microsoft Translator provides multi-language support for translation, transliteration, language detection, and dictionaries. 请参阅语言支持以获取完整的列表,或者通过 REST API 以编程方式访问列表。See language support for a complete list, or access the list programmatically with the REST API.

Microsoft Translator 神经机器翻译Microsoft Translator Neural Machine Translation

神经机器翻译 (NMT) 是采用 AI 的高质量机器翻译的新标准。Neural Machine Translation (NMT) is the new standard for high-quality AI-powered machine translations. 它代替的是旧式统计机器翻译 (SMT) 技术,该技术在 2010-2020 中期的几年中达到了质量顶峰。It replaces the legacy Statistical Machine Translation (SMT) technology that reached a quality plateau in the mid-2010s.

与 SMT 相比,NMT 不仅能够从原始翻译质量评分的立场提供更好的翻译,而且听起来更流畅、更类似于人类。NMT provides better translations than SMT not only from a raw translation quality scoring standpoint but also because they will sound more fluent and human. 这种流畅性的主要原因在于 NMT 使用一个句子的完整语境来翻译单词。The key reason for this fluidity is that NMT uses the full context of a sentence to translate words. SMT 仅考虑每个单词前面和后面几个单词的直接语境。SMT only took the immediate context of a few words before and after each word.

NMT 模型是该 API 的核心,对最终用户不可见。NMT models are at the core of the API and are not visible to end users. 唯一明显的区别是改进的翻译质量,尤其是针对中文、日语和阿拉伯语等语言。The only noticeable difference is improved translation quality, especially for languages such as Chinese, Japanese, and Arabic.

详细了解 NMT 的工作原理Learn more about how NMT works

语言自定义Language customization

自定义翻译是核心 Microsoft Translator 服务的扩展,可以与文本翻译 API 配合用于自定义神经翻译系统,并改进特定术语和样式的翻译。An extension of the core Microsoft Translator service, Custom Translator can be used in conjunction with the Translator Text API to help you customize the neural translation system and improve the translation for your specific terminology and style.

使用自定义翻译,可以构建翻译系统来处理自己的业务或行业中使用的术语。With Custom Translator, you can build translation systems that handle the terminology used in your own business or industry. 然后,就可以使用类别参数通过常规的 Microsoft 文本翻译 API 将自定义翻译系统轻松集成到现有的应用程序、工作流和网站中,而且可以跨多种类型的设备。Your customized translation system will then easily integrate into your existing applications, workflows, and websites, across multiple types of devices, through the regular Microsoft Translator Text API, by using the category parameter.

了解有关语言自定义的详细信息Learn more about language customization

后续步骤Next steps