org.maltparser.core.feature
Class FeatureVector
java.lang.Object
   java.util.AbstractCollection<E>
java.util.AbstractCollection<E>
       java.util.AbstractList<E>
java.util.AbstractList<E>
           java.util.ArrayList<FeatureFunction>
java.util.ArrayList<FeatureFunction>
               org.maltparser.core.feature.FeatureVector
org.maltparser.core.feature.FeatureVector
- All Implemented Interfaces: 
- Serializable, Cloneable, Iterable<FeatureFunction>, Collection<FeatureFunction>, List<FeatureFunction>, RandomAccess
- public class FeatureVector 
- extends ArrayList<FeatureFunction>- implements Serializable
- Author:
- Johan Hall
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class java.util.ArrayList | 
| add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize | 
 
 
 
 
 
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
specSubModel
protected SpecificationSubModel specSubModel
featureModel
protected FeatureModel featureModel
FeatureVector
public FeatureVector(FeatureModel featureModel,
                     SpecificationSubModel specSubModel)
              throws MaltChainedException
- Constructs a feature vector
 
- Parameters:
- featureModel- the parent feature model
- specSubModel- the subspecifiction-model
- Throws:
- MaltChainedException
 
getSpecSubModel
public SpecificationSubModel getSpecSubModel()
- Returns the subspecifiction-model.
 
- 
 
- 
- Returns:
- the subspecifiction-model
 
setSpecSubModel
protected void setSpecSubModel(SpecificationSubModel specSubModel)
- 
 
- 
 
getFeatureModel
public FeatureModel getFeatureModel()
- Returns the feature model that the feature vector belongs to.
 
- 
 
- 
- Returns:
- the feature model that the feature vector belongs to
 
setFeatureModel
protected void setFeatureModel(FeatureModel featureModel)
- 
 
- 
 
update
public void update()
            throws MaltChainedException
- Updates all feature value in the feature vector according to the current state.
 
- 
 
- 
- Throws:
- MaltChainedException
 
updateCardinality
public void updateCardinality()
                       throws MaltChainedException
- Updates the cardinality (number of distinct values) of a feature value associated with the feature function
 
- 
 
- 
- Throws:
- MaltChainedException
 
toString
public String toString()
- 
- Overrides:
- toStringin class- AbstractCollection<FeatureFunction>
 
- 
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.