cc.mallet.fst.semi_supervised.constraints
Class TwoLabelL2GEConstraints.TwoLabelL2GEConstraint

java.lang.Object
  extended by cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints.TwoLabelGEConstraint
      extended by cc.mallet.fst.semi_supervised.constraints.TwoLabelL2GEConstraints.TwoLabelL2GEConstraint
Enclosing class:
TwoLabelL2GEConstraints

protected class TwoLabelL2GEConstraints.TwoLabelL2GEConstraint
extends TwoLabelGEConstraints.TwoLabelGEConstraint


Field Summary
 
Fields inherited from class cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints.TwoLabelGEConstraint
count, expectation, target, weight
 
Constructor Summary
TwoLabelL2GEConstraints.TwoLabelL2GEConstraint(double[][] target, double weight)
           
 
Method Summary
 double getValue(int liPrev, int liCurr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoLabelL2GEConstraints.TwoLabelL2GEConstraint

public TwoLabelL2GEConstraints.TwoLabelL2GEConstraint(double[][] target,
                                                      double weight)
Method Detail

getValue

public double getValue(int liPrev,
                       int liCurr)
Specified by:
getValue in class TwoLabelGEConstraints.TwoLabelGEConstraint