You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/lib/python3.10/dist-packages/sentence_transformers/cross_encoder/CrossEncoder.py:11: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)
from tqdm.autonotebook import tqdm, trange
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[6], line 3
1 from contextualized_topic_models.models.ctm import CombinedTM
2 from contextualized_topic_models.utils.data_preparation import TopicModelDataPreparation
----> 3 from contextualized_topic_models.utils.preprocessing import WhiteSpacePreprocessingStopwords
4 import nltk
File /usr/local/lib/python3.10/dist-packages/contextualized_topic_models/utils/preprocessing.py:4
2 import string
3 from nltk.corpus import stopwords as stop_words
----> 4 from gensim.utils import deaccent
5 import warnings
7 class WhiteSpacePreprocessing():
File /usr/local/lib/python3.10/dist-packages/gensim/__init__.py:11
7 __version__ = '4.2.0'
9 import logging
---> 11 from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
14 logger = logging.getLogger('gensim')
15 if not logger.handlers: # To ensure reload() doesn't add another one
File /usr/local/lib/python3.10/dist-packages/gensim/corpora/__init__.py:6
1 """
2 This package contains implementations of various streaming corpus I/O format.
3 """
5 # bring corpus classes directly into package namespace, to save some typing
----> 6 from .indexedcorpus import IndexedCorpus # noqa:F401 must appear before the other classes
8 from .mmcorpus import MmCorpus # noqa:F401
9 from .bleicorpus import BleiCorpus # noqa:F401
File /usr/local/lib/python3.10/dist-packages/gensim/corpora/indexedcorpus.py:14
10 import logging
12 import numpy
---> 14 from gensim import interfaces, utils
16 logger = logging.getLogger(__name__)
19 class IndexedCorpus(interfaces.CorpusABC):
File /usr/local/lib/python3.10/dist-packages/gensim/interfaces.py:19
7 """Basic interfaces used across the whole Gensim package.
8
9 These interfaces are used for building corpora, model transformation and similarity queries.
(...)
14
15 """
17 import logging
---> 19 from gensim import utils, matutils
22 logger = logging.getLogger(__name__)
25 class CorpusABC(utils.SaveLoad):
File /usr/local/lib/python3.10/dist-packages/gensim/matutils.py:22
20 import scipy.linalg
21 from scipy.linalg.lapack import get_lapack_funcs
---> 22 from scipy.linalg.special_matrices import triu
23 from scipy.special import psi # gamma function utils
26 logger = logging.getLogger(__name__)
ImportError: cannot import name 'triu' from 'scipy.linalg.special_matrices' (/usr/local/lib/python3.10/dist-packages/scipy/linalg/special_matrices.py)
Hello.
On the line
the
ImportError
is raisedwhen running Combined TM on Wikipedia Data (Preproc+Saving+Viz) (stable v2.3.0) notebook in colab.
Full traceback
Downgrading
scipy
should solve the issue:The text was updated successfully, but these errors were encountered: