powered by
Takes a dfm and a set of features, and makes them match the features listed in the set.
force_conformance(x, features, force = TRUE)
input dfm
character; a vector of feature names
logical; if TRUE, make the new dfm conform to the vector of features, otherwise return an error message
TRUE
quanteda.textmodels:::force_conformance(quanteda::data_dfm_lbgexample, c("C", "B", "Z"))
Run the code above in your browser using DataLab