pub struct MatchBreakdown {
pub name_score: Option<f64>,
pub name_phonetic_score: Option<f64>,
pub description_score: Option<f64>,
pub disambiguating_description_score: Option<f64>,
pub identifiers_score: Option<f64>,
pub url_score: Option<f64>,
pub same_as_score: Option<f64>,
pub image_score: Option<f64>,
pub main_entity_of_page_score: Option<f64>,
pub additional_types_score: Option<f64>,
}Expand description
Per-field score breakdown returned with every MatchResult.
Each field is Option<f64>:
Some(score)— the field was scored; the value is in[0.0, 1.0].None— the field was missing on at least one side and so did not participate in the weighted sum.
The breakdown exists so an auditor can see why a match was flagged. Do not throw it away in downstream services.
Fields§
§name_score: Option<f64>Best-of-cartesian-product similarity across (primary name + alternate names) on both sides, using the configured algorithm.
name_phonetic_score: Option<f64>Maximum Soundex match across the same name pairs. None when
use_phonetic_matching is false or either side has no names.
description_score: Option<f64>Combined similarity over description, after normalize_text.
None if either side is absent.
disambiguating_description_score: Option<f64>Combined similarity over disambiguatingDescription, after
normalize_text. None if either side is absent.
identifiers_score: Option<f64>1.0 if both identifiers non-empty and they share any
(property_id, value) pair; 0.0 if both non-empty but none
shared; None if either side is empty.
url_score: Option<f64>1.0 if both urls normalise to the same string; 0.0
otherwise; None if either side is absent.
same_as_score: Option<f64>Jaccard set similarity over the union of sameAs URLs after
normalize_url. None if both sides are empty.
image_score: Option<f64>1.0 if both images normalise to the same string; 0.0
otherwise; None if either side is absent.
main_entity_of_page_score: Option<f64>1.0 if both mainEntityOfPages normalise to the same string;
0.0 otherwise; None if either side is absent.
additional_types_score: Option<f64>Jaccard set similarity over the union of additionalType URIs
after normalize_url. None if both sides are empty.
Trait Implementations§
Source§impl Clone for MatchBreakdown
impl Clone for MatchBreakdown
Source§fn clone(&self) -> MatchBreakdown
fn clone(&self) -> MatchBreakdown
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MatchBreakdown
impl Debug for MatchBreakdown
Source§impl<'de> Deserialize<'de> for MatchBreakdown
impl<'de> Deserialize<'de> for MatchBreakdown
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>,
Auto Trait Implementations§
impl Freeze for MatchBreakdown
impl RefUnwindSafe for MatchBreakdown
impl Send for MatchBreakdown
impl Sync for MatchBreakdown
impl Unpin for MatchBreakdown
impl UnsafeUnpin for MatchBreakdown
impl UnwindSafe for MatchBreakdown
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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