Condividi tramite


TextTranslationSkill Class

Definition

A skill to translate text from one language to another. https://docs.microsoft.com/azure/search/cognitive-search-skill-text-translation

[Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.TranslationSkill")]
public class TextTranslationSkill : Microsoft.Azure.Search.Models.Skill
[<Newtonsoft.Json.JsonObject("#Microsoft.Skills.Text.TranslationSkill")>]
type TextTranslationSkill = class
    inherit Skill
Public Class TextTranslationSkill
Inherits Skill
Inheritance
TextTranslationSkill
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

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.

Properties

Context

Gets or sets 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.

(Inherited from Skill)
DefaultFromLanguageCode

Gets or sets 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'

DefaultToLanguageCode

Gets or sets 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'

Description

Gets or sets the description of the skill which describes the inputs, outputs, and usage of the skill.

(Inherited from Skill)
Inputs

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

(Inherited from Skill)
Name

Gets or sets 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 '#'.

(Inherited from Skill)
Outputs

Gets or sets 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.

(Inherited from Skill)
SuggestedFrom

Gets or sets 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'

Methods

Validate()

Validate the object.

Applies to