You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The first topic is set to a background topic that equals to the empirical word distribution.
94
97
# This can be used to filter out common words.
95
98
set.seed(321)
96
-
model <- BTM(x, k = 5, beta = 0.01, background = TRUE, iter = 1000, trace = 100)
99
+
model <- BTM(x, k = 5, beta = 0.01, background = TRUE, iter = 1000, trace = 100)
97
100
topicterms <- terms(model, top_n = 5)
98
101
topicterms
99
102
```
100
103
104
+
### Visualisation of your model
105
+
106
+
- Can be done using the textplot package (https://github.com/bnosac/textplot), which can be found at CRAN as well (https://cran.r-project.org/package=textplot)
107
+
- An example visualisation built on a model of all R packages from the Natural Language Processing and Machine Learning task views is shown above (see also https://www.bnosac.be/index.php/blog/98-biterm-topic-modelling-for-short-texts)
0 commit comments