本文介绍了获取英语到中文的对齐数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用TranslateArray2,我可以获得我想要的大多数语言的对齐数据,但无法获取英语到中文(zh)的对齐数据.我怎么能得到它?

Using TranslateArray2, I am able to get alignment data for most languages I want, but not for English to Chinese (zh). How can I get it?

<ArrayOfTranslateArray2Response xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <TranslateArray2Response>
    <Alignment />
    <From>en</From>
    <OriginalTextSentenceLengths xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <a:int>33</a:int>
    </OriginalTextSentenceLengths>
    <TranslatedText>你好我的朋友, 我爱你的唇</TranslatedText>
    <TranslatedTextSentenceLengths xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <a:int>13</a:int>
    </TranslatedTextSentenceLengths>
  </TranslateArray2Response>
</ArrayOfTranslateArray2Response>

请参见 https://msdn.microsoft.com/en-us/library/dn198370.aspx

它声称从英语到任何语言都应该有对齐数据:

It claims that from English to any language there should be alignment data:

推荐答案

本文将某些语言对作为例外.当我们将其恢复为神经网络语言时,它将(第一次)适用于中文.

The article indicates some language pairs as exceptions. It will work for Chinese (for the first time) when we bring it back to our neural network languages.

我们正在研究它,并将在Microsoft Translator博客上宣布它.

We are working on it and will announce it on the Microsoft Translator blog.

这篇关于获取英语到中文的对齐数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 04:21