SearchModelFactory.TextTranslationSkill Method

Definition

A skill to translate text from one language to another.

public static Azure.Search.Documents.Indexes.Models.TextTranslationSkill TextTranslationSkill(string name = default, string description = default, string context = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> inputs = default, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.OutputFieldMappingEntry> outputs = default, Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage defaultToLanguageCode = default, Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage? defaultFromLanguageCode = default, Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage? suggestedFrom = default);
static member TextTranslationSkill : string * string * string * seq<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> * seq<Azure.Search.Documents.Indexes.Models.OutputFieldMappingEntry> * Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage * Nullable<Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage> * Nullable<Azure.Search.Documents.Indexes.Models.TextTranslationSkillLanguage> -> Azure.Search.Documents.Indexes.Models.TextTranslationSkill
Public Shared Function TextTranslationSkill (Optional name As String = Nothing, Optional description As String = Nothing, Optional context As String = Nothing, Optional inputs As IEnumerable(Of InputFieldMappingEntry) = Nothing, Optional outputs As IEnumerable(Of OutputFieldMappingEntry) = Nothing, Optional defaultToLanguageCode As TextTranslationSkillLanguage = Nothing, Optional defaultFromLanguageCode As Nullable(Of TextTranslationSkillLanguage) = Nothing, Optional suggestedFrom As Nullable(Of TextTranslationSkillLanguage) = Nothing) As TextTranslationSkill

Parameters

name
String

The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.

description
String

The description of the skill which describes the inputs, outputs, and usage of the skill.

context
String

Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.

inputs
IEnumerable<InputFieldMappingEntry>

Inputs of the skills could be a column in the source data set, or the output of an upstream skill.

outputs
IEnumerable<OutputFieldMappingEntry>

The output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill.

defaultToLanguageCode
TextTranslationSkillLanguage

The language code to translate documents into for documents that don't specify the to language explicitly.

defaultFromLanguageCode
Nullable<TextTranslationSkillLanguage>

The language code to translate documents from for documents that don't specify the from language explicitly.

suggestedFrom
Nullable<TextTranslationSkillLanguage>

The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en.

Returns

A new TextTranslationSkill instance for mocking.

Applies to