Skip to content

Commit

Permalink
Added top words to the full report
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph committed Nov 13, 2020
1 parent 9c30b60 commit 2199701
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions robics/robust_topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,12 @@ def _compute_topic_stability(self):
"max": jensen_similarity.max(axis=1),
}

top_terms = {}
for i, t in enumerate(terms):
top_terms['instance_'+str(i)] = t

report_full["top_words"] = top_terms

model.report.append(report)
model.report_full.append(report_full)
# print("")
Expand Down

0 comments on commit 2199701

Please sign in to comment.