Filter by Weighting Information
Usage
filterWeight(
weight_param,
tid_data,
weight_filter_fun = function(weightparam) stringr::str_ends(weightparam, "no", negate
= TRUE),
weight_as_sup = FALSE,
threshold = 0
)
Arguments
- weight_param
Character string coding the relevant weighting information.
- tid_data
Subsection of a context-word-by-token dataframe enriched by
filterFoc
.- weight_filter_fun
Function that takes
weight_param
as input and returnsTRUE
if weighting should be included andFALSE
if it should be ignored.- weight_as_sup
Should weight values be included in superscript?
- threshold
Weighting threshold for a context word to be included