pub struct ExtractionOptions {
pub existing_entities: Vec<String>,
pub min_confidence: f64,
}Expand description
Options for entity extraction.
Fields§
§existing_entities: Vec<String>Known entity names for context
min_confidence: f64Minimum confidence threshold (0.0-1.0)
Implementations§
Source§impl ExtractionOptions
impl ExtractionOptions
Sourcepub fn with_existing_entities(self, entities: Vec<String>) -> Self
pub fn with_existing_entities(self, entities: Vec<String>) -> Self
Add existing entities for context.
Sourcepub fn with_min_confidence(self, min_confidence: f64) -> Self
pub fn with_min_confidence(self, min_confidence: f64) -> Self
Trait Implementations§
Source§impl Clone for ExtractionOptions
impl Clone for ExtractionOptions
Source§fn clone(&self) -> ExtractionOptions
fn clone(&self) -> ExtractionOptions
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 ExtractionOptions
impl Debug for ExtractionOptions
Source§impl Default for ExtractionOptions
impl Default for ExtractionOptions
Source§fn default() -> ExtractionOptions
fn default() -> ExtractionOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExtractionOptions
impl RefUnwindSafe for ExtractionOptions
impl Send for ExtractionOptions
impl Sync for ExtractionOptions
impl Unpin for ExtractionOptions
impl UnwindSafe for ExtractionOptions
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