pub struct NERExtractionConfig {
pub entity_types: Vec<String>,
pub use_capitalized_patterns: bool,
pub use_title_case_patterns: bool,
pub use_quoted_patterns: bool,
pub use_abbreviations: bool,
pub use_contextual_disambiguation: bool,
pub min_context_words: usize,
pub min_confidence: f32,
pub use_positional_boost: bool,
pub use_frequency_boost: bool,
}Expand description
Configuration for Named Entity Recognition (NER) extraction from text. Controls how named entities are identified and extracted from documents.
Fields§
§entity_types: Vec<String>List of entity types to recognize (e.g., [“PERSON”, “ORG”, “LOCATION”])
use_capitalized_patterns: boolWhether to recognize capitalized words as potential named entities
use_title_case_patterns: boolWhether to recognize title-cased phrases as potential named entities
use_quoted_patterns: boolWhether to recognize quoted phrases as potential named entities
use_abbreviations: boolWhether to recognize common abbreviations as entities
use_contextual_disambiguation: boolWhether to use contextual disambiguation to resolve entity ambiguity
min_context_words: usizeMinimum number of context words to consider for disambiguation
min_confidence: f32Minimum confidence score (0.0-1.0) required for an entity to be included
use_positional_boost: boolWhether to apply positional boost to entities based on their position in the text
use_frequency_boost: boolWhether to apply frequency boost to entities based on their frequency in the text
Trait Implementations§
Source§impl Clone for NERExtractionConfig
impl Clone for NERExtractionConfig
Source§fn clone(&self) -> NERExtractionConfig
fn clone(&self) -> NERExtractionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NERExtractionConfig
impl Debug for NERExtractionConfig
Source§impl Default for NERExtractionConfig
impl Default for NERExtractionConfig
Source§impl<'de> Deserialize<'de> for NERExtractionConfig
impl<'de> Deserialize<'de> for NERExtractionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for NERExtractionConfig
impl RefUnwindSafe for NERExtractionConfig
impl Send for NERExtractionConfig
impl Sync for NERExtractionConfig
impl Unpin for NERExtractionConfig
impl UnsafeUnpin for NERExtractionConfig
impl UnwindSafe for NERExtractionConfig
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
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>
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>
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 more