mallet inferencer for hLDA

2019-07-26 09:28发布

问题:

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?

回答1:

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



回答2:

Have you tried out this?

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

worked for me.



标签: mallet