public abstract class AbstractTopicModel extends AbstractModel implements TopicModel
Abstract class of topic model
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected double[][] |
arrDocTheme |
protected double[][] |
arrThemeTerm |
protected int |
docNum |
protected IndexReader |
indexReader |
protected int |
termNum |
protected int |
themeNum |
iterations, seed, statusOut| Constructor and Description |
|---|
AbstractTopicModel(IndexReader indexReader) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDocNum() |
double[] |
getDocTopics(int docIndex) |
String |
getTermName(int termIndex) |
int |
getTermNum() |
double[] |
getTopic(int topicIndex) |
int |
getTopicNum() |
getBkgModel, getIterationNum, printStatus, setIterationNum, setRandomSeed, setStatusOutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimateModelprotected int themeNum
protected int termNum
protected int docNum
protected double[][] arrThemeTerm
protected double[][] arrDocTheme
protected IndexReader indexReader
public AbstractTopicModel(IndexReader indexReader)
public int getTopicNum()
getTopicNum in interface TopicModelpublic double[] getTopic(int topicIndex)
getTopic in interface TopicModeltopicIndex - the index of the topicpublic int getDocNum()
getDocNum in interface TopicModelpublic double[] getDocTopics(int docIndex)
getDocTopics in interface TopicModeldocIndex - the index of the documentpublic int getTermNum()
getTermNum in interface TopicModelpublic String getTermName(int termIndex)
getTermName in interface TopicModeltermIndex - the index of the topical termCopyright © 2018 JULIE Lab, Germany. All rights reserved.