Description Usage Arguments Value Description Examples
Run mallet
over a tei2r
collection.
1 | buildModel(dl, tnum, train = 100, maximize = 10, listLength = 100)
|
dl |
A |
tnum |
The number of topics you want |
train |
The number of times |
maximize |
A few extra iterations meant to pick the best topic for each word. |
listLength |
The number of words from each topic you'd like to see displayed. |
dmod The completed docModel
object for viewing and simple analysis.
Trains a basic topic model using the 'mallet' package and saves the output
into a single docModel
object. For easy viewing, the resulting object
contains a data frame of each topic's top words and each document's most
prevalent topics.
1 2 3 | dmod = buildModel(dl = dl, tnum = 50)
View(dmod@topics) # To view a table showing the words of each topic
View(dmod@frequencies) # To view the frequency of the topics in each document
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.