Class EntityMention

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.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
An object describing a contextual entity mention.
  • Constructor Details

    • EntityMention

      public EntityMention()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      The text of the user input example.

      Returns:
      the text
    • getIntent

      public String getIntent()
      Gets the intent.

      The name of the intent.

      Returns:
      the intent
    • getLocation

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

      An array of zero-based character offsets that indicate where the entity mentions begin and end in the input text.

      Returns:
      the location