Class EntityRecognitionSkill


  • public final class EntityRecognitionSkill
    extends SearchIndexerSkill
    Text analytics entity recognition.
    • Method Detail

      • getCategories

        public List<EntityCategory> getCategories()
        Get the categories property: A list of entity categories that should be extracted.
        Returns:
        the categories value.
      • setCategories

        public EntityRecognitionSkill setCategories​(List<EntityCategory> categories)
        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

        public EntityRecognitionSkillLanguage 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

        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:
        the includeTypelessEntities value.
      • 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:
        includeTypelessEntities - the includeTypelessEntities value to set.
        Returns:
        the EntityRecognitionSkill object itself.
        Throws:
        IllegalArgumentException - If includeTypelessEntities is supplied when getSkillVersion() is EntityRecognitionSkillVersion.V3.
      • 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:
        the minimumPrecision value.
      • 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:
        minimumPrecision - the minimumPrecision value to set.
        Returns:
        the EntityRecognitionSkill object itself.
      • setCategories

        public EntityRecognitionSkill setCategories​(EntityCategory... categories)
        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.
      • 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:
        the modelVersion value.
      • 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:
        modelVersion - the modelVersion value to set.
        Returns:
        the EntityRecognitionSkill object itself.
        Throws:
        IllegalArgumentException - If modelVersion is supplied when getSkillVersion() is EntityRecognitionSkillVersion.V1.