TextTranslationSkill Constructors
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.
Overloads
TextTranslationSkill() |
Initializes a new instance of the TextTranslationSkill class. |
TextTranslationSkill(IList<InputFieldMappingEntry>, IList<OutputFieldMappingEntry>, TextTranslationSkillLanguage, String, String, String, Nullable<TextTranslationSkillLanguage>, Nullable<TextTranslationSkillLanguage>) |
Initializes a new instance of the TextTranslationSkill class. |
TextTranslationSkill()
- Source:
- TextTranslationSkill.cs
Initializes a new instance of the TextTranslationSkill class.
public TextTranslationSkill ();
Public Sub New ()
Applies to
TextTranslationSkill(IList<InputFieldMappingEntry>, IList<OutputFieldMappingEntry>, TextTranslationSkillLanguage, String, String, String, Nullable<TextTranslationSkillLanguage>, Nullable<TextTranslationSkillLanguage>)
- Source:
- TextTranslationSkill.cs
Initializes a new instance of the TextTranslationSkill class.
public TextTranslationSkill (System.Collections.Generic.IList<Microsoft.Azure.Search.Models.InputFieldMappingEntry> inputs, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.OutputFieldMappingEntry> outputs, Microsoft.Azure.Search.Models.TextTranslationSkillLanguage defaultToLanguageCode, string name = default, string description = default, string context = default, Microsoft.Azure.Search.Models.TextTranslationSkillLanguage? defaultFromLanguageCode = default, Microsoft.Azure.Search.Models.TextTranslationSkillLanguage? suggestedFrom = default);
new Microsoft.Azure.Search.Models.TextTranslationSkill : System.Collections.Generic.IList<Microsoft.Azure.Search.Models.InputFieldMappingEntry> * System.Collections.Generic.IList<Microsoft.Azure.Search.Models.OutputFieldMappingEntry> * Microsoft.Azure.Search.Models.TextTranslationSkillLanguage * string * string * string * Nullable<Microsoft.Azure.Search.Models.TextTranslationSkillLanguage> * Nullable<Microsoft.Azure.Search.Models.TextTranslationSkillLanguage> -> Microsoft.Azure.Search.Models.TextTranslationSkill
Public Sub New (inputs As IList(Of InputFieldMappingEntry), outputs As IList(Of OutputFieldMappingEntry), defaultToLanguageCode As TextTranslationSkillLanguage, Optional name As String = Nothing, Optional description As String = Nothing, Optional context As String = Nothing, Optional defaultFromLanguageCode As Nullable(Of TextTranslationSkillLanguage) = Nothing, Optional suggestedFrom As Nullable(Of TextTranslationSkillLanguage) = Nothing)
Parameters
- inputs
- IList<InputFieldMappingEntry>
Inputs of the skills could be a column in the source data set, or the output of an upstream skill.
- outputs
- IList<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. Possible values include: 'af', 'ar', 'bn', 'bs', 'bg', 'yue', 'ca', 'zh-Hans', 'zh-Hant', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'fj', 'fil', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hi', 'mww', 'hu', 'is', 'id', 'it', 'ja', 'sw', 'tlh', 'ko', 'lv', 'lt', 'mg', 'ms', 'mt', 'nb', 'fa', 'pl', 'pt', 'otq', 'ro', 'ru', 'sm', 'sr-Cyrl', 'sr-Latn', 'sk', 'sl', 'es', 'sv', 'ty', 'ta', 'te', 'th', 'to', 'tr', 'uk', 'ur', 'vi', 'cy', 'yua'
- 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.
- defaultFromLanguageCode
- Nullable<TextTranslationSkillLanguage>
The language code to translate documents from for documents that don't specify the from language explicitly. Possible values include: 'af', 'ar', 'bn', 'bs', 'bg', 'yue', 'ca', 'zh-Hans', 'zh-Hant', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'fj', 'fil', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hi', 'mww', 'hu', 'is', 'id', 'it', 'ja', 'sw', 'tlh', 'ko', 'lv', 'lt', 'mg', 'ms', 'mt', 'nb', 'fa', 'pl', 'pt', 'otq', 'ro', 'ru', 'sm', 'sr-Cyrl', 'sr-Latn', 'sk', 'sl', 'es', 'sv', 'ty', 'ta', 'te', 'th', 'to', 'tr', 'uk', 'ur', 'vi', 'cy', 'yua'
- 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. Possible values include: 'af', 'ar', 'bn', 'bs', 'bg', 'yue', 'ca', 'zh-Hans', 'zh-Hant', 'hr', 'cs', 'da', 'nl', 'en', 'et', 'fj', 'fil', 'fi', 'fr', 'de', 'el', 'ht', 'he', 'hi', 'mww', 'hu', 'is', 'id', 'it', 'ja', 'sw', 'tlh', 'ko', 'lv', 'lt', 'mg', 'ms', 'mt', 'nb', 'fa', 'pl', 'pt', 'otq', 'ro', 'ru', 'sm', 'sr-Cyrl', 'sr-Latn', 'sk', 'sl', 'es', 'sv', 'ty', 'ta', 'te', 'th', 'to', 'tr', 'uk', 'ur', 'vi', 'cy', 'yua'
Applies to
Azure SDK for .NET