#[non_exhaustive]pub struct EntityRecognizerMetadata {
pub number_of_trained_documents: Option<i32>,
pub number_of_test_documents: Option<i32>,
pub evaluation_metrics: Option<EntityRecognizerEvaluationMetrics>,
pub entity_types: Option<Vec<EntityRecognizerMetadataEntityTypesListItem>>,
}Expand description
Detailed information about 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.number_of_trained_documents: Option<i32>The number of documents in the input data that were used to train the entity recognizer. Typically this is 80 to 90 percent of the input documents.
number_of_test_documents: Option<i32>The number of documents in the input data that were used to test the entity recognizer. Typically this is 10 to 20 percent of the input documents.
evaluation_metrics: Option<EntityRecognizerEvaluationMetrics>Detailed information about the accuracy of an entity recognizer.
entity_types: Option<Vec<EntityRecognizerMetadataEntityTypesListItem>>Entity types from the metadata of an entity recognizer.
Implementations§
source§impl EntityRecognizerMetadata
impl EntityRecognizerMetadata
sourcepub fn number_of_trained_documents(&self) -> Option<i32>
pub fn number_of_trained_documents(&self) -> Option<i32>
The number of documents in the input data that were used to train the entity recognizer. Typically this is 80 to 90 percent of the input documents.
sourcepub fn number_of_test_documents(&self) -> Option<i32>
pub fn number_of_test_documents(&self) -> Option<i32>
The number of documents in the input data that were used to test the entity recognizer. Typically this is 10 to 20 percent of the input documents.
sourcepub fn evaluation_metrics(&self) -> Option<&EntityRecognizerEvaluationMetrics>
pub fn evaluation_metrics(&self) -> Option<&EntityRecognizerEvaluationMetrics>
Detailed information about the accuracy of an entity recognizer.
sourcepub fn entity_types(
&self
) -> Option<&[EntityRecognizerMetadataEntityTypesListItem]>
pub fn entity_types( &self ) -> Option<&[EntityRecognizerMetadataEntityTypesListItem]>
Entity types from the metadata of an entity recognizer.
source§impl EntityRecognizerMetadata
impl EntityRecognizerMetadata
sourcepub fn builder() -> EntityRecognizerMetadataBuilder
pub fn builder() -> EntityRecognizerMetadataBuilder
Creates a new builder-style object to manufacture EntityRecognizerMetadata.
Trait Implementations§
source§impl Clone for EntityRecognizerMetadata
impl Clone for EntityRecognizerMetadata
source§fn clone(&self) -> EntityRecognizerMetadata
fn clone(&self) -> EntityRecognizerMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityRecognizerMetadata
impl Debug for EntityRecognizerMetadata
source§impl PartialEq<EntityRecognizerMetadata> for EntityRecognizerMetadata
impl PartialEq<EntityRecognizerMetadata> for EntityRecognizerMetadata
source§fn eq(&self, other: &EntityRecognizerMetadata) -> bool
fn eq(&self, other: &EntityRecognizerMetadata) -> bool
self and other values to be equal, and is used
by ==.