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.