LanguageDetectionSkill Class
A skill that detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the confidence of the analysis.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.search.documents.indexes._generated.models._models_py3.SearchIndexerSkillLanguageDetectionSkill
Constructor
LanguageDetectionSkill(*, inputs: List[azure.search.documents.indexes._generated.models._models_py3.InputFieldMappingEntry], outputs: List[azure.search.documents.indexes._generated.models._models_py3.OutputFieldMappingEntry], name: Optional[str] = None, description: Optional[str] = None, context: Optional[str] = None, default_country_hint: Optional[str] = None, model_version: Optional[str] = None, **kwargs)
Parameters
- odata_type
- str
Required. Identifies the concrete type of the skill.Constant filled by server.
- name
- str
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
- str
The description of the skill which describes the inputs, outputs, and usage of the skill.
- context
- str
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
- list[InputFieldMappingEntry]
Required. Inputs of the skills could be a column in the source data set, or the output of an upstream skill.
- outputs
- list[OutputFieldMappingEntry]
Required. 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.
- default_country_hint
- str
A country code to use as a hint to the language detection model if it cannot disambiguate the language.
- model_version
- str
The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary.
Feedback
Submit and view feedback for