word domain
topic domain
an array storing the alpha parameters of the Dirichlet prior on the document-topic distributions
the sum of the alpha parameters, i.e., the concentration parameter of the Dirichlet distribution
parameter of the Dirichlet prior on the topic-word distributions; same for every word type
the sum of the beta parameters
an array storing the count for every topic
for every word type this data structure stores the number of times the word appears in each topic; only topics with non-zero counts should be specified.
an array storing the alpha parameters of the Dirichlet prior on the document-topic distributions
the sum of the alpha parameters, i.
the sum of the alpha parameters, i.e., the concentration parameter of the Dirichlet distribution
parameter of the Dirichlet prior on the topic-word distributions; same for every word type
the sum of the beta parameters
Sets up the test documents and computes the information rate
Computes the information rate
Samples a topic a assignment for a given position in a document.
Creates documents from a file
an array storing the count for every topic
for every word type this data structure stores the number of times the word appears in each topic; only topics with non-zero counts should be specified.
word domain
topic domain
Left-to-right evaluation algorithm described on page 65 in Wallach's PhD thesis.