#[non_exhaustive]pub struct EntityRecognizerEvaluationMetrics {
pub precision: Option<f64>,
pub recall: Option<f64>,
pub f1_score: Option<f64>,
}
Expand description
Detailed information about the accuracy of an entity recognizer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.precision: Option<f64>
A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
recall: Option<f64>
A measure of how complete the recognizer results are for the test data. High recall means that the recognizer returned most of the relevant results.
f1_score: Option<f64>
A measure of how accurate the recognizer results are for the test data. It is derived from the Precision
and Recall
values. The F1Score
is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.
Implementations§
source§impl EntityRecognizerEvaluationMetrics
impl EntityRecognizerEvaluationMetrics
sourcepub fn precision(&self) -> Option<f64>
pub fn precision(&self) -> Option<f64>
A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
sourcepub fn recall(&self) -> Option<f64>
pub fn recall(&self) -> Option<f64>
A measure of how complete the recognizer results are for the test data. High recall means that the recognizer returned most of the relevant results.
sourcepub fn f1_score(&self) -> Option<f64>
pub fn f1_score(&self) -> Option<f64>
A measure of how accurate the recognizer results are for the test data. It is derived from the Precision
and Recall
values. The F1Score
is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.
source§impl EntityRecognizerEvaluationMetrics
impl EntityRecognizerEvaluationMetrics
sourcepub fn builder() -> EntityRecognizerEvaluationMetricsBuilder
pub fn builder() -> EntityRecognizerEvaluationMetricsBuilder
Creates a new builder-style object to manufacture EntityRecognizerEvaluationMetrics
.
Trait Implementations§
source§impl Clone for EntityRecognizerEvaluationMetrics
impl Clone for EntityRecognizerEvaluationMetrics
source§fn clone(&self) -> EntityRecognizerEvaluationMetrics
fn clone(&self) -> EntityRecognizerEvaluationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EntityRecognizerEvaluationMetrics
impl PartialEq for EntityRecognizerEvaluationMetrics
source§fn eq(&self, other: &EntityRecognizerEvaluationMetrics) -> bool
fn eq(&self, other: &EntityRecognizerEvaluationMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.