[Topic-models] Mallet topic modeling: topics of variable length disregard the value set using --num-top-words parameter
soburkha at uni-mainz.de
Tue Oct 20 05:55:06 EDT 2015
Only words that have a count >0 are displayed. If you get less its because
there are no more words that occur with that topic. Especially with a large
number of topics, most topics will have few words.
2015-10-20 1:43 GMT+02:00 Sameendra Samarawickrama <smsamrc at gmail.com>:
> sorry for the repost but I'm really stuck here without a success. I tried
> this to a different data but same thing happens.
> I found that when applying LDA on to my dataset, number of topic words
> doesn't match the specified number of topic words using the
> "-num-topc-words" parameter.
> So for example if I run LDA with following configuration,
> mallet train-topics --input $posts.mallet --num-topics 1000 --num-top-words 50 --output-topic-keys topics.txt
> the topics in my "topics.txt" are of variable length, most of them doesn't
> even have 10 topic words when I'm supposed to have 50.
> This happens only when I'm trying to fit a large no. of topics (e.g., t >
> Does anybody know why is this happening so?
> Topic-models mailing list
> Topic-models at lists.cs.princeton.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Topic-models