public class NlpResult
The result of the class NlpQuery.
class NlpQuerypublic NlpResult(@NotNull
java.lang.String intent,
@NotNull
java.lang.String intentNamespace,
@NotNull
java.util.Locale language,
@NotNull
java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> entities,
@NotNull
java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> notRetainedEntities,
double intentProbability,
double entitiesProbability,
@NotNull
java.lang.String retainedQuery,
@NotNull
java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities,
@Nullable
java.lang.String staticResponse)
The result of the class NlpQuery.
intent - The intent selected.intentNamespace - the namespace of the selected intent.language - The language selected.entities - The selected entities.notRetainedEntities - The entities found but not retained.intentProbability - The intent evaluated probability.entitiesProbability - The average entity evaluation probability.retainedQuery - The analysed query.otherIntentsProbabilities - Other intents with significant probabilities.staticResponse - The static text response possibly returned for the class NlpQueryclass NlpQuery@Nullable public NlpEntityValue firstValue(@NotNull java.lang.String role)
@NotNull
public java.lang.String entityTextContent(@NotNull
NlpEntityValue value)
public boolean hasIntent(@NotNull
java.lang.String intent,
double minProbability)
@NotNull public java.lang.String getIntent()
The intent selected.
@NotNull public java.lang.String getIntentNamespace()
the namespace of the selected intent.
@NotNull public java.util.Locale getLanguage()
The language selected.
@NotNull public java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> getEntities()
The selected entities.
@NotNull public java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> getNotRetainedEntities()
The entities found but not retained.
public double getIntentProbability()
The intent evaluated probability.
public double getEntitiesProbability()
The average entity evaluation probability.
@NotNull public java.lang.String getRetainedQuery()
The analysed query.
@NotNull public java.util.Map<java.lang.String,java.lang.Double> getOtherIntentsProbabilities()
Other intents with significant probabilities.
@Nullable public java.lang.String getStaticResponse()
The static text response possibly returned for the
class NlpQuery@NotNull public java.lang.String component1()
The intent selected.
@NotNull public java.lang.String component2()
the namespace of the selected intent.
@NotNull public java.util.Locale component3()
The language selected.
@NotNull public java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> component4()
The selected entities.
@NotNull public java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> component5()
The entities found but not retained.
public double component6()
The intent evaluated probability.
public double component7()
The average entity evaluation probability.
@NotNull public java.lang.String component8()
The analysed query.
@NotNull public java.util.Map<java.lang.String,java.lang.Double> component9()
Other intents with significant probabilities.
@Nullable public java.lang.String component10()
The static text response possibly returned for the
class NlpQuery@NotNull public NlpResult copy(@NotNull java.lang.String intent, @NotNull java.lang.String intentNamespace, @NotNull java.util.Locale language, @NotNull java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> entities, @NotNull java.util.List<ai.tock.nlp.api.client.model.NlpEntityValue> notRetainedEntities, double intentProbability, double entitiesProbability, @NotNull java.lang.String retainedQuery, @NotNull java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities, @Nullable java.lang.String staticResponse)
The result of the class NlpQuery.
class NlpQuery@NotNull public java.lang.String toString()
The result of the class NlpQuery.
class NlpQuerypublic int hashCode()
The result of the class NlpQuery.
class NlpQuerypublic boolean equals(@Nullable
java.lang.Object p)
The result of the class NlpQuery.
class NlpQuery