次の方法で共有


@azure-rest/ai-translation-text package

インターフェイス

BackTranslationOutput

翻訳の戻る

BreakSentenceItemOutput

区切り文の結果を含む項目。

DetectedLanguageOutput

検出された言語を記述するオブジェクト。

DictionaryExampleItemOutput

Dictionary の例の要素

DictionaryExampleOutput

辞書の例

DictionaryExampleTextItem

翻訳されたテキストを含む要素。

DictionaryLookupItemOutput

Dictionary Lookup 要素

DictionaryTranslationOutput

翻訳元の用語。

ErrorDetailsOutput

Translator Service によって返されるエラーの詳細。

ErrorResponseOutput

Translator Service からのエラー応答の表現。

FindSentenceBoundaries
FindSentenceBoundaries200Headers
FindSentenceBoundaries200Response

Break 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

Translator の不適切な表現のアクション

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

type: TranslatorCredential |TranslatorTokenCredential |KeyCredential |TokenCredential:サービスの認証に使用される資格情報。

options
ClientOptions

type: ClientOptions、すべての省略可能なパラメーターのパラメーター

戻り値

default(string, ClientOptions)

TextTranslationClient の新しいインスタンスを初期化する

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

パラメーター

endpoint

string

type: string、サポートされているテキスト変換エンドポイント (プロトコルとホスト名、例: 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、サポートされているテキスト変換エンドポイント (プロトコルとホスト名、例: https://api.cognitive.microsofttranslator.com)。

credential

TranslatorCredential | TranslatorTokenCredential | TokenCredential | KeyCredential

type: 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