示例#1
0
文件: cluster.go 项目: jlund3/modelt
func (b *base) TopicSummary(z, n int) string {
	return util.TopNString(util.IntCounts(b.TopicWords[z]), n, b.Vocab.Tokens)
}
示例#2
0
文件: lda.go 项目: jlund3/modelt
// TopicSummary gets top n word tokens for the zth topic.
func (l *LDA) TopicSummary(z, n int) string {
	return util.TopNString(util.IntCounts(l.TopicWords[z]), n, l.Vocab.Tokens)
}