Skip to content

dfm.corpus(x, verbose = TRUE) never completes the verbose output #1894

Description

@kbenoit

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions