|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.extract.RegexFieldCleaner
public class RegexFieldCleaner
A field cleaner that removes all occurrences of a given regex. Created: Nov 26, 2004
Field Summary | |
---|---|
static java.lang.String |
REMOVE_PUNCT
|
Constructor Summary | |
---|---|
RegexFieldCleaner(java.util.regex.Pattern regex)
|
|
RegexFieldCleaner(java.lang.String regex)
|
Method Summary | |
---|---|
java.lang.String |
cleanFieldValue(java.lang.String rawFieldValue)
Returns a post-processed version of a field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REMOVE_PUNCT
Constructor Detail |
---|
public RegexFieldCleaner(java.lang.String regex)
public RegexFieldCleaner(java.util.regex.Pattern regex)
Method Detail |
---|
public java.lang.String cleanFieldValue(java.lang.String rawFieldValue)
FieldCleaner
cleanFieldValue
in interface FieldCleaner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |