I have an LDA model where I've got the per-document topic probability matrix as per below.
doc_lda = lda_model[corpus]
How do I extract the topic ID with the largest probability for each document? I'm having difficulty beyond converting doc_lda
into a list or dataframe.
Coverting it to a list, it looks like a list of a list of a tuple?