-
-
Field Summary
Fields Modifier and Type Field Description private final Stringintentprivate final StringintentNamespaceprivate final Localelanguageprivate final List<NlpEntityValue>entitiesprivate final List<NlpEntityValue>notRetainedEntitiesprivate final DoubleintentProbabilityprivate final DoubleentitiesProbabilityprivate final StringretainedQueryprivate final Map<String, Double>otherIntentsProbabilitiesprivate final StringstaticResponse
-
Constructor Summary
Constructors Constructor Description NlpResult(String intent, String intentNamespace, Locale language, List<NlpEntityValue> entities, List<NlpEntityValue> notRetainedEntities, Double intentProbability, Double entitiesProbability, String retainedQuery, Map<String, Double> otherIntentsProbabilities, String staticResponse)
-
Method Summary
Modifier and Type Method Description final StringgetIntent()The intent selected. final StringgetIntentNamespace()the namespace of the selected intent. final LocalegetLanguage()The language selected. final List<NlpEntityValue>getEntities()The selected entities. final List<NlpEntityValue>getNotRetainedEntities()The entities found but not retained. final DoublegetIntentProbability()The intent evaluated probability. final DoublegetEntitiesProbability()The average entity evaluation probability. final StringgetRetainedQuery()The analysed query. final Map<String, Double>getOtherIntentsProbabilities()Other intents with significant probabilities. final StringgetStaticResponse()The static text response possibly returned for the NlpQuery final NlpEntityValuefirstValue(String role)final StringentityTextContent(NlpEntityValue value)final BooleanhasIntent(String intent, Double minProbability)-
-
Method Detail
-
getIntentNamespace
final String getIntentNamespace()
the namespace of the selected intent.
-
getLanguage
final Locale getLanguage()
The language selected.
-
getEntities
final List<NlpEntityValue> getEntities()
The selected entities.
-
getNotRetainedEntities
final List<NlpEntityValue> getNotRetainedEntities()
The entities found but not retained.
-
getIntentProbability
final Double getIntentProbability()
The intent evaluated probability.
-
getEntitiesProbability
final Double getEntitiesProbability()
The average entity evaluation probability.
-
getRetainedQuery
final String getRetainedQuery()
The analysed query.
-
getOtherIntentsProbabilities
final Map<String, Double> getOtherIntentsProbabilities()
Other intents with significant probabilities.
-
getStaticResponse
final String getStaticResponse()
The static text response possibly returned for the NlpQuery
-
firstValue
final NlpEntityValue firstValue(String role)
-
entityTextContent
final String entityTextContent(NlpEntityValue value)
-
-
-
-