materialize {tm} | R Documentation |
The function tmMap
supports so-called lazy mappings, that
are mappings which are delayed until the documents' content is
accessed. This function triggers the evaluation, i.e., it materializes
the documents.
materialize(corpus, range = seq_along(corpus))
corpus |
A document collection with lazy mappings. |
range |
The indices of documents to be materialized. |
A corpus with materialized, i.e., all mappings computed and applied, documents for the requested range.
Ingo Feinerer
data("crude") x <- tmMap(crude, stemDoc, lazy = TRUE) x <- materialize(x)