cc.mallet.pipe
Class FeatureVectorSequence2FeatureVectors

java.lang.Object
  extended by cc.mallet.pipe.Pipe
      extended by cc.mallet.pipe.FeatureVectorSequence2FeatureVectors
All Implemented Interfaces:
AlphabetCarrying, java.io.Serializable

public class FeatureVectorSequence2FeatureVectors
extends Pipe

Given instances with a FeatureVectorSequence in the data field, break up the sequence into the individual FeatureVectors, producing one FeatureVector per Instance.

See Also:
Serialized Form

Constructor Summary
FeatureVectorSequence2FeatureVectors()
           
 
Method Summary
 java.util.Iterator<Instance> newIteratorFrom(java.util.Iterator<Instance> inputIterator)
          Given an InstanceIterator, return a new InstanceIterator whose instances have also been processed by this pipe.
 
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, pipe, preceedingPipeDataAlphabetNotification, preceedingPipeTargetAlphabetNotification, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureVectorSequence2FeatureVectors

public FeatureVectorSequence2FeatureVectors()
Method Detail

newIteratorFrom

public java.util.Iterator<Instance> newIteratorFrom(java.util.Iterator<Instance> inputIterator)
Description copied from class: Pipe
Given an InstanceIterator, return a new InstanceIterator whose instances have also been processed by this pipe. If you override this method, be sure to check and obey this pipe's skipIfFalse(Instance) method.

Overrides:
newIteratorFrom in class Pipe