question: public static Instances loadDataset ( String options [ ] , char T ) throws Exception { Instances D = null ; String filename = Utils . getOption ( T , options ) ; if ( filename == null || filename . isEmpty ( ) ) throw new Exception ( "[Error] You did not specify a dataset!" ) ; File file = new File ( filename ) ; if ( ! file . exists ( ) ) throw new Exception ( "[Error] File does not exist: " + filename ) ; if ( file . isDirectory ( ) ) throw new Exception ( "[Error] " + filename + " points to a directory!" ) ; try { DataSource source = new DataSource ( filename ) ; D = source . getDataSet ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; throw new Exception ( "[Error] Failed to load Instances from file '" + filename + "'." ) ; } return D ; }
target:  loadDataset - load a dataset, given command line options specifying an arff file.