I'm attempting to do some topic modeling using the R package topicmodels
I've done my pre-processing using the 'tm' package, per these instructions R text file and text mining...how to load data.
However, when I go to run my correlated topic model (CTM) using topicmodels
in R, I receive the following error
"Error in CTM...DocumentTermMatrix needs to have a term frequency weighting.
I've triple checked the structure of my DocumentTermMatrix shows it does have a frequency weighting:
A document-term matrix (26 documents, 413 terms)
Non-/sparse entries: 4804/5934
Sparsity : 55%
Maximal term length: 13
Weighting : term frequency - inverse document frequency (normalized) (tf-idf)
Any suggestions on how to get this working would be appreciated!