|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--coreComponents.ArffCreator
A very messy class used to convert/create arff files
Constructor Summary | |
ArffCreator()
|
Method Summary | |
static java.lang.String |
convertFileToString(java.io.File inputFile)
Method for converting a text file into a big long string for processing! |
static Instances |
createArffDataFromTextFilesInDirectories(FastVector classNames,
java.lang.String dataSetName,
java.lang.String stringAttributeName,
java.lang.String classAttributeName,
FastVector[] directoryNames)
Create a pattern recognition data set from text files stored in directories. |
static void |
main(java.lang.String[] args)
Testing area for this object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArffCreator()
Method Detail |
public static Instances createArffDataFromTextFilesInDirectories(FastVector classNames, java.lang.String dataSetName, java.lang.String stringAttributeName, java.lang.String classAttributeName, FastVector[] directoryNames) throws java.lang.Exception
dataSetName
- the name of the data set that you are creatingstringAttributeName
- the name of the String attribute that you are creating!directoryNames
- an array contains vectors of each directory name (containing the files for each class)
java.lang.Exception
public static java.lang.String convertFileToString(java.io.File inputFile)
inputFile
- the input file to be convertedpublic static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London