|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GEConstraint
Interface for GE constraint that considers either one or two states.
Method Summary | |
---|---|
void |
computeExpectations(java.util.ArrayList<SumLattice> lattices)
Compute expectations using cached lattices. |
GEConstraint |
copy()
This is used in multi-threading. |
double |
getCompositeConstraintFeatureValue(FeatureVector input,
int inputPosition,
int srcIndex,
int destIndex)
Computes the composite constraint feature value (over all constraint features) for FeatureVector fv and a transition from state li1 to li2. |
double |
getValue()
Returns the total constraint value. |
boolean |
isOneStateConstraint()
|
void |
preProcess(FeatureVector input)
Gives the constraint the option to do some caching using only the FeatureVector. |
java.util.BitSet |
preProcess(InstanceList data)
|
void |
setStateLabelMap(StateLabelMap map)
Sets that map between the state indices and label indices. |
void |
zeroExpectations()
Zero expectation values. |
Method Detail |
---|
double getCompositeConstraintFeatureValue(FeatureVector input, int inputPosition, int srcIndex, int destIndex)
input
- FeatureVector on transitioninputPosition
- Position of input in sequencesrcIndex
- Source state index for transitiondestIndex
- Destination state index for transition
double getValue()
void computeExpectations(java.util.ArrayList<SumLattice> lattices)
lattices
- Cached SumLatticesdata
- Unlabeled datavoid zeroExpectations()
void setStateLabelMap(StateLabelMap map)
map
- StateLabelMapGEConstraint copy()
boolean isOneStateConstraint()
java.util.BitSet preProcess(InstanceList data)
data
- Unlabeled data
void preProcess(FeatureVector input)
input
- FeatureVector input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |