⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topicmodel.java

📁 dragontoolkit用于机器学习
💻 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 + -