共用方式為


@azure-rest/ai-translation-text package

介面

BackTranslationOutput

上一頁翻譯

BreakSentenceItemOutput

包含中斷句子結果的專案。

DetectedLanguageOutput

物件,描述偵測到的語言。

DictionaryExampleItemOutput

Dictionary Example 元素

DictionaryExampleOutput

字典範例

DictionaryExampleTextItem

包含具有翻譯之文字的專案。

DictionaryLookupItemOutput

字典查閱專案

DictionaryTranslationOutput

翻譯來源字詞。

ErrorDetailsOutput

翻譯工具服務傳回的錯誤詳細數據。

ErrorResponseOutput

翻譯工具服務的錯誤回應表示。

FindSentenceBoundaries
FindSentenceBoundaries200Headers
FindSentenceBoundaries200Response

中斷 SEntence API 的回應。

FindSentenceBoundariesBodyParam
FindSentenceBoundariesDefaultHeaders
FindSentenceBoundariesDefaultResponse
FindSentenceBoundariesHeaderParam
FindSentenceBoundariesHeaders
FindSentenceBoundariesQueryParam
FindSentenceBoundariesQueryParamProperties
GetSupportedLanguages
GetSupportedLanguages200Headers
GetSupportedLanguages200Response

要求已成功。

GetSupportedLanguagesDefaultHeaders
GetSupportedLanguagesDefaultResponse
GetSupportedLanguagesHeaderParam
GetSupportedLanguagesHeaders
GetSupportedLanguagesQueryParam
GetSupportedLanguagesQueryParamProperties
GetSupportedLanguagesResultOutput

語言 API 的回應。

InputTextItem

包含翻譯文字的專案。

LanguageScriptOutput

語言文本的通用屬性

LookupDictionaryEntries
LookupDictionaryEntries200Headers
LookupDictionaryEntries200Response

字典查閱 API 的回應。

LookupDictionaryEntriesBodyParam
LookupDictionaryEntriesDefaultHeaders
LookupDictionaryEntriesDefaultResponse
LookupDictionaryEntriesHeaderParam
LookupDictionaryEntriesHeaders
LookupDictionaryEntriesQueryParam
LookupDictionaryEntriesQueryParamProperties
LookupDictionaryExamples
LookupDictionaryExamples200Headers
LookupDictionaryExamples200Response

字典範例 API 的回應。

LookupDictionaryExamplesBodyParam
LookupDictionaryExamplesDefaultHeaders
LookupDictionaryExamplesDefaultResponse
LookupDictionaryExamplesHeaderParam
LookupDictionaryExamplesHeaders
LookupDictionaryExamplesQueryParam
LookupDictionaryExamplesQueryParamProperties
Routes
SentenceBoundariesOutput

對象,傳回輸入和輸出文字中的句子界限。

SourceDictionaryLanguageOutput

來源字典語言的屬性

SourceTextOutput

在來源語言的預設文稿中輸入文字。

TargetDictionaryLanguageOutput

目標字典語言的屬性

Translate
Translate200Headers
Translate200Response

翻譯 API 的回應。

TranslateBodyParam
TranslateDefaultHeaders
TranslateDefaultResponse
TranslateHeaderParam
TranslateHeaders
TranslateQueryParam
TranslateQueryParamProperties
TranslatedTextAlignmentOutput

對齊信息物件。

TranslatedTextItemOutput

包含已翻譯文字的專案

TranslationLanguageOutput

翻譯屬性的值是 (索引鍵、 值) 組的字典。 每個索引鍵都是 BCP 47 語言標記。 索引鍵會識別可翻譯或翻譯文字的語言。

TranslationTextOutput

翻譯結果

TranslatorCredential
TranslatorTokenCredential
TransliterableScriptOutput

腳本定義,其中可以轉譯指定腳本的腳本清單。

Transliterate
Transliterate200Headers
Transliterate200Response

音譯 API 的回應。

TransliterateBodyParam
TransliterateDefaultHeaders
TransliterateDefaultResponse
TransliterateHeaderParam
TransliterateHeaders
TransliterateQueryParam
TransliterateQueryParamProperties
TransliteratedTextOutput

音譯的文字專案。

TransliterationLanguageOutput

音譯屬性的值是一個字典(索引鍵、值)組。 每個索引鍵都是 BCP 47 語言標記。 索引鍵會識別可將文字從一個腳本轉換成另一個腳本的語言。

類型別名

FindSentenceBoundariesParameters
GetSupportedLanguagesParameters
LanguageDirectionalityOutput

語言方向性

LookupDictionaryEntriesParameters
LookupDictionaryExamplesParameters
ProfanityAction

翻譯工具粗話動作

ProfanityMarker

翻譯工具粗話標記

TextTranslationClient
TextType

TextType 的別名

TranslateParameters
TransliterateParameters

函式

buildMultiCollection(string[], string)
default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)

初始化 TextTranslationClient 的新實例

default(string, ClientOptions)

初始化 TextTranslationClient 的新實例

default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)

初始化 TextTranslationClient 的新實例

isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)
isUnexpected(Translate200Response | TranslateDefaultResponse)
isUnexpected(Transliterate200Response | TransliterateDefaultResponse)
isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)
isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)
isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)

函式詳細資料

buildMultiCollection(string[], string)

function buildMultiCollection(items: string[], parameterName: string): string

參數

items

string[]

parameterName

string

傳回

string

default(TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)

初始化 TextTranslationClient 的新實例

function default(credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient

參數

credential

TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential

類型:TranslatorCredential |TranslatorTokenCredential |KeyCredential |TokenCredential,用來驗證服務的認證。

options
ClientOptions

type:ClientOptions,所有選擇性參數的參數

傳回

default(string, ClientOptions)

初始化 TextTranslationClient 的新實例

function default(endpoint: string, options?: ClientOptions): TextTranslationClient

參數

endpoint

string

type:string、Supported Text Translation endpoints (protocol and hostname,例如:https://api.cognitive.microsofttranslator.com)。

options
ClientOptions

type:ClientOptions,所有選擇性參數的參數

傳回

default(string, TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, ClientOptions)

初始化 TextTranslationClient 的新實例

function default(endpoint: string, credential: TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential, options?: ClientOptions): TextTranslationClient

參數

endpoint

string

type:string、Supported Text Translation endpoints (protocol and hostname,例如:https://api.cognitive.microsofttranslator.com)。

credential

TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential

類型:TranslatorCredential |TranslatorTokenCredential |KeyCredential |TokenCredential,用來驗證服務的認證。

options
ClientOptions

type:ClientOptions,所有選擇性參數的參數

傳回

isUnexpected(GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse)

function isUnexpected(response: GetSupportedLanguages200Response | GetSupportedLanguagesDefaultResponse): response

參數

傳回

response

isUnexpected(Translate200Response | TranslateDefaultResponse)

function isUnexpected(response: Translate200Response | TranslateDefaultResponse): response

參數

傳回

response

isUnexpected(Transliterate200Response | TransliterateDefaultResponse)

function isUnexpected(response: Transliterate200Response | TransliterateDefaultResponse): response

參數

傳回

response

isUnexpected(FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse)

function isUnexpected(response: FindSentenceBoundaries200Response | FindSentenceBoundariesDefaultResponse): response

參數

傳回

response

isUnexpected(LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse)

function isUnexpected(response: LookupDictionaryEntries200Response | LookupDictionaryEntriesDefaultResponse): response

參數

傳回

response

isUnexpected(LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse)

function isUnexpected(response: LookupDictionaryExamples200Response | LookupDictionaryExamplesDefaultResponse): response

參數

傳回

response