weightLemma | R Documentation |
Tailor weighting function to a lemma
weightLemma( cws, foc_param_fun = function(m) stringr::str_split(m, "\\.")[[1]][[1]], weight_param_fun = function(m) stringr::str_split(m, "\\.")[[1]][[2]], sup_weight_fun = function(weightparam) stringr::str_ends(weightparam, "weight"), ... )
cws |
Dataframe with one row per token per context word, output
of |
foc_param_fun |
Function that takes the name of a model and returns a
character string with first-order filters (to be used as |
weight_param_fun |
Function that takes the name of a model and returns a
character string with weighting filters (to be used as |
sup_weight_fun |
Function that takes the output of |
... |
Arguments to be passed to |
Function that takes a token ID, a list of context words and a model name
as input and calls getContext
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.