Skip to main content

CorefScoreProvider

Trait CorefScoreProvider 

Source
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§

Source

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.

Implementors§