📄 topicmodel.java
字号:
package dragon.ir.topicmodel;/** * <p>Interface of topic models</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface TopicModel { /** * Estimate the topic models * @param topicNum the number of topics * @return true if estimating successfully */ public boolean estimateModel(int topicNum); public int getTopicNum(); /** * @param topicIndex the index of the topic * @return the distribution (over words) of the given topic */ public double[] getTopic(int topicIndex); /** * @return the number of documents */ public int getDocNum(); /** * @param docIndex the index of the document * @return the distribution (over topics) of the given document */ public double[] getDocTopics(int docIndex); /** * @return the number of topical terms */ public int getTermNum(); /** * @param termIndex the index of the topical term * @return the name of the given topical term */ public String getTermName(int termIndex);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -