dasher
Class CDasherModel.CTrainer

java.lang.Object
  extended by dasher.CDasherModel.CTrainer
Enclosing class:
CDasherModel

 class CDasherModel.CTrainer
extends java.lang.Object

Helper class to assist in training of the language model.


Field Summary
protected  CContextBase m_Context
          Context which we are extending in the training process
protected  CDasherModel m_DasherModel
          Model which we are training
 
Constructor Summary
CDasherModel.CTrainer(CDasherModel DasherModel)
          Sole constructor.
 
Method Summary
 void DeleteTrainer()
          Destroys our context; this should only be called when the language model is of no further use.
 void Train(java.util.ArrayList<java.lang.Integer> vSymbols)
          Trains this trainer's associated language model according to the symbols specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Context

protected CContextBase m_Context
Context which we are extending in the training process


m_DasherModel

protected CDasherModel m_DasherModel
Model which we are training

Constructor Detail

CDasherModel.CTrainer

public CDasherModel.CTrainer(CDasherModel DasherModel)
Sole constructor. Produces a Trainer with an empty context which is ready to train.

Parameters:
DasherModel - Model whose LanguageModel we are training. Must not be null.
Method Detail

Train

public void Train(java.util.ArrayList<java.lang.Integer> vSymbols)
Trains this trainer's associated language model according to the symbols specified. Note that these are not character codes but integer symbol indices; these may be obtained by passing characters to the relevant Alphabet's GetSymbols method.

Parameters:
vSymbols - Symbols to teach the model.

DeleteTrainer

public void DeleteTrainer()
Destroys our context; this should only be called when the language model is of no further use.