У меня есть обученная пользовательская модель LDA (иврит), и я хочу использовать pyLDAvis для ее визуализации.
Я имею в виду документы и следующие ресурсы:
Но я до сих пор не понимаю, как выглядит вход для метода prepare.
topic_term_dists:array-like, shape (n_topics, n_terms)
Matrix of topic-term probabilities. Where n_terms is len(vocab).
doc_topic_dists :array-like, shape (n_docs, n_topics)
Matrix of document-topic probabilities.
doc_lengths :array-like, shape n_docs
The length of each document, i.e. the number of words in each document. The order of the numbers should be consistent with the ordering of the docs in doc_topic_dists.
vocab :array-like, shape n_terms
List of all the words in the corpus used to train the model.
term_frequency :array-like, shape n_terms
The count of each particular term over the entire corpus. The ordering of these counts should correspond with vocab and topic_term_dists.
Есть ли у кого-нибудь пример для этих входов? Спасибо