文字翻譯 REST API
文字翻譯是 Azure AI 翻譯工具服務的雲端式功能,屬於 Azure AI 服務的 REST API 系列。 文字翻譯 API 會針對所有支援的語言和方言,翻譯不同語言組之間的文字。 下表列出可用方法:
要求 | 方法 | 描述 |
---|---|---|
languages | GET | 傳回 translation、transliteration 和 dictionary 方法目前支援的語言集合。 此要求不需要驗證標頭,而且您不需要翻譯工具資源,就可以檢視支援的語言集。 |
translate | POST | 將指定的來源語言文字翻譯成目標語言文字。 |
transliterate | POST | 將來源語言指令碼或字母對應至目標語言指令碼或字母。 |
detect | POST | 識別來源語言。 |
breakSentence | POST | 傳回整數陣列,代表來源文字中句子的長度。 |
dictionary/lookup | POST | 傳回單字翻譯的替代項目。 |
dictionary/examples | POST | 傳回詞彙的使用情境。 |