AttributeError: module 'lda2vec' has no attribute 'dirichlet_likelihood'from lda2vec importbuild/lib.linux-x86_64-2.7/lda2vec/corpus.py ~/2.7env/.env/lib/python2.7/site-packages/
我的代码如下: from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
y = y_train[0:1000]X_r2 = lda.fit(X, y).transform(X)
print('explained variance ratio (first two
我正在使用LDA(隐狄利克雷分配)主题建模进行基于内容的图像检索。我也希望使用Python来做同样的事情。我在Python for LDA for image dataset中找不到任何库/包,包似乎只适用于文本语料库。请在Python中为图像语料库推荐任何软件包,或简要列出执行图像LDA所需的步骤。
感觉就像Python3getcha。提前谢谢你!def lda_description(review_text, min_topic_freq=0.05):accept the original text of a review and (spaCy,representation, (4) create an LDArepresentation
review_lda<