-
-
Save CyrilRJK/78f7e6f1a7a3259277ec1401d9dfdd9d 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
def get_artm_topics(model_artm): | |
"""Return string representations of artm topics""" | |
topics = [] | |
for topic_name in model_artm.topic_names: | |
topics.append(model_artm.score_tracker['TopTokensScore'].last_tokens[topic_name]) | |
return topics |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment