EntityRecognitionSkillV3 Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. EntityRecognitionSkillV3
- com.
- com.
public final class EntityRecognitionSkillV3
extends SearchIndexerSkill
Using the Text Analytics API, extracts entities of different types from text.
Constructor Summary
| Constructor | Description |
|---|---|
| EntityRecognitionSkillV3(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Entity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Entity |
fromJson(JsonReader jsonReader)
Reads an instance of Entity |
|
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 |
| String |
getOdataType()
Get the odata |
|
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. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
EntityRecognitionSkillV3
public EntityRecognitionSkillV3(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of EntityRecognitionSkillV3 class.
Parameters:
Method Details
fromJson
public static EntityRecognitionSkillV3 fromJson(JsonReader jsonReader)
Reads an instance of EntityRecognitionSkillV3 from the JsonReader.
Parameters:
Returns:
Throws:
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 API. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: The discriminator for derived types.
Overrides:
EntityRecognitionSkillV3.getOdataType()Returns:
setCategories
public EntityRecognitionSkillV3 setCategories(EntityCategory[] categories)
Set the categories property: A list of entity categories that should be extracted.
Parameters:
Returns:
setCategories
public EntityRecognitionSkillV3 setCategories(List<EntityCategory> categories)
Set the categories property: A list of entity categories that should be extracted.
Parameters:
Returns:
setContext
public EntityRecognitionSkillV3 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:
EntityRecognitionSkillV3.setContext(String context)Parameters:
setDefaultLanguageCode
public EntityRecognitionSkillV3 setDefaultLanguageCode(EntityRecognitionSkillLanguage defaultLanguageCode)
Set the defaultLanguageCode property: A value indicating which language code to use. Default is `en`.
Parameters:
Returns:
setDescription
public EntityRecognitionSkillV3 setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
EntityRecognitionSkillV3.setDescription(String description)Parameters:
setMinimumPrecision
public EntityRecognitionSkillV3 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 EntityRecognitionSkillV3 setModelVersion(String modelVersion)
Set the modelVersion property: The version of the model to use when calling the Text Analytics API. 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 EntityRecognitionSkillV3 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:
EntityRecognitionSkillV3.setName(String name)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
EntityRecognitionSkillV3.toJson(JsonWriter jsonWriter)Parameters:
Throws: