Getting the document topic with the highest probability #28
-
Hello, Using the tmplot report with the trained model and a list of the article names I get results that seem logical in the plot under each topic. article_names structure: ['article name 1', 'article name 2'] However, when I get the documents vs topics probabilities matrix I get a matrix with the right shape but without the article names. Matching the topic with the highest probability from the matrix with the article_name list gives me a different result than the tmp.report one.
How do I get a dataframe with the following shape? I hope my question is clear. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! You can try the latest release. It adds |
Beta Was this translation helpful? Give feedback.
Hello! You can try the latest release. It adds
labels_
property andget_docs_top_topic
method. There is also an example inREADME.md
file.