public interface ConfidenceFilter
| Modifier and Type | Method and Description |
|---|---|
int |
deserialize()
Deserialize the confidence values.
|
boolean |
isDirty()
Gets if the values are dirty.
|
void |
reset(String modelId)
Resets all stored confidence values for a single model.
|
void |
resetAll()
Resets all stored confidence values.
|
int |
serialize()
Serialize the confidence values.
|
boolean |
test(String modelId,
double entityConfidence,
double confidenceThreshold)
Test the entity's confidence.
|
boolean test(String modelId, double entityConfidence, double confidenceThreshold)
modelId - The ID of the model that extracted the entity.entityConfidence - The entity's confidence.confidenceThreshold - The confidence threshold.true if the entity should not be filtered out; otherwise false.int serialize()
throws Exception
Exception - Thrown if the serialization fails.int deserialize()
throws Exception
Exception - Thrown if the deserialization fails.void resetAll()
void reset(String modelId)
modelId - The model for which to reset values.boolean isDirty()
true if the values are dirty.Copyright © 2018. All rights reserved.