pub struct EntityExtractionConfig {
pub min_confidence: f32,
pub extract_people: bool,
pub extract_organizations: bool,
pub extract_projects: bool,
pub extract_concepts: bool,
pub extract_locations: bool,
pub extract_datetime: bool,
pub extract_references: bool,
pub custom_patterns: HashMap<String, EntityType>,
}Expand description
Configuration for entity extraction
Fields§
§min_confidence: f32Minimum confidence threshold for extraction
extract_people: boolExtract people names
extract_organizations: boolExtract organizations
extract_projects: boolExtract projects
extract_concepts: boolExtract concepts
extract_locations: boolExtract locations
extract_datetime: boolExtract datetime references
extract_references: boolExtract URLs and paths
custom_patterns: HashMap<String, EntityType>Custom patterns to match (name -> entity_type)
Trait Implementations§
Source§impl Clone for EntityExtractionConfig
impl Clone for EntityExtractionConfig
Source§fn clone(&self) -> EntityExtractionConfig
fn clone(&self) -> EntityExtractionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityExtractionConfig
impl Debug for EntityExtractionConfig
Auto Trait Implementations§
impl Freeze for EntityExtractionConfig
impl RefUnwindSafe for EntityExtractionConfig
impl Send for EntityExtractionConfig
impl Sync for EntityExtractionConfig
impl Unpin for EntityExtractionConfig
impl UnwindSafe for EntityExtractionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.