Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
ZorkJ opened this issue Oct 15, 2021 · 1 comment
Open

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

ZorkJ opened this issue Oct 15, 2021 · 1 comment

Comments

@ZorkJ
Copy link

ZorkJ commented Oct 15, 2021

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.

@msusol
Copy link
Collaborator

msusol commented Apr 24, 2024

@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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants