cc.mallet.pipe
Class Noop

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

public class Noop
extends Pipe
implements java.io.Serializable

A pipe that does nothing to the instance fields but which has side effects on the dictionary.

Author:
Andrew McCallum mccallum@cs.umass.edu
See Also:
Serialized Form

Constructor Summary
Noop()
           
Noop(Alphabet dataDict, Alphabet targetDict)
          Pass through input without change, but force the creation of Alphabet's, so it can be shared by future DictionariedPipe's.
 
Method Summary
 Instance pipe(Instance carrier)
          Really this should be 'protected', but isn't for historical reasons.
 
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, 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

Noop

public Noop()

Noop

public Noop(Alphabet dataDict,
            Alphabet targetDict)
Pass through input without change, but force the creation of Alphabet's, so it can be shared by future DictionariedPipe's. You might want to use this before ParallelPipes where the previous pipes do not need dictionaries, but later steps in each parallel path do, and they all must share the same dictionary.

Method Detail

pipe

public Instance pipe(Instance carrier)
Description copied from class: Pipe
Really this should be 'protected', but isn't for historical reasons.

Overrides:
pipe in class Pipe