force_conformance | R Documentation |
Takes a dfm and a set of features, and makes them match the features listed in the set.
force_conformance(x, features, force = TRUE)
x |
input dfm |
features |
character; a vector of feature names |
force |
logical; if |
a dfm from the quanteda package containing
only features
as columns, in the same order as features
. A warning message
is printed if some feature names from features
are not matched in x
.
quanteda.textmodels:::force_conformance(quanteda::data_dfm_lbgexample, c("C", "B", "Z"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.