Class TextDirectoryLoader

  • All Implemented Interfaces:
    java.io.Serializable, CommandlineRunnable, BatchConverter, IncrementalConverter, Loader, OptionHandler, RevisionHandler

    public class TextDirectoryLoader
    extends AbstractLoader
    implements BatchConverter, IncrementalConverter, OptionHandler, CommandlineRunnable
    Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.

    Valid options are:

     -D
      Enables debug output.
      (default: off)
     
     -F
      Stores the filename in an additional attribute.
      (default: off)
     
     -dir <directory>
      The directory to work on.
      (default: current directory)
     
     -charset <charset name>
      The character set to use, e.g UTF-8.
      (default: use the default character set)
     
     -R
      Retain all string attribute values when reading incrementally.
     
    Based on code from the TextDirectoryToArff tool. See the
  • Wiki article
Version:
$Revision: 15255 $
Author:
Ashraf M. Kibriya (amk14 at cs.waikato.ac.nz), Richard Kirkby (rkirkby at cs.waikato.ac.nz), fracpete (fracpete at waikato dot ac dot nz)
See Also:
Loader, Serialized Form