powered by
text2vec::vocabulary
Reconstructs a text2vec::vocabulary object from a document term matrix. See create_vocabulary for more details.
create_vocabulary
GetVocabFromDtm(dtm)
A document term matrix of class dgCMatrix
dgCMatrix
Returns a text2vec::vocabulary object. See create_vocabulary for more details.
# NOT RUN { # Load a pre-formatted dtm data(nih_sample_dtm) vocab <- GetVocabFromDtm(dtm = nih_sample_dtm) str(vocab) # }
Run the code above in your browser using DataLab