Package com.vivoka.vsdk.nlu.result
Class Entity
java.lang.Object
com.vivoka.vsdk.nlu.result.Entity
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
- Returns:
- The name of the entity.
-
getConfidence
public double getConfidence()- Returns:
- The confidence of the entity.
-
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.
-