contextualized-topic-models
contextualized-topic-models copied to clipboard
ImportError: cannot import name 'CombinedTM'
- Contextualized Topic Models version: 1.4.1
- Python version: 3.5.2
- Operating System: macOS - bash
Description
I am trying to run CombinedTM to create topics for a dataset of approximately 45000 messages. I used pip to install the library, and when it didn't work at first, I made sure that I used the most recent version of the library by using the --upgrade
flag.
This error is from running CombinedTM as part of a python file, but I also was thrown the same error when trying to use the interpreter.
When I try to upgrade to 2.2.2, I get thrown an error:
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality. Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement contextualized_topic_models==2.2.2 ERROR: No matching distribution found for contextualized_topic_models==2.2.2
What I Did
Traceback (most recent call last):
File "combinedtm.py", line 1, in <module>
from contextualized_topic_models.models.ctm import CombinedTM
ImportError: cannot import name 'CombinedTM'
Hello! i wonder if the error could be that you are using an old version of python. Do you have a virtualenv with a more recent one?
I am using python 3.5.2. I do not have a virtualenv.