rouge_n: Rouge-N: N-gram Co-occurrence Statistics

Description Usage Arguments Value

View source: R/rouge_n.R

Description

Takes a candidate summary, reference summary, and n value, returning the associated ROUGE-N recall, precision, and F values.

Usage

1
rouge_n(candidate, reference, n = 1)

Arguments

candidate

the candidate (usually machine generated) summary

reference

the reference (usually human written) summary

n

the number of grams to be considered, default 1.

Value

a dataframe, consisting of a single observation and three variables: recall, precision, and f_measure.


LJCovingtonJr/rougeR documentation built on Jan. 18, 2022, 2:27 a.m.