Package cc.mallet.pipe
Class CharSequenceReplace
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- cc.mallet.pipe.CharSequenceReplace
-
- All Implemented Interfaces:
AlphabetCarrying
,java.io.Serializable
public class CharSequenceReplace extends Pipe implements java.io.Serializable
Given a string, repeatedly look for matches of the regex, and replace the entire match with the given replacement string.- 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
static java.util.regex.Pattern
SKIP_SGML
-
Constructor Summary
Constructors Constructor Description CharSequenceReplace(java.util.regex.Pattern regex, java.lang.String replacement)
-
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
-
-