Description
For each topic, return top documents based on topicDistributions.
Synopsis:
/** * @param maxDocuments Max docs to return for each topic * @return Array over topics of (sorted top docs, corresponding doc-topic weights) */ def topDocumentsPerTopic(maxDocuments: Int): Array[(Array[Long], Array[Double])]
Note: We will need to make sure that the above return value format is Java-friendly.
Attachments
Issue Links
- is required by
-
SPARK-5572 LDA improvement listing
- Resolved
- links to