pub struct PairwiseFeatures {
pub char_distance: usize,
pub mention_distance: usize,
pub exact_match: bool,
pub case_insensitive_match: bool,
pub string_similarity: f64,
pub type_match: bool,
pub mention_type_a: MentionType,
pub mention_type_b: MentionType,
pub is_pronominal_anaphora: bool,
}Expand description
Pairwise features between two mentions (for coreference scoring).
Fields§
§char_distance: usizeDistance in characters between mentions.
mention_distance: usizeDistance in mentions (number of mentions between).
exact_match: boolDo the surface forms match exactly?
case_insensitive_match: boolDo the surface forms match after lowercasing?
string_similarity: f64String similarity (Jaccard on words).
type_match: boolDo the entity types match?
mention_type_a: MentionTypeMention type of first mention.
mention_type_b: MentionTypeMention type of second mention.
is_pronominal_anaphora: boolIs the second mention a pronoun referring back?
Implementations§
Trait Implementations§
Source§impl Clone for PairwiseFeatures
impl Clone for PairwiseFeatures
Source§fn clone(&self) -> PairwiseFeatures
fn clone(&self) -> PairwiseFeatures
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 moreAuto Trait Implementations§
impl Freeze for PairwiseFeatures
impl RefUnwindSafe for PairwiseFeatures
impl Send for PairwiseFeatures
impl Sync for PairwiseFeatures
impl Unpin for PairwiseFeatures
impl UnsafeUnpin for PairwiseFeatures
impl UnwindSafe for PairwiseFeatures
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