pub struct CorefLinkWeights {
pub same_entity: f64,
pub different_entity: f64,
pub same_title: f64,
pub shared_outlinks: f64,
pub mutual_link: f64,
pub both_nil: f64,
pub nil_mismatch: f64,
}Expand description
Weights for Coref+Link factor.
Fields§
§same_entity: f64Weight for same entity (alias for same_title for learning.rs compatibility)
different_entity: f64Weight for different entity (negative, penalty for coreferent mentions with different links)
same_title: f64Weight for same title (kept for backward compatibility)
Weight for shared outlinks (scaled by count)
mutual_link: f64Weight for mutual links
both_nil: f64Weight for both being NIL
nil_mismatch: f64Penalty for one NIL one not
Trait Implementations§
Source§impl Clone for CorefLinkWeights
impl Clone for CorefLinkWeights
Source§fn clone(&self) -> CorefLinkWeights
fn clone(&self) -> CorefLinkWeights
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 CorefLinkWeights
impl Debug for CorefLinkWeights
Source§impl Default for CorefLinkWeights
impl Default for CorefLinkWeights
Source§impl<'de> Deserialize<'de> for CorefLinkWeights
impl<'de> Deserialize<'de> for CorefLinkWeights
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CorefLinkWeights
impl RefUnwindSafe for CorefLinkWeights
impl Send for CorefLinkWeights
impl Sync for CorefLinkWeights
impl Unpin for CorefLinkWeights
impl UnsafeUnpin for CorefLinkWeights
impl UnwindSafe for CorefLinkWeights
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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