Created
January 19, 2020 02:10
-
-
Save mlai-demo/f4d51efcf04675c79d1fe5a7197133e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(len(text_topic_nmf)): | |
top_topics = np.argsort(text_topic_nmf[i,:])[::-1][0:4] | |
top_topics_str = ' '.join(str(t) for t in top_topics) | |
print("{}: {}".format(titles[i], top_topics_str)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment