|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.classify.Classifier
LBJ2.infer.ParameterizedConstraint
public abstract class ParameterizedConstraint
This class represents an LBJ constraint as it appears in a source file.
When given its input object, an object of this class generates objects of
type FirstOrderConstraint.
ParameterizedConstraints are also Boolean
Classifiers.
ParameterizedConstraint depends on extending classes to
override the discreteValue(Object) method so that it returns
"true" or "false" as appropriate. When this is
done, there is no need to override the classify(Object)
method.
| Field Summary |
|---|
| Fields inherited from class LBJ2.classify.Classifier |
|---|
containingPackage, name |
| Constructor Summary | |
|---|---|
ParameterizedConstraint()
Default constructor. |
|
ParameterizedConstraint(java.lang.String n)
Initializes the name. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
allowableValues()
Returns the array of allowable values that a feature returned by this classifier may take. |
FeatureVector |
classify(java.lang.Object o)
This method makes one or more decisions about a single object, returning those decisions as Features in a vector. |
abstract FirstOrderConstraint |
makeConstraint(java.lang.Object o)
This method builds a first order constraint based on the given input object. |
| Methods inherited from class LBJ2.classify.Classifier |
|---|
binaryRead, binaryRead, binaryRead, binaryRead, binaryWrite, binaryWrite, classify, clone, discreteValue, discreteValueArray, getCompositeChildren, getInputType, getOutputType, realValue, realValueArray, test, toString, valueIndexOf |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterizedConstraint()
public ParameterizedConstraint(java.lang.String n)
n - The name of this constraint.| Method Detail |
|---|
public FeatureVector classify(java.lang.Object o)
Features in a vector.
classify in class Classifiero - The object to make decisions about.
Features about the input object.public java.lang.String[] allowableValues()
allowableValues in class Classifierpublic abstract FirstOrderConstraint makeConstraint(java.lang.Object o)
o - The object to build a constraint with respect to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||