Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -90,7 +90,7 @@ lsa=gensim.models.lsimodel.LsiModel(corpus, id2word=dictionary, | ... | @@ -90,7 +90,7 @@ lsa=gensim.models.lsimodel.LsiModel(corpus, id2word=dictionary, |
90 | num_topics=n_topics) | 90 | num_topics=n_topics) |
91 | # Print the n topics in our corpus: | 91 | # Print the n topics in our corpus: |
92 | #lsa.print_topics(n_topics) | 92 | #lsa.print_topics(n_topics) |
93 | -f=open("topics_file.txt","wb") | 93 | +f=open("topics_file.txt","w") |
94 | f.write("-------------------------------------------------\n") | 94 | f.write("-------------------------------------------------\n") |
95 | for t in lsa.show_topics(): | 95 | for t in lsa.show_topics(): |
96 | f.write("%s\n" % str(t)) | 96 | f.write("%s\n" % str(t)) | ... | ... |
-
Please register or login to post a comment