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) }}