
ROUGE-N against a single reference (Kamath Ch 8)
Source:R/kamath_llm2_native.R
morie_kamath_rouge_n.RdClipped n-gram matches / reference n-grams, with precision and F1.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_kamath_rouge_n(V, V)
#> $estimate
#> [1] 1
#>
#> $recall
#> [1] 1
#>
#> $precision
#> [1] 1
#>
#> $f1
#> [1] 1
#>
#> $n_matched
#> [1] 8
#>
#> $n_reference_ngrams
#> [1] 8
#>
#> $n_hypothesis_ngrams
#> [1] 8
#>
#> $order
#> [1] 1
#>
#> $n
#> [1] 8
#>
#> $method
#> [1] "ROUGE-1 recall with clipped n-gram counts"
#>