Share via


TextTranslationClient.LookupDictionaryExamples Method

Definition

Overloads

LookupDictionaryExamples(String, String, InputTextWithTranslation, Guid, CancellationToken)

Dictionary Examples.

LookupDictionaryExamples(String, String, InputTextWithTranslation, String, CancellationToken)

Dictionary Examples.

LookupDictionaryExamples(String, String, IEnumerable<InputTextWithTranslation>, Guid, CancellationToken)

Dictionary Examples.

LookupDictionaryExamples(String, String, IEnumerable<InputTextWithTranslation>, String, CancellationToken)

Dictionary Examples.

LookupDictionaryExamples(String, String, InputTextWithTranslation, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>> LookupDictionaryExamples (string from, string to, Azure.AI.Translation.Text.InputTextWithTranslation content, Guid clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamples : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * Guid * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
override this.LookupDictionaryExamples : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * Guid * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
Public Overridable Function LookupDictionaryExamples (from As String, to As String, content As InputTextWithTranslation, Optional clientTraceId As Guid = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of DictionaryExampleItem))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
InputTextWithTranslation

Array of the text to be sent to dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamples(String, String, InputTextWithTranslation, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>> LookupDictionaryExamples (string from, string to, Azure.AI.Translation.Text.InputTextWithTranslation content, string clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamples : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * string * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
override this.LookupDictionaryExamples : string * string * Azure.AI.Translation.Text.InputTextWithTranslation * string * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
Public Overridable Function LookupDictionaryExamples (from As String, to As String, content As InputTextWithTranslation, Optional clientTraceId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of DictionaryExampleItem))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
InputTextWithTranslation

Array of the text to be sent to dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamples(String, String, IEnumerable<InputTextWithTranslation>, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>> LookupDictionaryExamples (string from, string to, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.InputTextWithTranslation> content, Guid clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamples : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * Guid * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
override this.LookupDictionaryExamples : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * Guid * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
Public Overridable Function LookupDictionaryExamples (from As String, to As String, content As IEnumerable(Of InputTextWithTranslation), Optional clientTraceId As Guid = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of DictionaryExampleItem))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
IEnumerable<InputTextWithTranslation>

Array of the text to be sent to dictionary.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to

LookupDictionaryExamples(String, String, IEnumerable<InputTextWithTranslation>, String, CancellationToken)

Source:
TextTranslationClient.cs

Dictionary Examples.

public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>> LookupDictionaryExamples (string from, string to, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.InputTextWithTranslation> content, string clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member LookupDictionaryExamples : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * string * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
override this.LookupDictionaryExamples : string * string * seq<Azure.AI.Translation.Text.InputTextWithTranslation> * string * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.DictionaryExampleItem>>
Public Overridable Function LookupDictionaryExamples (from As String, to As String, content As IEnumerable(Of InputTextWithTranslation), Optional clientTraceId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of DictionaryExampleItem))

Parameters

from
String

Specifies the language of the input text. The source language must be one of the supported languages included in the dictionary scope.

to
String

Specifies the language of the output text. The target language must be one of the supported languages included in the dictionary scope.

content
IEnumerable<InputTextWithTranslation>

Array of the text to be sent to dictionary.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

from, to or content is null.

Applies to