75a7321a8f1e096d8fdd118fd85b4259f3ff25dc,src/textacy/tm/topic_model.py,TopicModel,termite_plot,#,373

Before Change


            // get permutation corresponding to sorting the 2nd eigenvector
            term_inds = [term_inds[i] for i in np.argsort(fiedler)]
        else:
            errors.value_not_valid(
                "sort_terms_by",
                sort_terms_by,
                {"weight", "index", "alphabetical", "seriation"},
            )

        // get topic and term labels
        topic_labels = tuple("topic {}".format(topic_ind) for topic_ind in topic_inds)
        term_labels = tuple(id2term[term_ind] for term_ind in term_inds)

After Change


            // get permutation corresponding to sorting the 2nd eigenvector
            term_inds = [term_inds[i] for i in np.argsort(fiedler)]
        else:
            raise ValueError(
                errors.value_invalid_msg(
                    "sort_terms_by",
                    sort_terms_by,
                    {"weight", "index", "alphabetical", "seriation"},
                )
            )

        // get topic and term labels
        topic_labels = tuple("topic {}".format(topic_ind) for topic_ind in topic_inds)
        term_labels = tuple(id2term[term_ind] for term_ind in term_inds)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 75a7321a8f1e096d8fdd118fd85b4259f3ff25dc
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/tm/topic_model.py
Class Name: TopicModel
Method Name: termite_plot


Project Name: chartbeat-labs/textacy
Commit Name: 75a7321a8f1e096d8fdd118fd85b4259f3ff25dc
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/tm/topic_model.py
Class Name: TopicModel
Method Name: init_model


Project Name: chartbeat-labs/textacy
Commit Name: 75a7321a8f1e096d8fdd118fd85b4259f3ff25dc
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/spacier/doc_extensions.py
Class Name:
Method Name: to_semantic_network


Project Name: chartbeat-labs/textacy
Commit Name: 75a7321a8f1e096d8fdd118fd85b4259f3ff25dc
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/viz/termite.py
Class Name:
Method Name: termite_df_plot