Can Microsoft Translator Service take context as a parameter for translation?

大憨熊 提交于 2020-01-25 07:27:06

问题


I am wondering if Microsoft Translator Service can take context as a parameter for translation. For example, I want to translate the word "run" as in "run a computer program", but not "run on a track".


回答1:


  1. Translate with context
  2. Retrieve the translated phrase that aligns with the word in question: https://docs.microsoft.com/azure/cognitive-services/translator/word-alignment

Be prepared for the operation to fail: There aren't always 1:1 translations of individual words. Works only from and to English.



来源:https://stackoverflow.com/questions/59512784/can-microsoft-translator-service-take-context-as-a-parameter-for-translation

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