Class Mention

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

public class Mention
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A mention of a contextual entity.
  • Method Details

    • newBuilder

      public Mention.Builder newBuilder()
      New builder.
      Returns:
      a Mention builder
    • entity

      public String entity()
      Gets the entity.

      The name of the entity.

      Returns:
      the entity
    • location

      public List<Long> location()
      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