hu.birot.OTKit.learning
Class OfflineLearning

java.lang.Object
  extended by hu.birot.OTKit.learning.Learning
      extended by hu.birot.OTKit.learning.OfflineLearning

public abstract class OfflineLearning
extends Learning

An approach (method, way) to do Offline Learning.

Method learn(Grammar G, Vector<Candidate> cand) must instantiated.


Constructor Summary
OfflineLearning()
           
 
Method Summary
abstract  boolean learn(Grammar G, java.util.Vector<Candidate> cand)
          Update (or set) Grammar G based on the data set in the Vector cand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineLearning

public OfflineLearning()
Method Detail

learn

public abstract boolean learn(Grammar G,
                              java.util.Vector<Candidate> cand)

Update (or set) Grammar G based on the data set in the Vector cand.

Parameters:
G - Grammar to be set/updated based on the data.
cand - Vector of Candidates representing the data.
Returns:
true if G is changed; false if no learning takes.