#[non_exhaustive]pub enum BackendName {
Show 17 variants
Pattern,
Heuristic,
Stacked,
BertOnnx,
GLiNEROnnx,
NuNER,
W2NER,
GLiNERMultitask,
GLiNERPoly,
DeBERTaV3,
ALBERT,
TPLinker,
CandleNER,
GLiNERCandle,
GLiNERMultitaskCandle,
CorefResolver,
UniversalNER,
}Expand description
Type-safe backend identifier.
Replaces string-based backend names with compile-time checked enum.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Pattern
Pattern-based NER using regular expressions.
Heuristic
Heuristic NER using capitalization and context rules.
Stacked
Stacked NER combining Pattern and Heuristic backends.
BertOnnx
BERT-based NER via ONNX runtime.
GLiNEROnnx
GLiNER zero-shot NER via ONNX runtime.
NuNER
NuNER zero-shot NER via ONNX runtime.
W2NER
W2NER word-word relation NER via ONNX runtime.
GLiNERMultitask
GLiNER v2 zero-shot NER via ONNX runtime.
GLiNERPoly
GLiNER with polynomial attention via ONNX runtime.
DeBERTaV3
DeBERTa v3 NER via ONNX runtime.
ALBERT
ALBERT NER via ONNX runtime.
TPLinker
TPLinker relation extraction via ONNX runtime.
CandleNER
Candle-based NER (pure Rust inference).
GLiNERCandle
GLiNER via Candle (pure Rust inference).
GLiNERMultitaskCandle
GLiNER v2 via Candle (pure Rust inference).
CorefResolver
Coreference resolution backend.
UniversalNER
Universal NER supporting all entity types.
Implementations§
Source§impl BackendName
impl BackendName
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Get string representation of backend name.
Returns the canonical string identifier for this backend.
Sourcepub fn try_parse(s: &str) -> Option<Self>
pub fn try_parse(s: &str) -> Option<Self>
Parse backend name from string.
Returns None if the string doesn’t match any known backend.
Sourcepub fn all_available() -> Vec<Self>
pub fn all_available() -> Vec<Self>
Get all available backends (based on enabled features).
Returns a vector of all BackendName variants that are available
given the current feature flags.
Trait Implementations§
Source§impl Clone for BackendName
impl Clone for BackendName
Source§fn clone(&self) -> BackendName
fn clone(&self) -> BackendName
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BackendName
Source§impl Debug for BackendName
impl Debug for BackendName
Source§impl<'de> Deserialize<'de> for BackendName
impl<'de> Deserialize<'de> for BackendName
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>,
Source§impl Display for BackendName
impl Display for BackendName
impl Eq for BackendName
Source§impl From<BackendName> for String
impl From<BackendName> for String
Source§fn from(name: BackendName) -> Self
fn from(name: BackendName) -> Self
Source§impl FromStr for BackendName
impl FromStr for BackendName
Source§impl Hash for BackendName
impl Hash for BackendName
Source§impl PartialEq for BackendName
impl PartialEq for BackendName
Source§fn eq(&self, other: &BackendName) -> bool
fn eq(&self, other: &BackendName) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BackendName
impl Serialize for BackendName
impl StructuralPartialEq for BackendName
Auto Trait Implementations§
impl Freeze for BackendName
impl RefUnwindSafe for BackendName
impl Send for BackendName
impl Sync for BackendName
impl Unpin for BackendName
impl UnsafeUnpin for BackendName
impl UnwindSafe for BackendName
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.