当我使用pyLDAvis.gensim
function在google colab构建可视化时,它显示了以下错误:
a result has failed to un-serialize. please ensure that the objects returned by the function are always picklable.
我的代码是:
!pip install pyldavis
import pyLDAvis
import pyLDAvis.gensim_models as pg
pyLDAvis.enable_notebook()
vis = pg.prepare(lda, corpus, dictionary, sort_topics=False) # construct visualization
将pandas升级到“1.2.0”版本对我来说很有用
相关问题 更多 >
编程相关推荐