Reputation: 1202
Thanks for stopping by! I have a question about the dynamic topic model path:
>>> from gensim.test.utils import common_corpus, common_dictionary
>>> from gensim.models.wrappers import DtmModel
>>>
>>> path_to_dtm_binary = "/path/to/dtm/binary"
>>> model = DtmModel(
... path_to_dtm_binary, corpus=common_corpus, id2word=common_dictionary,
... time_slices=[1] * len(common_corpus)
what is the path the dynamic topic model binary? Is that something I need to install or download? Where can I install or download that?
Thanks!
Upvotes: 0
Views: 446
Reputation:
According to here, you can go one of two ways:
Use precompiled binaries for your OS version from https://github.com/magsilva/dtm/tree/master/bin
Compile binaries manually from /blei-lab/dtm (original instruction available in https://github.com/blei-lab/dtm/blob/master/README.md), or use this
git clone https://github.com/blei-lab/dtm.git
sudo apt-get install libgsl0-dev
cd dtm/dtm
make
Upvotes: 2