pythongensimldamalletmodulenotfounderror

ModuleNotFoundError: No module named 'gensim.models.wrappers'


I am trying to use LDA MAllet model. but I am facing with "No module named 'gensim.models.wrappers'" error.

Does anyone know what is wrong here? Many thanks!


Solution

  • If you've installed the latest Gensim, 4.0.0 (as of late March, 2021), the LdaMallet model has been removed, along with a number of other tools which simply wrapped external tools/APIs.

    You can see the note in the Gensim migration guide at:

    https://github.com/RaRe-Technologies/gensim/wiki/Migrating-from-Gensim-3.x-to-4#15-removed-third-party-wrappers

    If the use of that tool is essential to your project, you may be able to: