Skip to contents

Window idf sum divided by the normaliser Z.

Usage

morie_kamath_ch8_ngram_weight(x, Z = NULL)

Arguments

x

idf rows.

Z

Optional normaliser; default the grand sum.

Value

List with estimate, weights, 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)"
#>