
BLEU clipped n-gram precision (Kamath Eq 8.2)
Source:R/kamath_llm2_native.R
morie_kamath_ch8_bleu_precision.RdBLEU clipped n-gram precision (Kamath Eq 8.2)
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_kamath_ch8_bleu_precision(V)
#> $estimate
#> [1] 0.5000000 0.7500000 0.8333333 0.8750000
#>
#> $p_n
#> [1] 0.5000000 0.7500000 0.8333333 0.8750000
#>
#> $n
#> [1] 4
#>
#> $method
#> [1] "BLEU clipped n-gram precision (Kamath Eq 8.2)"
#>