-
- All Implemented Interfaces:
public final class ParseResultA NLP parse result.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringintentprivate final StringintentNamespaceprivate final Localelanguageprivate final List<ParsedEntityValue>entitiesprivate final List<ParsedEntityValue>notRetainedEntitiesprivate final DoubleintentProbabilityprivate final DoubleentitiesProbabilityprivate final StringretainedQueryprivate final Map<String, Double>otherIntentsProbabilities
-
Constructor Summary
Constructors Constructor Description ParseResult(String intent, String intentNamespace, Locale language, List<ParsedEntityValue> entities, List<ParsedEntityValue> notRetainedEntities, Double intentProbability, Double entitiesProbability, String retainedQuery, Map<String, Double> otherIntentsProbabilities)
-
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<ParsedEntityValue>getEntities()The selected entities. final List<ParsedEntityValue>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 ParsedEntityValuefirstValue(String role)Returns the first value for the specified entity role. final ParseResultobfuscate(List<IntRange> obfuscatedRanges)Obfuscates the result. -
-
Method Detail
-
getIntentNamespace
final String getIntentNamespace()
The namespace of the selected intent.
-
getLanguage
final Locale getLanguage()
The language selected.
-
getEntities
final List<ParsedEntityValue> getEntities()
The selected entities.
-
getNotRetainedEntities
final List<ParsedEntityValue> 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.
-
firstValue
final ParsedEntityValue firstValue(String role)
Returns the first value for the specified entity role.
-
obfuscate
final ParseResult obfuscate(List<IntRange> obfuscatedRanges)
Obfuscates the result.
-
-
-
-