bmabey/pyLDAvis

Is there a way to extract each word's saliency after using pyLDAvis

ZorkJ opened this issue · 1 comments

ZorkJ commented

Hi, I see that pyLDAvis visualize each word's saliency under each topic. But do we have a way to extract each word's saliency under each topic? So finally, I want to get a pandas dataframe such that one row represents one word, each column represents each topic and its value represents the word's saliency under the corresponding topic.

Many thanks in advance.

@ed9w2in6
You seem a bit knowledgeable about the JS here, how can we get the saliency values in python? I have wanted to look at the saliency of a sentence by taking the average of word saliency.