r - LDA topicmodel, how can I see the terms in the result -


i follow post topic analysis:

a gentle introduction topic modeling using r

i want view terms, should in ldaout.terms, however, see numbers instead of terms. how view terms?

ldaout.terms  topic 1 topic 2 topic 3 topic 4 topic 5 topic 6 topic 7 topic 8 topic 9 topic 10 [1,] "38"    "85"    "4"     "79"    "29"    "43"    "13"    "81"    "70"    "39"     

i find out problem dtm, created dtm

 dtm <- create_matrix(ss, language="english", removenumbers=true,     stemwords=true, weighting=weighttf) 

problem solved


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -