Skip to contents

count(ngram) / count(prefix); 0/0 is refused. Delegates to morie_burkov_ngram_mle.

Usage

morie_kamath_ngram_language_model(counts_ngram, counts_prefix)

Arguments

counts_ngram, counts_prefix

Counts.

Value

List with estimate, count_ngram, count_prefix.

Examples

morie_kamath_ngram_language_model(counts_ngram = 5L, counts_prefix = 5L)
#> $estimate
#> [1] 1
#> 
#> $probability
#> [1] 1
#> 
#> $count_ngram
#> [1] 5
#> 
#> $count_prefix
#> [1] 5
#> 
#> $n
#> [1] 5
#> 
#> $method
#> [1] "N-gram MLE conditional probability (delegates to bkngr)"
#>