1
$\begingroup$

I implemet the LDA topic modeling in R.

One essential parameter is the selection of the number of topics

Which of the following ways could it be the most suitable:

1. mallet
2. stm
3. or this way https://cran.r-project.org/web/packages/ldatuning/vignettes/topics.html
$\endgroup$

1 Answer 1

1
$\begingroup$

There's no "most suitable" way, but there might be one which works better with your data. The only way to know that would be to try all of them.

In case choosing the number of topics is an issue, you might be interested in using the non-parametric extension of LDA for topic modeling, which doesn't require you to specify the number of topics: this is called Hierarchical Dirichlet Processes, see for instance this introduction.

$\endgroup$
2
  • $\begingroup$ thank you, is there any available package in R? $\endgroup$
    – Nathalie
    Commented Jun 11, 2020 at 14:33
  • $\begingroup$ unfortunately it looks like there isn't, see this discussion: researchgate.net/post/… $\endgroup$
    – Erwan
    Commented Jun 11, 2020 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.