Skip to content

Commit c3efd57

Browse files
committed
Fix error in LdaPosterior initialization
1 parent 1de110b commit c3efd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gensim/models/ldaseq_posterior_inner.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def fit_lda_post(self, doc_number, time, ldaseq, LDA_INFERENCE_CONVERGED=1e-8,
253253
# TODO Would it be better to create numpy array first?
254254
for i in range(doc_length):
255255
word_ids[i] = self.doc[i][0]
256-
word_counts[i] = self.doc[i][0]
256+
word_counts[i] = self.doc[i][1]
257257

258258
cdef REAL_t * gamma = <REAL_t *> (np.PyArray_DATA(self.gamma))
259259
cdef REAL_t * phi = <REAL_t *> (np.PyArray_DATA(self.phi))

0 commit comments

Comments
 (0)