Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is it possible to get FREX value in labelTopics function? #265

Open
recordyao opened this issue Dec 31, 2021 · 1 comment
Open

Is it possible to get FREX value in labelTopics function? #265

recordyao opened this issue Dec 31, 2021 · 1 comment

Comments

@recordyao
Copy link

I want to use FREX to determine the topic name. Not only do I want the words rank based on FREX, but also I want to get the FREX value for each word so that I can plot a wordcloud to illustrate to the readers. So is it possible to extract FREX value from labelTopics function?

@ryanyangwang
Copy link

Would the built-in function calcfrex be something you are looking for?
frex_word <- calcfrex(your_stm_object$beta$logbeta[[1]])

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

No branches or pull requests

2 participants