|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectace.CommandLine
public class CommandLine
Parses and processes the flags and options given at the command line. Upon instantiation, this class reads all commands from the command line and stores them as public fields. These fields are accessed by Main to determine whether ACE should be run from the GUI or the CLI. The method processRequests will direct the flow of execution if Main decides that ACE should be run from the command line.
NOTE: for training_classifier_type and cross_validation_classifier_type, the codes for the types of WEKA classifiers are as follows:
Field Summary | |
---|---|
java.lang.String |
arff_file
If Instances are being loaded from an ARFF file, this specifies the path to that file. |
java.lang.String |
classifications_file
The path to the ACE XML classifications file for this project. |
java.lang.String |
classifier_type
The type of Weka Classifier to be trained. |
java.lang.String |
cross_validation_string
Specifies the number of folds to be used in cross validation. |
java.lang.String[] |
dozip
|
java.lang.String |
experimentation_string
Specifies the number of folds to be used for cross validation during experimentation. |
java.lang.String |
feature_key_file
The path to the ACE XML feature definitions file for this project. |
java.lang.String |
feature_selector
A code specifying what type of dimensionality reduction to be performed. |
java.lang.String[] |
feature_vector_files
Array of paths to ACE XML feature vectors files for this project. |
java.lang.String |
file_type
|
java.lang.String |
load_zip
Specifies the path to the ACE zip file if loading data from an ACE zip file. |
double |
max_membership
The maximum number of instances that may belong to any one class. |
double |
max_spread
The maximum ratio of instances that are permitted belonging to different classes. |
boolean |
order_randomly
If true, instances are ordered randomly before training, cross validation, or experimenting. |
java.lang.String |
project_path
Specifies the path to the ACE XML project file if loading data from an ACE project file or an ACE zip file. |
java.lang.String |
save_file
The file to which the results or the TrainedModel (depending on which processing is being performed) will be saved. |
boolean |
save_intermediate_arffs
Whether or not to save training or testing data to an arff file after parsing, after thinning, and again after feature selection, if any. |
java.lang.String |
taxonomy_file
The path to the ACE XML taxonomy file for this project. |
java.lang.String |
testing_to_load_classifiers_file
The name of file from which the TrainModel object to be used for classification is to be read. |
boolean |
train
Whether or not training is to be performed. |
boolean |
unzip
|
boolean |
verbose
Specifies whether or not to include detailed information in the results output. |
java.lang.String |
zip_add
|
java.lang.String |
zip_directory
The directory to which the zip file (if specified) will be unzipped. |
java.lang.String |
zip_extract
The name of the single file that the user would like to exract from the specified zip file. |
java.lang.String |
zip_file
|
Constructor Summary | |
---|---|
CommandLine(java.lang.String[] options)
Reads options from the command line and sets fields accordinly. |
Method Summary | |
---|---|
void |
dumpContents()
Prints all command line options to standard out. |
static void |
printHelpMessage()
Prints a help message to standard out with brief instructions redarding the use of ACE from the command line. |
void |
processRequests()
Performs actions based on the options specified at the command line. |
void |
processZip()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String classifier_type
public java.lang.String save_file
public java.lang.String feature_selector
public boolean order_randomly
public double max_spread
public double max_membership
public boolean save_intermediate_arffs
public java.lang.String project_path
public java.lang.String load_zip
public java.lang.String taxonomy_file
public java.lang.String feature_key_file
public java.lang.String classifications_file
public java.lang.String[] feature_vector_files
public java.lang.String arff_file
public boolean train
public java.lang.String testing_to_load_classifiers_file
public java.lang.String cross_validation_string
public java.lang.String experimentation_string
public boolean verbose
public java.lang.String zip_file
public java.lang.String file_type
public boolean unzip
public java.lang.String[] dozip
public java.lang.String zip_add
public java.lang.String zip_extract
public java.lang.String zip_directory
Constructor Detail |
---|
public CommandLine(java.lang.String[] options) throws java.lang.Exception
options
- The command line arguments.
java.lang.Exception
- If invalid command line arguments are used.Method Detail |
---|
public void processRequests() throws java.lang.Exception
java.lang.Exception
- If invalid input files were specified.public void processZip() throws java.lang.Exception
java.lang.Exception
public static void printHelpMessage()
public void dumpContents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |