Skip to content

AssertionError: decomposition not initialized yet #3

@Mustyy

Description

@Mustyy

When I run python parseMHC.py, I get the below: any ideas why?

SEC Financial Documents...
Done.
Building corpus...

Vocabulary contains 0 unique words.
Corpus contains 0 "documents" represented by tf-idf vectors.

Training LSI...
Traceback (most recent call last):
File "parseMHC.py", line 57, in
ssearch.trainLSI(num_topics=300)
File "C:\Users\ibrahimm\Desktop\simsearch\simsearch.py", line 50, in trainLSI
self.index = similarities.MatrixSimilarity(self.lsi[self.ksearch.corpus_tfidf], num_features=num_topics)
File "C:\Users\ibrahimm\AppData\Local\Continuum\anaconda3\lib\site-packages\gensim\models\lsimodel.py", line 568, in getitem
assert self.projection.u is not None, "decomposition not initialized yet"
AssertionError: decomposition not initialized yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions