Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haowuseu opened this issue Nov 27, 2015 · 2 comments
Open
Labels

Comments

@haowuseu
Copy link

有相关的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);

@hankcs
Copy link
Owner

hankcs commented Nov 28, 2015

这个功能还在探索中。

@howsun
Copy link

howsun commented Dec 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants