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

Field Summary
 
Fields inherited from class dragon.ir.topicmodel.AbstractTopicModel
arrDocTheme, arrThemeTerm, docNum, indexReader, termNum, themeNum
 
Fields inherited from class dragon.ir.topicmodel.AbstractModel
iterations, seed, statusOut
 
Constructor Summary
AspectModel(IndexReader indexReader)
           
 
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 dragon.ir.topicmodel.AbstractTopicModel
getDocNum, getDocTopics, getTermName, getTermNum, getTopic, getTopicNum
 
Methods inherited from class dragon.ir.topicmodel.AbstractModel
getBkgModel, getIterationNum, printStatus, setIterationNum, setRandomSeed, setStatusOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectModel

public AspectModel(IndexReader indexReader)
Method Detail

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)