There is a mismatch between output["topic-word-matrix"] and dataset.get_vocabulary() in terms of words?
I created a Dataframe as follows:
df = pd.DataFrame(data = output["topic-word-matrix"], columns = dataset.get_vocabulary()).T
When I sort the Dataframe by a topic number to get the top words for a topic, why do the results differ from output["topics"][i]?
Thank you!
There is a mismatch between
output["topic-word-matrix"]anddataset.get_vocabulary()in terms of words?I created a Dataframe as follows:
df = pd.DataFrame(data = output["topic-word-matrix"], columns = dataset.get_vocabulary()).TWhen I sort the Dataframe by a topic number to get the top words for a topic, why do the results differ from
output["topics"][i]?Thank you!