public class ParseResult
A NLP parse result.
| Constructor and Description |
|---|
ParseResult(java.lang.String intent,
java.lang.String intentNamespace,
java.util.Locale language,
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> entities,
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> notRetainedEntities,
double intentProbability,
double entitiesProbability,
java.lang.String retainedQuery,
java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A NLP parse result.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
The intent selected.
|
java.lang.String |
component2()
The namespace of the selected intent.
|
java.util.Locale |
component3()
The language selected.
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
component4()
The selected entities.
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
component5()
The entities found but not retained.
|
double |
component6()
The intent evaluated probability.
|
double |
component7()
The average entity evaluation probability.
|
java.lang.String |
component8()
The analysed query.
|
java.util.Map<java.lang.String,java.lang.Double> |
component9()
Other intents with significant probabilities.
|
ParseResult |
copy(java.lang.String intent,
java.lang.String intentNamespace,
java.util.Locale language,
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> entities,
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> notRetainedEntities,
double intentProbability,
double entitiesProbability,
java.lang.String retainedQuery,
java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A NLP parse result.
|
boolean |
equals(java.lang.Object p) |
ParsedEntityValue |
firstValue(java.lang.String role)
Returns the first value for the specified entity role.
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
getEntities()
The selected entities.
|
double |
getEntitiesProbability()
The average entity evaluation probability.
|
java.lang.String |
getIntent()
The intent selected.
|
java.lang.String |
getIntentNamespace()
The namespace of the selected intent.
|
double |
getIntentProbability()
The intent evaluated probability.
|
java.util.Locale |
getLanguage()
The language selected.
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
getNotRetainedEntities()
The entities found but not retained.
|
java.util.Map<java.lang.String,java.lang.Double> |
getOtherIntentsProbabilities()
Other intents with significant probabilities.
|
java.lang.String |
getRetainedQuery()
The analysed query.
|
int |
hashCode() |
java.lang.String |
toString() |
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)