pub struct EntityLinker { /* private fields */ }Implementations§
Source§impl EntityLinker
impl EntityLinker
Sourcepub fn from_view(view: &MemoryView) -> Result<Self>
pub fn from_view(view: &MemoryView) -> Result<Self>
Builds reusable exact-match indexes from one temporal memory view.
§Errors
Rejects invalid catalog nodes, duplicate identifiers, and malformed aliases or external identifiers.
Source§impl EntityLinker
impl EntityLinker
Sourcepub fn link(
&self,
mention: &ExtractedEntity,
input: &ExtractionInput,
policy: LinkPolicy,
) -> Result<LinkDecision>
pub fn link( &self, mention: &ExtractedEntity, input: &ExtractionInput, policy: LinkPolicy, ) -> Result<LinkDecision>
Resolves one extracted mention without silently choosing ambiguity.
§Errors
Rejects stable identifiers whose existing entity has a different kind, generated identifier collisions, or invalid policy scores.
Trait Implementations§
Source§impl Clone for EntityLinker
impl Clone for EntityLinker
Source§fn clone(&self) -> EntityLinker
fn clone(&self) -> EntityLinker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntityLinker
impl RefUnwindSafe for EntityLinker
impl Send for EntityLinker
impl Sync for EntityLinker
impl Unpin for EntityLinker
impl UnsafeUnpin for EntityLinker
impl UnwindSafe for EntityLinker
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