Package cc.mallet.pipe
Class CharSubsequence
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- 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
Fields Modifier and Type Field Description static java.util.regex.Pattern
SKIP_HEADER
-
Constructor Summary
Constructors Constructor Description CharSubsequence(java.util.regex.Pattern regex)
CharSubsequence(java.util.regex.Pattern regex, int groupIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-