When I use the pyLDAvis.gensim
functoion to construct visualization at google colab, it shows this error:
a result has failed to un-serialize. please ensure that the objects returned by the function are always picklable.
My codes are:
!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