public class ConfidenceQlt
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static double |
DFLT_CONFIDENCE_CUTOFF
The default confidence cutoff to be used with most Learn Models.
|
| Constructor and Description |
|---|
ConfidenceQlt(NetricsQuery qlt,
double match_score_cutoff)
Create a Confidence Querylet with default values.
|
ConfidenceQlt(NetricsQuery qlt,
double match_score_cutoff,
double confidence_cutoff,
boolean preindex_it)
Create a Confidence Querylet with values explicitly set.
|
| Modifier and Type | Method and Description |
|---|---|
ConfidenceQlt |
doNotPreindex()
Mark this querylet as to be ignored by the prefilter index.
|
double |
getConfidenceCutoff()
Return the confidence cutoff value for this querylet.
|
double |
getMatchCutoff()
Return the match cutoff value for this querylet.
|
NetricsQuery |
getQuery()
Return the querylet as a NetricsQuery object.
|
boolean |
isPreIndexed()
Return true if this querylet is sent to the prefilter index.
|
ConfidenceQlt |
setConfidenceCutoff(double confidence_cutoff)
Set the confidence cut off value.
|
public static final double DFLT_CONFIDENCE_CUTOFF
public ConfidenceQlt(NetricsQuery qlt, double match_score_cutoff) throws java.lang.IllegalArgumentException
qlt - the querylet that is wrapped by this object.match_score_cutoff - the match score cutoff value. This is the
score that forms the boundary between what
is considered a match and what isn't a match.
If the value is given as -1.0 the absolute
cutoff value for the search is used. If the
search has no absolute cutoff set, either in
in the search opts, or via a Learn Model
threshold, then the -1.0 cutoff value is
treated as an error by the Patterns server.java.lang.IllegalArgumentException - if qlet is null or match_score_cutoff
is less than 0.0 or greater than 1.0.public ConfidenceQlt(NetricsQuery qlt, double match_score_cutoff, double confidence_cutoff, boolean preindex_it)
qlt - the querylet that is wrapped by this object.match_score_cutoff - the match score cutoff value. This is the
score that forms the boundary between what
is considered a match and what isn't a match.
If the value is given as -1.0 the absolute
cutoff value for the search is used. If the
search has no absolute cutoff set, either in
in the search opts, or via a Learn Model
threshold, then the -1.0 cutoff value is
treated as an error by the Patterns server.confidence_cutoff - use the querylet only if its confidence meets
or exceeds this value (if the "invalid only" option is used in FirstValid,
use the querylet if the confidence is below this value).
A value of -1.0 implies the default confidence cutoff should be used.preindex_it - if true this querylet is passed to the
prefilter index. If false this querylet is ignored
by the prefilter: this can both improve response times
and accuracy if this querylet contains information that is completely
redundant with other querylets.java.lang.IllegalArgumentException - if a value is out of range or null.public ConfidenceQlt setConfidenceCutoff(double confidence_cutoff) throws java.lang.IllegalArgumentException
confidence_cutoff - the confidence cut off value for this querylet.java.lang.IllegalArgumentException - if confidence_cutoff is not -1.0
and is either less than 0.0 or greater than 1.0.public ConfidenceQlt doNotPreindex()
public NetricsQuery getQuery()
public double getConfidenceCutoff()
public double getMatchCutoff()
public boolean isPreIndexed()