MaartenGr / Concept

Concept Modeling: Topic Modeling on Images and Text
https://maartengr.github.io/Concept/
MIT License
187 stars 16 forks source link

TypeError: __init__() got an unexpected keyword argument 'cachedir' #16

Closed orkhan-amrullayev closed 1 year ago

orkhan-amrullayev commented 1 year ago

I was reproducing the same Colab notebook in the ReadME without any change: https://colab.research.google.com/drive/1XHwQPT2itZXu1HayvGoj60-xAXxg9mqe?usp=sharing#scrollTo=VcgGxrLH-AU9

While importing the library from concept import ConceptModel, this error appears:

TypeError: init() got an unexpected keyword argument 'cachedir'

Apparently it stems from hdbscan module as cachedir was removed from joblib.Memory. https://github.com/joblib/joblib/blame/3fb7fbde772e10415f879e0cb7e5d986fede8460/joblib/memory.py#L910

MaartenGr commented 1 year ago

There are a few solutions here and here you can try as BERTopic is having the same issue since HDBSCAN is a dependency there as well.