I'm tring to calculate KL-distance between texts in my corpus. After I ran LDA topic modeling
model = models.LdaModel(corpus, num_topics=30)
array = model[corpus]
And got an array where for each text there should be 30 numbers corresponding for different topics.
But somehow most of this numbers are zeros. So I can't use the formula for KL-distance because there would be zeros in the denominator
I tried so vary alpha parameter of the model, but all zeros disappear only at alpha greater than 200, and then there is very little difference between topics.
How should I solve this problem?
Thanks