Class OT.AlignFeature
All Packages Class Hierarchy This Package Previous Next Index
Class OT.AlignFeature
java.lang.Object
|
+----OT.Constraint
|
+----OT.Align
|
+----OT.AlignFeature
- public class AlignFeature
- extends Align
Alignment constraint. Requires that every feature token be aligned with the left/right edge of the PrWd.
- Version:
- 1999-03-31
- Author:
- Andrea Heiberg, University of Arizona
-
AlignFeature(FeatureType, Edge)
-
-
evaluate(Representation, Representation)
- Returns the number of times that candidate violates this constraint.
-
toString()
- Returns a string representation of this object.
AlignFeature
public AlignFeature(FeatureType featureType,
Edge edge)
evaluate
public Integer evaluate(Representation candidate,
Representation nullRep)
- Returns the number of times that candidate violates this constraint. For each token of featureType, find the edgemost anchor for feature. Add this anchor's distance from edge to the total violation count.
- Overrides:
- evaluate in class Constraint
toString
public String toString()
- Returns a string representation of this object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index