mallet inferencer for hLDA

此生再无相见时 提交于 2019-12-24 00:17:27

问题


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.



来源:https://stackoverflow.com/questions/38376278/mallet-inferencer-for-hlda

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!