
Last chance! 50% off unlimited learning
Sale ends in
selectFeaturesOLD(x, ...)
"selectFeaturesOLD"(x, features, selection = c("keep", "remove"), valuetype = c("glob", "regex", "fixed"), case_insensitive = TRUE, verbose = TRUE, ...)
stri_detect_regex
. (This is how
case_insensitive
is passed, but you may wish to pass others.)"glob"
for
"glob"-style wildcard expressions; "regex"
for regular expressions;
or "fixed"
for exact matching. See valuetype for details.TRUE
TRUE
print message about how many features were
removedtoks <- tokenize(c("This is some example text from me.", "More of the example text."),
removePunct = TRUE)
selectFeaturesOLD(toks, stopwords("english"), "remove")
selectFeaturesOLD(toks, "ex", "keep", valuetype = "regex")
Run the code above in your browser using DataLab