gate.creole.ml
Class Attribute
java.lang.Object
gate.creole.ml.Attribute
- All Implemented Interfaces:
- Serializable
- public class Attribute
- extends Object
- implements Serializable
Describes an attribute associated to a ML instance.
- See Also:
- Serialized Form
NOMINAL
public static final int NOMINAL
- See Also:
- Constant Field Values
NUMERIC
public static final int NUMERIC
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
Attribute
public Attribute(org.jdom.Element jdomElement)
throws GateException
Attribute
public Attribute()
toString
public String toString()
isClass
public boolean isClass()
setName
public void setName(String name)
getName
public String getName()
setType
public void setType(String type)
getType
public String getType()
setFeature
public void setFeature(String feature)
getFeature
public String getFeature()
setWeighting
public void setWeighting(double weighting)
getWeighting
public double getWeighting()
getValues
public List getValues()
getPosition
public int getPosition()
setClass
public void setClass(boolean isClass)
setValues
public void setValues(List values)
setPosition
public void setPosition(int position)
semanticType
public int semanticType()
- This method reports whether the attribute is nominal, numeric or boolean.
- Returns:
- Attribute.NOMINAL, Attribute.NUMERIC or Attribute.BOOLEAN