dragon.ir.topicmodel
Class AspectModel
java.lang.Object
|
+--dragon.ir.topicmodel.AbstractModel
|
+--dragon.ir.topicmodel.AbstractTopicModel
|
+--dragon.ir.topicmodel.AspectModel
- All Implemented Interfaces:
- TopicModel
- public class AspectModel
- extends AbstractTopicModel
Aspect topic model
Copyright: Copyright (c) 2005
Company: IST, Drexel University
- Version:
- 1.0
- Author:
- Davis Zhou
|
Method Summary |
boolean |
estimateModel(int topicNum)
Estimate the topic models |
boolean |
estimateModel(int[] arrDoc,
int topicNum)
|
protected void |
initialize(int termNum,
int themeNum,
int docNum,
double[][] arrModel,
double[][] arrDocMembership)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectModel
public AspectModel(IndexReader indexReader)
estimateModel
public boolean estimateModel(int topicNum)
- Description copied from interface:
TopicModel
- Estimate the topic models
- Parameters:
topicNum - the number of topics
- Returns:
- true if estimating successfully
estimateModel
public boolean estimateModel(int[] arrDoc,
int topicNum)
initialize
protected void initialize(int termNum,
int themeNum,
int docNum,
double[][] arrModel,
double[][] arrDocMembership)