当我尝试加载模型并对其执行任何操作时,我总是得到:“AttributeError: 'Projection' object has no attribute 'u'
”
我无法弄清楚我在这里做错了什么。不确定我是否正确保存模型或加载错误。
index = similarities.MatrixSimilarity(lsiModel[tfIdfModel[myCorpus]])
File "/home/analytics/.local/lib/python2.7/site-packages/gensim/models /lsimodel.py", line 405,
in __getitem__
assert self.projection.u is not None, "decomposition not initialized yet"
AttributeError: 'Projection' object has no attribute 'u'