-
Notifications
You must be signed in to change notification settings - Fork 140
有相关的api文档吗,如何获得新文档的主题分布? #2
Copy link
Copy link
Open
Labels
Description
有相关的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);
Reactions are currently unavailable