java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.EntityMention
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class EntityMention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
EntityMention.
  • Constructor Details

    • EntityMention

      public EntityMention()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Entity mention text.

      Returns:
      the text
    • getLocation

      public List<Long> getLocation()
      Gets the location.

      Character offsets indicating the beginning and end of the mention in the analyzed text.

      Returns:
      the location
    • getConfidence

      public Double getConfidence()
      Gets the confidence.

      Confidence in the entity identification from 0 to 1. Higher values indicate higher confidence. In standard entities requests, confidence is returned only for English text. All entities requests that use custom models return the confidence score.

      Returns:
      the confidence