lda = models.LdaModel.load(path_lda_model)
corpus_tfidf = corpora.MmCorpus(path_corpus)
corpus_lda = lda[corpus_tfidf]
corpus_lda_dense = matutils.corpus2dense(corpus_lda, corpus_tfidf.num_terms, corpus_tfidf.num_docs)
The corpus_lda_dense included now all documents as columns and all terms as rows with a value between [0, 1]. Is it right, that this array contains the topic words for every document? I mean I converted the whole corpus to the LDA space, all the terms are then arranged into topics.
corpus_lda_dense = matutils.corpus2dense(corpus_lda, corpus_tfidf.num_terms, corpus_tfidf.num_docs)
The corpus_lda_dense included now all documents as columns and all terms as rows with a value between [0, 1]. Is it right, that this array contains the topic words for every document? I mean I converted the whole corpus to the LDA space, all the terms are then arranged into topics.
IndexError: index 386 is out of bounds for size 50
Any idea why this might be the case?