Is there a more direct or efficient method for getting the topic probabilities data from a gensim.interfaces.TransformedCorpus object into a numpy array (or alternatively, pandas dataframe) than the by-row method below?
from gensim import models
import numpy as np
num_topics = 5
model = models.LdaMulticore(corpus, num_topics=num_topics, minimum_probability=0.0)
all_topics = model.get_document_topics(corpus)
num_docs = len(all_topics)
lda_scores = np.empty([num_docs, num_topics])
for i in range(0, num_docs):
lda_scores[i] = np.array(all_topics[i]).transpose()[1]