Documentation of 'cc.mallet.extract.RegexFieldCleaner' Java class
RegexFieldCleaner
cc.mallet.extract

Class RegexFieldCleaner

  • All Implemented Interfaces:
    FieldCleaner


    public class RegexFieldCleaner
    extends java.lang.Object
    implements FieldCleaner
    A field cleaner that removes all occurrences of a given regex. Created: Nov 26, 2004
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String REMOVE_PUNCT 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String cleanFieldValue(java.lang.String rawFieldValue)
      Returns a post-processed version of a field.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexFieldCleaner

        public RegexFieldCleaner(java.lang.String regex)
      • RegexFieldCleaner

        public RegexFieldCleaner(java.util.regex.Pattern regex)
    • Method Detail

      • cleanFieldValue

        public java.lang.String cleanFieldValue(java.lang.String rawFieldValue)
        Description copied from interface: FieldCleaner
        Returns a post-processed version of a field.
        Specified by:
        cleanFieldValue in interface FieldCleaner
        Returns:
        A processed string

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.