EntityLinkingSkill.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.

  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import com.fasterxml.jackson.annotation.JsonTypeId;
  12. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  13. import com.fasterxml.jackson.annotation.JsonTypeName;
  14. import java.util.List;

  15. /** Using the Text Analytics API, extracts linked entities from text. */
  16. @JsonTypeInfo(
  17.         use = JsonTypeInfo.Id.NAME,
  18.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  19.         property = "@odata.type",
  20.         visible = true)
  21. @JsonTypeName("#Microsoft.Skills.Text.V3.EntityLinkingSkill")
  22. @Fluent
  23. public final class EntityLinkingSkill extends SearchIndexerSkill {
  24.     /*
  25.      * Identifies the concrete type of the skill.
  26.      */
  27.     @JsonTypeId
  28.     @JsonProperty(value = "@odata.type", required = true)
  29.     private String odataType = "#Microsoft.Skills.Text.V3.EntityLinkingSkill";

  30.     /*
  31.      * A value indicating which language code to use. Default is en.
  32.      */
  33.     @JsonProperty(value = "defaultLanguageCode")
  34.     private String defaultLanguageCode;

  35.     /*
  36.      * A value between 0 and 1 that be used to only include entities whose
  37.      * confidence score is greater than the value specified. If not set
  38.      * (default), or if explicitly set to null, all entities will be included.
  39.      */
  40.     @JsonProperty(value = "minimumPrecision")
  41.     private Double minimumPrecision;

  42.     /*
  43.      * The version of the model to use when calling the Text Analytics service.
  44.      * It will default to the latest available when not specified. We recommend
  45.      * you do not specify this value unless absolutely necessary.
  46.      */
  47.     @JsonProperty(value = "modelVersion")
  48.     private String modelVersion;

  49.     /**
  50.      * Creates an instance of EntityLinkingSkill class.
  51.      *
  52.      * @param inputs the inputs value to set.
  53.      * @param outputs the outputs value to set.
  54.      */
  55.     @JsonCreator
  56.     public EntityLinkingSkill(
  57.             @JsonProperty(value = "inputs", required = true) List<InputFieldMappingEntry> inputs,
  58.             @JsonProperty(value = "outputs", required = true) List<OutputFieldMappingEntry> outputs) {
  59.         super(inputs, outputs);
  60.     }

  61.     /**
  62.      * Get the defaultLanguageCode property: A value indicating which language code to use. Default is en.
  63.      *
  64.      * @return the defaultLanguageCode value.
  65.      */
  66.     public String getDefaultLanguageCode() {
  67.         return this.defaultLanguageCode;
  68.     }

  69.     /**
  70.      * Set the defaultLanguageCode property: A value indicating which language code to use. Default is en.
  71.      *
  72.      * @param defaultLanguageCode the defaultLanguageCode value to set.
  73.      * @return the EntityLinkingSkill object itself.
  74.      */
  75.     public EntityLinkingSkill setDefaultLanguageCode(String defaultLanguageCode) {
  76.         this.defaultLanguageCode = defaultLanguageCode;
  77.         return this;
  78.     }

  79.     /**
  80.      * Get the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence
  81.      * score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will
  82.      * be included.
  83.      *
  84.      * @return the minimumPrecision value.
  85.      */
  86.     public Double getMinimumPrecision() {
  87.         return this.minimumPrecision;
  88.     }

  89.     /**
  90.      * Set the minimumPrecision property: A value between 0 and 1 that be used to only include entities whose confidence
  91.      * score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will
  92.      * be included.
  93.      *
  94.      * @param minimumPrecision the minimumPrecision value to set.
  95.      * @return the EntityLinkingSkill object itself.
  96.      */
  97.     public EntityLinkingSkill setMinimumPrecision(Double minimumPrecision) {
  98.         this.minimumPrecision = minimumPrecision;
  99.         return this;
  100.     }

  101.     /**
  102.      * Get the modelVersion property: The version of the model to use when calling the Text Analytics service. It will
  103.      * default to the latest available when not specified. We recommend you do not specify this value unless absolutely
  104.      * necessary.
  105.      *
  106.      * @return the modelVersion value.
  107.      */
  108.     public String getModelVersion() {
  109.         return this.modelVersion;
  110.     }

  111.     /**
  112.      * Set the modelVersion property: The version of the model to use when calling the Text Analytics service. It will
  113.      * default to the latest available when not specified. We recommend you do not specify this value unless absolutely
  114.      * necessary.
  115.      *
  116.      * @param modelVersion the modelVersion value to set.
  117.      * @return the EntityLinkingSkill object itself.
  118.      */
  119.     public EntityLinkingSkill setModelVersion(String modelVersion) {
  120.         this.modelVersion = modelVersion;
  121.         return this;
  122.     }
  123. }