mallet inferencer for hLDA

2019-07-26 09:55发布

I'm trying to use hLDA to create a topic model and then to make inferences based on that model. But as far as I've seen, the topic inferencer tool only works on LDA models, am I right? Is there a way of inferencing topics from a hLDA model?

标签: mallet
2条回答
\"骚年 ilove
2楼-- · 2019-07-26 10:17

I found an hLDA Inferencer here from chyikwei on Github that I believe will get you there.

I've tested it and have successfully (I think) used it to score new documents.

Following the MALLET build instructions here, I rebuilt MALLET with the HierarchicalLDAInferencer.java code in src/cc/mallet/topics following chyikwei's README

查看更多
Deceive 欺骗
3楼-- · 2019-07-26 10:22

Have you tried out this?

\mallet run cc.mallet.topics.tui.HierarchicalLDATUI --input [FILENAME] --output-state [FILENAME] 

worked for me.

查看更多
登录 后发表回答