Savvysherpa / slda

Cython implementations of Gibbs sampling for supervised LDA
MIT License
61 stars 11 forks source link

Printing topics in supervised LDA #5

Open souravsingh opened 6 years ago

souravsingh commented 6 years ago

Hello @burbma ,

I am working with Pang review dataset to understand the working of sLDA. I am curious about how to print the inferred topics after fitting.

bearnshaw commented 6 years ago

After training, your class has two matrices, theta (the document-topic distributions) and phi (the topic-term distributions). So print out phi. If you really want to visualize your topics, use @bmabey's pyLDAvis project.