|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints
cc.mallet.fst.semi_supervised.constraints.TwoLabelL2GEConstraints
public class TwoLabelL2GEConstraints
A set of constraints on distributions over consecutive labels conditioned an input features. This is to be used with GE, and penalizes the L_2^2 difference between model and target distributions. Multiple constraints are grouped together here to make things more efficient.
| Nested Class Summary | |
|---|---|
protected class |
TwoLabelL2GEConstraints.TwoLabelL2GEConstraint
|
| Nested classes/interfaces inherited from class cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints |
|---|
TwoLabelGEConstraints.TwoLabelGEConstraint |
| Field Summary |
|---|
| Fields inherited from class cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints |
|---|
cache, constraintsList, constraintsMap, map |
| Constructor Summary | |
|---|---|
TwoLabelL2GEConstraints()
|
|
| Method Summary | |
|---|---|
void |
addConstraint(int fi,
double[][] target,
double weight)
|
GEConstraint |
copy()
This is used in multi-threading. |
double |
getValue()
Returns the total constraint value. |
| Methods inherited from class cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints |
|---|
computeExpectations, getCompositeConstraintFeatureValue, isOneStateConstraint, preProcess, preProcess, setStateLabelMap, zeroExpectations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwoLabelL2GEConstraints()
| Method Detail |
|---|
public GEConstraint copy()
GEConstraint
public void addConstraint(int fi,
double[][] target,
double weight)
addConstraint in class TwoLabelGEConstraintsfi - Input feature indextarget - Target distribution over pairs of labelsweight - Weight of this constraintpublic double getValue()
GEConstraint
getValue in interface GEConstraintgetValue in class TwoLabelGEConstraints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||