Package cc.mallet.util
Class Replacement
- java.lang.Object
-
- cc.mallet.util.Replacement
-
- All Implemented Interfaces:
java.io.Serializable
public class Replacement extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Replacement(java.lang.String line)
if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores.Replacement(java.lang.String source, java.lang.String target)
A version that specifies a target, which may be an empty string
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
apply(java.lang.String[] input, int startPosition, java.lang.StringBuilder output)
java.lang.String
getFirstToken()
-
-
-
Constructor Detail
-
Replacement
public Replacement(java.lang.String line)
if the input string contains two sections separated by a tab, the target is the second field, with all whitespace replaced by underscores. if the input is a single field, the target is the input with all whitespace replace by underscores.
-
Replacement
public Replacement(java.lang.String source, java.lang.String target)
A version that specifies a target, which may be an empty string
-
-