powered by
Calculates and binds the importance of bigrams and their synergistic average.
bind_lr(tbl, term = "token", lr_mode = c("n", "dn"), avg_rate = 1)
A data.frame.
A tidy text dataset.
<data-masked> Column containing terms.
data-masked
Method for computing 'FL' and 'FR' values. n is equivalent to 'LN' and 'RN', and dn is equivalent to 'LDN' and 'RDN'.
n
dn
Weight of the 'LR' value.
The 'LR' value is the synergistic average of bigram importance that based on the words and their positions (left or right side).
tools:::Rd_expr_doi("10.5715/jnlp.10.27")
if (FALSE) { df <- tokenize( data.frame( doc_id = seq_along(5:8), text = ginga[5:8] ) ) bind_lr(df) |> head() }
Run the code above in your browser using DataLab