问题
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:
- Translate with context
- 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