Obtaining alignment data for English to Chinese

只谈情不闲聊 提交于 2019-12-04 02:24:10

问题


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.



来源:https://stackoverflow.com/questions/47148764/obtaining-alignment-data-for-english-to-chinese

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!