Description Usage Arguments Value Examples
An internal function called by collex_MI
to compute Mutual Information (MI) score
1 | MI_compute(a, a_exp)
|
a |
observed frequency co-occurrence of a collocate and the nodeword. |
a_exp |
expected frequency co-occurrence of the collocate and the nodeword. |
A double-numeric value of MI score
1 2 3 4 5 6 7 8 | # the numbers below are made-up examples
# for the collocate pattern "tindak pidana" 'legal act'
a <- 702
total_freq_w1 <- 1183
total_freq_w2 <- 1251
corpus_size <- 5763049
a_exp <- (total_freq_w1 * total_freq_w2)/corpus_size
(MI_score <- MI_compute(a, a_exp))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.