cc.mallet.pipe
Class CharSubsequence

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

public class CharSubsequence
extends Pipe
implements java.io.Serializable

Given a string, return only the portion of the string inside a regex parenthesized group.

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

Field Summary
static java.util.regex.Pattern SKIP_HEADER
           
 
Constructor Summary
CharSubsequence(java.util.regex.Pattern regex)
           
CharSubsequence(java.util.regex.Pattern regex, int groupIndex)
           
 
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
 

Field Detail

SKIP_HEADER

public static final java.util.regex.Pattern SKIP_HEADER
Constructor Detail

CharSubsequence

public CharSubsequence(java.util.regex.Pattern regex,
                       int groupIndex)

CharSubsequence

public CharSubsequence(java.util.regex.Pattern regex)
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