NLP-with-Python icon indicating copy to clipboard operation
NLP-with-Python copied to clipboard

About code

Open psammy007 opened this issue 5 years ago • 1 comments

for idx, topic in lda_model_tfidf.print_topics(-1): print('Topic: {} Word: {}'.format(idx, topic)) whats the significance of -1 in first line...

psammy007 avatar Nov 03 '19 05:11 psammy007

'print_topics(-1)' prints the top words for all topics in the LDA model.

smth-27 avatar Dec 10 '23 07:12 smth-27