Exact string equality can penalize a valid summary that uses different wording. Recall measures the proportion of reference items correctly identified; in ROUGE, overlap replaces exact matching. section 4.2.1
ROUGE applies recall-oriented comparison to generated and ground-truth summaries using n-grams, longest common subsequences, or skip-bigrams. Greater overlap produces a higher score. section 4.2.1
Comparing two Zelda summaries
A ROUGE-1 comparison reports recall 0.3158, precision 0.2857, and F-measure 0.3000; ROUGE-L reports recall 0.2632. section 4.2.1
Listing 4.1 Using ROUGE
from rouge_score import rouge_scorer
target = "The game 'The Legend of Zelda' follows the adventures of the \
hero Link in the magical world of Hyrule."
prediction = "Link embarks on epic quests and battles evil forces to \
save Princess Zelda and restore peace in the land of Hyrule."
scorer = rouge_scorer.RougeScorer(["rouge1", "rougeL"], use_stemmer=True) #1
scores = scorer.score(target, prediction)
print(scores)
# {'rouge1': Score(precision=0.28571428, recall=0.31578947, fmeasure=0.3),
# 'rougeL': Score(precision=0.238095238, recall=0.26315789, fmeasure=0.25)}
Run the supplied Python listing to calculate ROUGE-1 and ROUGE-L scores, including recall for generated text against a target summary. section 4.2.1























