Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -109,7 +109,7 @@ n = 0 | ... | @@ -109,7 +109,7 @@ n = 0 |
| 109 | with open("vectors_file.txt", "w") as f: | 109 | with open("vectors_file.txt", "w") as f: |
| 110 | for pertenence, sentence in zip(corpus_lsa, sentences): | 110 | for pertenence, sentence in zip(corpus_lsa, sentences): |
| 111 | if n_docs <= 0: | 111 | if n_docs <= 0: |
| 112 | - # print "%s\t\t%s" % (pertenence, sentence.split("\t")[0]) | 112 | + print("%s\t\t%s" % (pertenence, sentence.split("\t")[0])) |
| 113 | p = [dict(pertenence)[x] if x in dict(pertenence) else 0.0 | 113 | p = [dict(pertenence)[x] if x in dict(pertenence) else 0.0 |
| 114 | for x in range(n_topics)] | 114 | for x in range(n_topics)] |
| 115 | f.write( | 115 | f.write( | ... | ... |
-
Please register or login to post a comment