pub trait CorefScoreProvider: Send + Sync {
// Required method
fn antecedent_scores(
&self,
mention: &JointMention,
candidates: &[&JointMention],
text: &str,
) -> Vec<(AntecedentValue, f64)>;
}Expand description
Trait for providing coreference scores for mention pairs.
Allows plugging in different mention-ranking models.
Required Methods§
Sourcefn antecedent_scores(
&self,
mention: &JointMention,
candidates: &[&JointMention],
text: &str,
) -> Vec<(AntecedentValue, f64)>
fn antecedent_scores( &self, mention: &JointMention, candidates: &[&JointMention], text: &str, ) -> Vec<(AntecedentValue, f64)>
Get antecedent scores for a mention.
Returns scores for each candidate antecedent plus NEW_CLUSTER.