Closed louisway closed 7 years ago
to be specific, when it sample table, it do this f_new = lgamma(m_size_vocabm_eta) - lgamma(count_sum + m_size_vocabm_eta)
and so it is for f[k]
solved. details can be found in https://arxiv.org/pdf/1201.1657.pdf. Thanks.
In the code of state.cpp, the way to calculate the likelihood in table assignment is different from that in the word assignment, and I didn't find the details on the paper. confused by this for days, and still find little information, really appreciate it if someone could advice some details or related materials. Thank you!