Carlos-Francisco Méndez-Cruz

LSA soft clustering

...@@ -102,6 +102,7 @@ with open("topics_file.txt", "w") as f: ...@@ -102,6 +102,7 @@ with open("topics_file.txt", "w") as f:
102 102
103 # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi 103 # create a double wrapper over the original corpus: bow->tfidf->fold-in-lsi
104 corpus_lsa = lsa[corpus] 104 corpus_lsa = lsa[corpus]
105 +print(corpus_lsa)
105 # Stream sentences from file into a list of strings called "sentences" 106 # Stream sentences from file into a list of strings called "sentences"
106 sentences = corpus_streamer(input_file, strings=True) 107 sentences = corpus_streamer(input_file, strings=True)
107 n = 0 108 n = 0
......