Class EntityRecognitionSkill
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexerSkill
com.azure.search.documents.indexes.models.EntityRecognitionSkill
Text analytics entity recognition.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityRecognitionSkill
(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of EntityRecognitionSkill class.EntityRecognitionSkill
(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version) Creates an instance of EntityRecognitionSkill class. -
Method Summary
Modifier and TypeMethodDescriptionGet the includeTypelessEntities property: Determines whether or not to include entities which are well known but don't conform to a pre-defined type.Get the categories property: A list of entity categories that should be extracted.Get the defaultLanguageCode property: A value indicating which language code to use.Get the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified.Get the modelVersion property: The version of the model to use when calling the Text Analytics service.Gets the version of theEntityRecognitionSkill
.setCategories
(EntityCategory... categories) Set the categories property: A list of entity categories that should be extracted.setCategories
(List<EntityCategory> categories) Set the categories property: A list of entity categories that should be extracted.setContext
(String context) Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content).setDefaultLanguageCode
(EntityRecognitionSkillLanguage defaultLanguageCode) Set the defaultLanguageCode property: A value indicating which language code to use.setDescription
(String description) Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.setMinimumPrecision
(Double minimumPrecision) Set the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified.setModelVersion
(String modelVersion) Set the modelVersion property: The version of the model to use when calling the Text Analytics service.Set the name property: The name of the skill which uniquely identifies it within the skillset.setTypelessEntitiesIncluded
(Boolean includeTypelessEntities) Set the includeTypelessEntities property: Determines whether or not to include entities which are well known but don't conform to a pre-defined type.Methods inherited from class com.azure.search.documents.indexes.models.SearchIndexerSkill
getContext, getDescription, getInputs, getName, getOutputs
-
Constructor Details
-
EntityRecognitionSkill
public EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) Creates an instance of EntityRecognitionSkill class.- Parameters:
inputs
- the inputs value to set.outputs
- the outputs value to set.
-
EntityRecognitionSkill
public EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version) Creates an instance of EntityRecognitionSkill class.- Parameters:
inputs
- the inputs value to set.outputs
- the outputs value to set.version
- the EntityRecognitionSkillVersion value to set.
-
-
Method Details
-
getSkillVersion
Gets the version of theEntityRecognitionSkill
.- Returns:
- The version of the
EntityRecognitionSkill
.
-
getCategories
Get the categories property: A list of entity categories that should be extracted.- Returns:
- the categories value.
-
setCategories
Set the categories property: A list of entity categories that should be extracted.- Parameters:
categories
- the categories value to set.- Returns:
- the EntityRecognitionSkill object itself.
-
getDefaultLanguageCode
Get the defaultLanguageCode property: A value indicating which language code to use. Default is en.- Returns:
- the defaultLanguageCode value.
-
setDefaultLanguageCode
public EntityRecognitionSkill setDefaultLanguageCode(EntityRecognitionSkillLanguage defaultLanguageCode) Set the defaultLanguageCode property: A value indicating which language code to use. Default is en.- Parameters:
defaultLanguageCode
- the defaultLanguageCode value to set.- Returns:
- the EntityRecognitionSkill object itself.
-
areTypelessEntitiesIncluded
Get the includeTypelessEntities property: Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced.- Returns:
- the includeTypelessEntities value.
-
setTypelessEntitiesIncluded
Set the includeTypelessEntities property: Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced.- Parameters:
includeTypelessEntities
- the includeTypelessEntities value to set.- Returns:
- the EntityRecognitionSkill object itself.
- Throws:
IllegalArgumentException
- IfincludeTypelessEntities
is supplied whengetSkillVersion()
isEntityRecognitionSkillVersion.V3
.
-
getMinimumPrecision
Get the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included.- Returns:
- the minimumPrecision value.
-
setMinimumPrecision
Set the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included.- Parameters:
minimumPrecision
- the minimumPrecision value to set.- Returns:
- the EntityRecognitionSkill object itself.
-
setName
Set the name property: 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 '#'.- Overrides:
setName
in classSearchIndexerSkill
- Parameters:
name
- the name value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setDescription
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.- Overrides:
setDescription
in classSearchIndexerSkill
- Parameters:
description
- the description value to set.- Returns:
- the SearchIndexerSkill object itself.
-
setContext
Set the context property: 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.- Overrides:
setContext
in classSearchIndexerSkill
- Parameters:
context
- the context value to set.- Returns:
- the SearchIndexerSkill object itself.
-
getModelVersion
Get the modelVersion property: 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.- Returns:
- the modelVersion value.
-
setModelVersion
Set the modelVersion property: 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.- Parameters:
modelVersion
- the modelVersion value to set.- Returns:
- the EntityRecognitionSkill object itself.
- Throws:
IllegalArgumentException
- IfmodelVersion
is supplied whengetSkillVersion()
isEntityRecognitionSkillVersion.V1
.
-
setCategories
Set the categories property: A list of entity categories that should be extracted.- Parameters:
categories
- the categories value to set.- Returns:
- the EntityRecognitionSkill object itself.
-