-->

Obtaining alignment data for English to Chinese

2020-03-31 08:50发布

问题:

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>

See https://msdn.microsoft.com/en-us/library/dn198370.aspx

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

Alignment is only returned for a subset of the language pairs at this point: from English to any other language; from any other language to English except for Chinese Simplified, Chinese Traditional, and Latvian to English from Japanese to Korean or from Korean to Japanese

回答1:

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.

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