你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AITranslationTextModelFactory.DictionaryLookupItem Method

Definition

Initializes a new instance of DictionaryLookupItem.

public static Azure.AI.Translation.Text.DictionaryLookupItem DictionaryLookupItem (string normalizedSource = default, string displaySource = default, System.Collections.Generic.IEnumerable<Azure.AI.Translation.Text.DictionaryTranslation> translations = default);
static member DictionaryLookupItem : string * string * seq<Azure.AI.Translation.Text.DictionaryTranslation> -> Azure.AI.Translation.Text.DictionaryLookupItem
Public Shared Function DictionaryLookupItem (Optional normalizedSource As String = Nothing, Optional displaySource As String = Nothing, Optional translations As IEnumerable(Of DictionaryTranslation) = Nothing) As DictionaryLookupItem

Parameters

normalizedSource
String

A string giving the normalized form of the source term. For example, if the request is "JOHN", the normalized form will be "john". The content of this field becomes the input to lookup examples.

displaySource
String

A string giving the source term in a form best suited for end-user display. For example, if the input is "JOHN", the display form will reflect the usual spelling of the name: "John".

translations
IEnumerable<DictionaryTranslation>

A list of translations for the source term.

Returns

A new DictionaryLookupItem instance for mocking.

Applies to