pub struct SpanCandidate {
pub doc_idx: u32,
pub start: u32,
pub end: u32,
}Expand description
A candidate span for entity extraction.
In GLiNER/bi-encoder systems, we generate all possible spans up to a maximum width and score them against entity type embeddings.
Fields§
§doc_idx: u32Document index in the batch
start: u32Start token index (within the document)
end: u32End token index (exclusive)
Implementations§
Trait Implementations§
Source§impl Clone for SpanCandidate
impl Clone for SpanCandidate
Source§fn clone(&self) -> SpanCandidate
fn clone(&self) -> SpanCandidate
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 SpanCandidate
impl Debug for SpanCandidate
Source§impl Hash for SpanCandidate
impl Hash for SpanCandidate
Source§impl PartialEq for SpanCandidate
impl PartialEq for SpanCandidate
impl Copy for SpanCandidate
impl Eq for SpanCandidate
impl StructuralPartialEq for SpanCandidate
Auto Trait Implementations§
impl Freeze for SpanCandidate
impl RefUnwindSafe for SpanCandidate
impl Send for SpanCandidate
impl Sync for SpanCandidate
impl Unpin for SpanCandidate
impl UnsafeUnpin for SpanCandidate
impl UnwindSafe for SpanCandidate
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