def print_ldamodel_topic_words ( topic_word_distrib , vocab , n_top = 10 , row_labels = DEFAULT_TOPIC_NAME_FMT ) : print_ldamodel_distribution ( topic_word_distrib , row_labels = row_labels , val_labels = vocab , top_n = n_top )
topic distributions of documents python
Print n_top values from a LDA model s topic - word distributions .
def print_ldamodel_topic_words(topic_word_distrib, vocab, n_top=10, row_labels=DEFAULT_TOPIC_NAME_FMT):
    """Print `n_top` values from a LDA model's topic-word distributions."""
    print_ldamodel_distribution(topic_word_distrib, row_labels=row_labels, val_labels=vocab,
                                top_n=n_top)