bind_lr {gibasa} | R Documentation |
Bind importance of bigrams
Description
Calculates and binds the importance of bigrams and their synergistic average.
Usage
bind_lr(tbl, term = "token", lr_mode = c("n", "dn"), avg_rate = 1)
Arguments
tbl |
A tidy text dataset. |
term |
< |
lr_mode |
Method for computing 'FL' and 'FR' values.
|
avg_rate |
Weight of the 'LR' value. |
Details
The 'LR' value is the synergistic average of bigram importance that based on the words and their positions (left or right side).
Value
A data.frame.
See Also
Examples
## Not run:
df <- tokenize(
data.frame(
doc_id = seq_along(5:8),
text = ginga[5:8]
)
)
bind_lr(df) |>
head()
## End(Not run)
[Package gibasa version 1.1.1 Index]