coreComponents
Class SVMToArff

java.lang.Object
  |
  +--coreComponents.SVMToArff
All Implemented Interfaces:
OptionHandler

public class SVMToArff
extends java.lang.Object
implements OptionHandler

Here is a boring and pointless application for converting the primitive SVM data format to the nice WEKA arff format.

Version:
$Revision: 1.1$
Author:
David Lindsay (davidl@cs.rhul.ac.uk)

Constructor Summary
SVMToArff()
           
 
Method Summary
static java.lang.String convertFileToArffString(java.lang.String inputFileName)
          Method for converting the old SVM data format into the WEKA arff format.
 java.lang.String getInputFileName()
           
 java.lang.String[] getOptions()
          Gets the current settings for data to arff conversion
 java.lang.String getOutputFileName()
           
 boolean inputFileSpecified()
           
 java.util.Enumeration listOptions()
          Returns an enumeration describing the available options
static void main(java.lang.String[] args)
          Testing area for this object
 boolean outputFileSpecified()
           
 void setOptions(java.lang.String[] options)
          Parses a given list of options.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVMToArff

public SVMToArff()
Method Detail

inputFileSpecified

public boolean inputFileSpecified()

outputFileSpecified

public boolean outputFileSpecified()

getInputFileName

public java.lang.String getInputFileName()

getOutputFileName

public java.lang.String getOutputFileName()

convertFileToArffString

public static java.lang.String convertFileToArffString(java.lang.String inputFileName)
Method for converting the old SVM data format into the WEKA arff format.

Parameters:
inputFileName - the input file to be converted

listOptions

public java.util.Enumeration listOptions()
Returns an enumeration describing the available options

Specified by:
listOptions in interface OptionHandler
Returns:
an enumeration of all the available options

setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Parses a given list of options. Valid options are:

-i input data file string
-o output arff file string

Specified by:
setOptions in interface OptionHandler
Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported

getOptions

public java.lang.String[] getOptions()
Gets the current settings for data to arff conversion

Specified by:
getOptions in interface OptionHandler
Returns:
an array of strings suitable for passing to setOptions()

main

public static void main(java.lang.String[] args)
Testing area for this object



Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London