Search code examples
pythonscikit-learngensimskbio

Cannot run pyLDAvis. Getting Error : ImportError: cannot import name PCoA


I have created LDA model using gensim. Now, I wanted to visualise it using pyLDAvis library but getting :

ImportError: cannot import name PCoA 

Can anyone help me with this or suggest some alternatives.

Thanks in advance.


Solution

  • You must check the scikit-bio python package. It must be < than 0.4.x. From the version 0.4.x, the method has a different name.

    You have to install the right version in the following way:

    sudo pip install scikit-bio==0.2.X

    Cheers