diff --git a/data-computer/v1/lda.py b/data-computer/v1/lda.py index 6b42d0f..cd10329 100755 --- a/data-computer/v1/lda.py +++ b/data-computer/v1/lda.py @@ -79,9 +79,12 @@ lda_model = models.LdaModel(corpus, num_topics=num_topics, id2word=dictionary,iterations=num_iterations,alpha="symmetric", eta = "auto",minimum_probability=0.1) -# To see topics (just for me) +# #To see topics (just for me) # sys.stdout.write(json.dumps(lda_model.print_topics())) -# exit() + +# #Get coherence +# cm = models.coherencemodel.CoherenceModel(model=lda_model, texts=texts, coherence='c_v') +# cm.get_coherence() # extract infos for line in all_data: