We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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文档吗,请问如何获得新文档的主题分布? 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);
The text was updated successfully, but these errors were encountered:
这个功能还在探索中。
Sorry, something went wrong.
使用了吉布斯采样,应该有吉布斯更新规则,把新主题放进来更新一下就能得到结果。
No branches or pull requests
有相关的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);
The text was updated successfully, but these errors were encountered: