Skip to contents

Draw a single word given topic and word distributions

Usage

draw_a_word(theta, phi)

Arguments

theta

Topic distribution, length \(k\) vector

phi

Word distribution for all topics, \(k \times v\) matrix

Value

Integer representation for a single word