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

TextTranslationSkill interface

将文本从一种语言翻译成另一种语言的技能。

扩展

属性

defaultFromLanguageCode

用于翻译文档的语言代码,用于不显式指定来自语言的文档。

defaultToLanguageCode

用于将文档翻译为未显式指定语言的文档的语言代码。

odatatype

多态鉴别器,它指定此对象可以的不同类型的

suggestedFrom

如果未提供 fromLanguageCode 输入和 defaultFromLanguageCode 参数,并且自动语言检测不成功,则用于翻译文档的语言代码。 默认值为 en。

继承属性

context

表示执行操作的级别,例如文档根或文档内容(例如 /document 或 /document/content)。 默认值为 /document。

description

描述技能的说明,描述技能的输入、输出和用法。

inputs

技能的输入可以是源数据集中的列,也可以是上游技能的输出。

name

唯一标识技能集内的技能的名称。 未定义名称的技能将在技能数组中为其基于 1 的索引提供默认名称,其前缀为字符“#”。

outputs

技能的输出是搜索索引中的字段,或者是另一个技能可以用作输入的值。

属性详细信息

defaultFromLanguageCode

用于翻译文档的语言代码,用于不显式指定来自语言的文档。

defaultFromLanguageCode?: "da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

属性值

"da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

defaultToLanguageCode

用于将文档翻译为未显式指定语言的文档的语言代码。

defaultToLanguageCode: "da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

属性值

"da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

odatatype

多态鉴别器,它指定此对象可以的不同类型的

odatatype: "#Microsoft.Skills.Text.TranslationSkill"

属性值

"#Microsoft.Skills.Text.TranslationSkill"

suggestedFrom

如果未提供 fromLanguageCode 输入和 defaultFromLanguageCode 参数,并且自动语言检测不成功,则用于翻译文档的语言代码。 默认值为 en。

suggestedFrom?: "da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

属性值

"da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt" | "ar" | "cs" | "zh-Hans" | "zh-Hant" | "nl" | "el" | "hu" | "ja" | "pl" | "pt-PT" | "ru" | "sv" | "tr" | "bg" | "bs" | "ca" | "cy" | "et" | "ga" | "he" | "hi" | "hr" | "id" | "lt" | "lv" | "ms" | "nb" | "ro" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "th" | "uk" | "vi" | "af" | "fj" | "fil" | "ht" | "mww" | "is" | "mt" | "mi" | "fa" | "pa" | "sm" | "sw" | "to" | "ur" | "yua" | "pt-br" | "bn" | "yue" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "mg" | "otq" | "ty" | "ta" | "te" | "kn" | "ml"

继承属性详细信息

context

表示执行操作的级别,例如文档根或文档内容(例如 /document 或 /document/content)。 默认值为 /document。

context?: string

属性值

string

继承自BaseSearchIndexerSkill.context

description

描述技能的说明,描述技能的输入、输出和用法。

description?: string

属性值

string

继承自BaseSearchIndexerSkill.description

inputs

技能的输入可以是源数据集中的列,也可以是上游技能的输出。

inputs: InputFieldMappingEntry[]

属性值

继承自BaseSearchIndexerSkill.inputs

name

唯一标识技能集内的技能的名称。 未定义名称的技能将在技能数组中为其基于 1 的索引提供默认名称,其前缀为字符“#”。

name?: string

属性值

string

继承自BaseSearchIndexerSkill.name

outputs

技能的输出是搜索索引中的字段,或者是另一个技能可以用作输入的值。

outputs: OutputFieldMappingEntry[]

属性值

继承自baseSearchIndexerSkill.outputs