January 2018
Intermediate to advanced
470 pages
11h 9m
English
Prepare the top 5 topics with each topic having 10 terms. Include the terms and their corresponding weights:
val topicIndices = ldaModel.describeTopics(maxTermsPerTopic = 10)println(topicIndices.length)val topics = topicIndices.map { case (terms, termWeights) => terms.zip(termWeights).map { case (term, weight) => (vocabArray(term.toInt), weight) }}
Read now
Unlock full access