Unlike the tokens() sequence, where we always end with tokens.tokens(), dfm() does not end with dfm.dfm(). When verbose = TRUE, we don't get the ending.
Should look like:
> dfm(data_dfm_lbgexample, remove = "A*", verbose = TRUE)
Creating a dfm from a dfm input...
... removed 1 feature
... lowercasing
... created a 6 x 36 sparse dfm
... complete.
Elapsed time: 0.011 seconds.
but instead we don't see the final two/three lines:
> dfmat <- dfm(data_corpus_inaugural, remove = stopwords("en"), verbose = TRUE)
Creating a dfm from a corpus input...
... lowercasing
... found 58 documents, 9,399 features
... removed 136 features
Unlike the
tokens()sequence, where we always end withtokens.tokens(),dfm()does not end withdfm.dfm(). Whenverbose = TRUE, we don't get the ending.Should look like:
but instead we don't see the final two/three lines: