AITranslationTextModelFactory.DictionaryLookupItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET