Description Usage Arguments Value Examples
Reconstructs a text2vec::vocabulary
object fom a document
term matrix. See create_vocabulary
for more details.
1 | GetVocabFromDtm(dtm)
|
dtm |
A document term matrix of class |
Returns a text2vec::vocabulary
object.
See create_vocabulary
for more details.
1 2 3 4 5 6 | # Load a pre-formatted dtm
data(nih_sample_dtm)
vocab <- GetVocabFromDtm(dtm = nih_sample_dtm)
str(vocab)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.