Input
output
(str): The generated textexpectedOutput
(str): The reference text
Output
Result
(float): A score between 0 and 1.
Interpretation
- Higher scores (closer to 1): Better unigram overlap with the reference (more content coverage)
- Lower scores (closer to 0): Poor unigram overlap
Formula
This is a Similarity Metric
Use Cases
- Evaluating automatic text summarization
- Assessing machine translation quality