Package ai.tock.nlp.admin.model
Class ClassificationReport
-
- All Implemented Interfaces:
public final class ClassificationReport
-
-
Field Summary
Fields Modifier and Type Field Description private final Id<IntentDefinition>intentIdprivate final List<ClassifiedEntityReport>entitiesprivate final List<ClassifiedEntityReport>notRetainedEntitiesprivate final DoubleintentProbabilityprivate final DoubleentitiesProbabilityprivate final Map<String, Double>otherIntentsProbabilitiesprivate final InstantlastUsageprivate final LongusageCountprivate final LongunknownCount
-
Constructor Summary
Constructors Constructor Description ClassificationReport(ParseResult result, Id<IntentDefinition> intentId)ClassificationReport(ClassifiedSentence sentence)ClassificationReport(IntentTestError error)ClassificationReport(EntityTestError error)ClassificationReport(Id<IntentDefinition> intentId, List<ClassifiedEntityReport> entities, List<ClassifiedEntityReport> notRetainedEntities, Double intentProbability, Double entitiesProbability, Map<String, Double> otherIntentsProbabilities, Instant lastUsage, Long usageCount, Long unknownCount)
-
Method Summary
Modifier and Type Method Description final Id<IntentDefinition>getIntentId()final List<ClassifiedEntityReport>getEntities()final List<ClassifiedEntityReport>getNotRetainedEntities()The entities found but not retained. final DoublegetIntentProbability()final DoublegetEntitiesProbability()final Map<String, Double>getOtherIntentsProbabilities()final InstantgetLastUsage()The last usage date (for a real user) if any. final LonggetUsageCount()The total number of uses of this sentence. final LonggetUnknownCount()The total number of unknown count of this sentence. final ClassificationtoClassification()-
-
Constructor Detail
-
ClassificationReport
ClassificationReport(ParseResult result, Id<IntentDefinition> intentId)
-
ClassificationReport
ClassificationReport(ClassifiedSentence sentence)
-
ClassificationReport
ClassificationReport(IntentTestError error)
-
ClassificationReport
ClassificationReport(EntityTestError error)
-
ClassificationReport
ClassificationReport(Id<IntentDefinition> intentId, List<ClassifiedEntityReport> entities, List<ClassifiedEntityReport> notRetainedEntities, Double intentProbability, Double entitiesProbability, Map<String, Double> otherIntentsProbabilities, Instant lastUsage, Long usageCount, Long unknownCount)
-
-
Method Detail
-
getIntentId
final Id<IntentDefinition> getIntentId()
-
getEntities
final List<ClassifiedEntityReport> getEntities()
-
getNotRetainedEntities
final List<ClassifiedEntityReport> getNotRetainedEntities()
The entities found but not retained.
-
getIntentProbability
final Double getIntentProbability()
-
getEntitiesProbability
final Double getEntitiesProbability()
-
getOtherIntentsProbabilities
final Map<String, Double> getOtherIntentsProbabilities()
-
getLastUsage
final Instant getLastUsage()
The last usage date (for a real user) if any.
-
getUsageCount
final Long getUsageCount()
The total number of uses of this sentence.
-
getUnknownCount
final Long getUnknownCount()
The total number of unknown count of this sentence.
-
toClassification
final Classification toClassification()
-
-
-
-