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

Topic Distribution in Documents using BTM. #5

Closed
adjoshi81 opened this issue Feb 25, 2019 · 4 comments
Closed

Topic Distribution in Documents using BTM. #5

adjoshi81 opened this issue Feb 25, 2019 · 4 comments

Comments

@adjoshi81
Copy link

Hello jwijffels,

Thank you very much for creating the R implementation of BTM. I am using it for finding out topics in short texts (i.e. mainly tweets). I would like to know if we can identify the topic distribution within each short text, is this functionality available in the existing version of BTM?

In the original research paper by Yan et. al. : A Biterm Topic Model for Short Text under the Introduction section, mentions:
"However, we show that the topic distribution of each document can be naturally derived based on
the learned model".

Also, is there a way in which the number of topics can be identified through this package. This is not an issue but a possible feature request.

Thanks again for your inputs.

@jwijffels
Copy link
Collaborator

jwijffels commented Feb 25, 2019

For getting the topic distribution within each short text, did you use the ?predict.BTM function already?
For finding the optimal number of topics. Currently the only measurement which is implemented is the likelihood how good each biterm is fitted by the model. See the help of ?logLik.BTM. You can see how this compares across different number of topics.
For other measures of topic quality, this is still open in issue #3

@adjoshi81
Copy link
Author

Thanks, the predict.BTM function did give the topic distribution across individual texts.

@mevalerio
Copy link

mevalerio commented Mar 8, 2023

Hi @jwijffels , I am using BTM for a paper, thank you for your hard work it. I am thinking to use a entropy based measure to evaluate models when K changes. Anyway, I would like to assess it against “something” that pickups a word-based likelihood of belonging. I am not understanding how logLik.BTM can help. The more ll is close to zero (sum log of sum(phi[term1, ] * phi[term2, ] * theta), the better the model? I know I am abusing terminologies, apologies in advance.

@manuelbickel
Copy link

manuelbickel commented Mar 11, 2023 via email

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

4 participants