pub struct RuleBasedNER { /* private fields */ }๐Deprecated since 0.1.0: Use RegexNER (no gazetteers) or ML backends (BERT ONNX). Will be removed in 1.0.
Expand description
Rule-based NER (DEPRECATED - use RegexNER or ML backends).
Contains hardcoded gazetteers that give inflated F1 on curated tests
but fail on novel entities. Use NERExtractor::best_available() instead.
Implementationsยง
Sourceยงimpl RuleBasedNER
impl RuleBasedNER
Sourcepub fn with_min_confidence(min_confidence: f64) -> Self
pub fn with_min_confidence(min_confidence: f64) -> Self
Create with custom minimum confidence.
Sourcepub fn without_filtering() -> Self
pub fn without_filtering() -> Self
Create without common word filtering (for debugging).
Trait Implementationsยง
Sourceยงimpl Default for RuleBasedNER
impl Default for RuleBasedNER
Sourceยงimpl Model for RuleBasedNER
impl Model for RuleBasedNER
Sourceยงfn extract_entities(
&self,
text: &str,
_language: Option<&str>,
) -> Result<Vec<Entity>>
fn extract_entities( &self, text: &str, _language: Option<&str>, ) -> Result<Vec<Entity>>
Extract entities from text.
Sourceยงfn supported_types(&self) -> Vec<EntityType>
fn supported_types(&self) -> Vec<EntityType>
Get supported entity types.
Sourceยงfn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if model is available and ready.
Sourceยงfn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a description of the model.
Sourceยงfn capabilities(&self) -> ModelCapabilities
fn capabilities(&self) -> ModelCapabilities
Get capability summary for this model. Read more
Auto Trait Implementationsยง
impl Freeze for RuleBasedNER
impl RefUnwindSafe for RuleBasedNER
impl Send for RuleBasedNER
impl Sync for RuleBasedNER
impl Unpin for RuleBasedNER
impl UnsafeUnpin for RuleBasedNER
impl UnwindSafe for RuleBasedNER
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> 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 more