
MoverScore n-gram weight (Kamath Eq 8.13)
Source:R/kamath_llm2_native.R
morie_kamath_ch8_ngram_weight.RdWindow idf sum divided by the normaliser Z.
Examples
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_kamath_ch8_ngram_weight(V)
#> $estimate
#> [1] 1
#>
#> $weights
#> [1] 1
#>
#> $Z
#> [1] 36
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "MoverScore n-gram weight (Kamath Eq 8.13)"
#>