pub struct ALBERTNER { /* private fields */ }Expand description
ALBERT NER backend using ONNX Runtime.
Currently wraps BertNEROnnx with ALBERT model support. ALBERT models use the same ONNX interface as BERT.
Implementations§
Trait Implementations§
Source§impl BatchCapable for ALBERTNER
impl BatchCapable for ALBERTNER
Source§impl Model for ALBERTNER
impl Model for ALBERTNER
Source§fn extract_entities(
&self,
text: &str,
language: Option<&str>,
) -> Result<Vec<Entity>, Error>
fn extract_entities( &self, text: &str, language: Option<&str>, ) -> Result<Vec<Entity>, Error>
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
Source§impl StreamingCapable for ALBERTNER
impl StreamingCapable for ALBERTNER
Source§fn extract_entities_streaming(
&self,
chunk: &str,
offset: usize,
) -> Result<Vec<Entity>, Error>
fn extract_entities_streaming( &self, chunk: &str, offset: usize, ) -> Result<Vec<Entity>, Error>
Extract entities from a chunk of text, adjusting offsets by the chunk’s position. Read more
Source§fn recommended_chunk_size(&self) -> usize
fn recommended_chunk_size(&self) -> usize
Get the recommended chunk size for streaming extraction. Read more
impl NamedEntityCapable for ALBERTNER
Auto Trait Implementations§
impl !Freeze for ALBERTNER
impl RefUnwindSafe for ALBERTNER
impl Send for ALBERTNER
impl Sync for ALBERTNER
impl Unpin for ALBERTNER
impl UnsafeUnpin for ALBERTNER
impl UnwindSafe for ALBERTNER
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