Skip to main content

grounding_coverage

Function grounding_coverage 

Source
pub fn grounding_coverage(candidate: &str, evidence: &str) -> f64
Expand description

Fraction of the candidate’s character-trigrams that also appear in the evidence corpus: |A ∩ B| / |A|.

This is the DRY grounding metric shared by entity-descriptions and any future short-text quality gates. Distinct from full Jaccard so short descriptions are not systematically rejected against long bodies.