LDA4j icon indicating copy to clipboard operation
LDA4j copied to clipboard

有相关的api文档吗,如何获得新文档的主题分布?

Open haowuseu opened this issue 10 years ago • 2 comments

有相关的api文档吗,请问如何获得新文档的主题分布? int[] document = Corpus.loadDocument("data/mini/军事_510.txt", corpus.getVocabulary()); double[] tp = LdaGibbsSampler.inference(phi, document); Map<String, Double> topic = LdaUtil.translate(tp, phi, corpus.getVocabulary(), 100); LdaUtil.explain(topic);

haowuseu avatar Nov 27 '15 11:11 haowuseu

这个功能还在探索中。

hankcs avatar Nov 28 '15 11:11 hankcs

使用了吉布斯采样,应该有吉布斯更新规则,把新主题放进来更新一下就能得到结果。

howsun avatar Dec 24 '16 00:12 howsun