Skip to content

Commit 006abc1

Browse files
committed
minor code reorg
1 parent c12c34e commit 006abc1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/topologic/topic_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def __init__(self, corpus, max_iter=None):
2323
self.nb_topics = None # a scalar value > 1
2424
self.model = None
2525
self.max_iter = max_iter
26+
self.annoy_index = None
2627

2728
@abstractmethod
2829
def infer_topics(self, num_topics=10, **kwargs):
@@ -194,5 +195,3 @@ def infer_topics(self, num_topics=10, **kwargs):
194195
data.append(topic_weight)
195196
topic_count += 1
196197
doc_count += 1
197-
document_topic_matrix = coo_matrix((data, (row, col)), shape=(self.corpus.size, self.nb_topics)).tocsr()
198-
self.annoy_index = None

0 commit comments

Comments
 (0)