dictionary | R Documentation |
Create a dictionary with information on all words in a corpus.
dictionary(dtm, remove_stopwords = FALSE)
dtm |
A |
remove_stopwords |
Whether stopwords should be removed from the dictionary. |
A data.frame
with row names indicating the terms, and columns giving the stem,
the number of occurrences, and whether the term is a stopword.
file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
dtm <- build_dtm(corpus)
dictionary(dtm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.