Class Entity

java.lang.Object
com.vivoka.vsdk.nlu.result.Entity

public class Entity extends Object
Represents a named entity in the NLU result.
  • Constructor Details

    • Entity

      public Entity(org.json.JSONObject json) throws org.json.JSONException
      Throws:
      org.json.JSONException
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of the entity.
    • getConfidence

      public double getConfidence()
      Returns:
      The confidence of the entity.
    • getValue

      public String getValue()
      Returns:
      The value of the entity.
    • getStartIndex

      public long getStartIndex()
      Returns:
      The start index of the entity.
    • getEndIndex

      public long getEndIndex()
      Returns:
      The end index of the entity.