public class ParseResult
A NLP parse result.
public ParseResult(@NotNull
java.lang.String intent,
@NotNull
java.lang.String intentNamespace,
@NotNull
java.util.Locale language,
@NotNull
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> entities,
@NotNull
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> notRetainedEntities,
double intentProbability,
double entitiesProbability,
@NotNull
java.lang.String retainedQuery,
@NotNull
java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A NLP parse result.
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.@Nullable public ParsedEntityValue firstValue(@NotNull java.lang.String role)
Returns the first value for the specified entity role.
@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.front.shared.parser.ParsedEntityValue> getEntities()
The selected entities.
@NotNull public java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> 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.
@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.front.shared.parser.ParsedEntityValue> component4()
The selected entities.
@NotNull public java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> 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.
@NotNull public ParseResult copy(@NotNull java.lang.String intent, @NotNull java.lang.String intentNamespace, @NotNull java.util.Locale language, @NotNull java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> entities, @NotNull java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> notRetainedEntities, double intentProbability, double entitiesProbability, @NotNull java.lang.String retainedQuery, @NotNull java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A NLP parse result.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)