EntityRecognitionSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. EntityRecognitionSkill
- com.
- com.
public final class EntityRecognitionSkill
extends SearchIndexerSkill
Text analytics entity recognition.
Constructor Summary
| Constructor | Description |
|---|---|
| EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Deprecated
Use EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version) as V1 is deprecated. See skill deprecation for more information.
Creates an instance of Entity |
| EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version) |
Creates an instance of Entity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
areTypelessEntitiesIncluded()
Get the include |
|
List<Entity |
getCategories()
Get the categories property: A list of entity categories that should be extracted. |
|
Entity |
getDefaultLanguageCode()
Get the default |
| Double |
getMinimumPrecision()
Get the minimum |
| String |
getModelVersion()
Get the model |
|
Entity |
getSkillVersion()
Gets the version of the EntityRecognitionSkill. |
|
Entity |
setCategories(EntityCategory[] categories)
Set the categories property: A list of entity categories that should be extracted. |
|
Entity |
setCategories(List<EntityCategory> categories)
Set the categories property: A list of entity categories that should be extracted. |
|
Entity |
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). |
|
Entity |
setDefaultLanguageCode(EntityRecognitionSkillLanguage defaultLanguageCode)
Set the default |
|
Entity |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Entity |
setMinimumPrecision(Double minimumPrecision)
Set the minimum |
|
Entity |
setModelVersion(String modelVersion)
Set the model |
|
Entity |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Entity |
setTypelessEntitiesIncluded(Boolean includeTypelessEntities)
Set the include |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
EntityRecognitionSkill
@Deprecated
public EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Deprecated
Creates an instance of EntityRecognitionSkill class.
The instance of SentimentSkill uses V1, to set the specific version of the skill use EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version).
Parameters:
EntityRecognitionSkill
public EntityRecognitionSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs, EntityRecognitionSkillVersion version)
Creates an instance of EntityRecognitionSkill class.
Parameters:
Method Details
areTypelessEntitiesIncluded
public Boolean 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:
getCategories
public List<EntityCategory> getCategories()
Get the categories property: A list of entity categories that should be extracted.
Returns:
getDefaultLanguageCode
public EntityRecognitionSkillLanguage getDefaultLanguageCode()
Get the defaultLanguageCode property: A value indicating which language code to use. Default is en.
Returns:
getMinimumPrecision
public Double 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:
getModelVersion
public String 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:
getSkillVersion
public EntityRecognitionSkillVersion getSkillVersion()
Gets the version of the EntityRecognitionSkill.
Returns:
setCategories
public EntityRecognitionSkill setCategories(EntityCategory[] categories)
Set the categories property: A list of entity categories that should be extracted.
Parameters:
Returns:
setCategories
public EntityRecognitionSkill setCategories(List<EntityCategory> categories)
Set the categories property: A list of entity categories that should be extracted.
Parameters:
Returns:
setContext
public EntityRecognitionSkill 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). The default is /document.
Overrides:
EntityRecognitionSkill.setContext(String context)Parameters:
setDefaultLanguageCode
public EntityRecognitionSkill setDefaultLanguageCode(EntityRecognitionSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is en.
Parameters:
Returns:
setDescription
public EntityRecognitionSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
EntityRecognitionSkill.setDescription(String description)Parameters:
setMinimumPrecision
public EntityRecognitionSkill 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. If not set (default), or if explicitly set to null, all entities will be included.
Parameters:
Returns:
setModelVersion
public EntityRecognitionSkill setModelVersion(String modelVersion)
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:
Returns:
setName
public EntityRecognitionSkill setName(String name)
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:
EntityRecognitionSkill.setName(String name)Parameters:
setTypelessEntitiesIncluded
public EntityRecognitionSkill 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. 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:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EntityRecognitionSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: