pub struct Coreference {
pub surface: String,
pub target_token: String,
pub confidence: f64,
pub method: CorefMethod,
}Expand description
A coreference mapping: pronoun/abbreviation → entity token.
Fields§
§surface: StringThe pronoun or abbreviation (e.g., “He”, “TM”, “the company”).
target_token: StringThe resolved entity token (e.g., “PERSON_5”, “ORG_7”).
confidence: f64Confidence (heuristic-based, 0.0–1.0).
method: CorefMethodHow the resolution was made.
Trait Implementations§
Source§impl Clone for Coreference
impl Clone for Coreference
Source§fn clone(&self) -> Coreference
fn clone(&self) -> Coreference
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 Coreference
impl Debug for Coreference
Auto Trait Implementations§
impl Freeze for Coreference
impl RefUnwindSafe for Coreference
impl Send for Coreference
impl Sync for Coreference
impl Unpin for Coreference
impl UnsafeUnpin for Coreference
impl UnwindSafe for Coreference
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