Carlos-Francisco Méndez-Cruz

LSA soft clustering

...@@ -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(
......