Package nltk_lite :: Package contrib :: Package classifier :: Module commandline :: Class CommandLineInterface
[hide private]
[frames] | no frames]

Class CommandLineInterface

source code

optparse.OptionContainer --+    
                           |    
       optparse.OptionParser --+
                               |
                              CommandLineInterface
Known Subclasses:
classify.Classify, featureselect.FeatureSelect, discretise.Discretise

Instance Methods [hide private]
 
__init__(self, alg_choices, alg_default, a_help, f_help, t_help, T_help, g_help) source code
 
get_value(self, name) source code
 
parse(self, args)
method to aid testing
source code
 
execute(self)
Stores values from arguments which are common to all command line interfaces
source code
 
run(self, args)
Main method which delegates all the work
source code
 
validate_basic_arguments_are_present(self) source code
 
validate_files_arg_is_exclusive(self) source code
 
get_instances(self, training_path, test_path, gold_path, ignore_missing=True) source code
 
__get_instance(self, method, path, ignore_if_missing) source code
 
required_arguments_not_present_error(self) source code
 
write_to_file(self, suffix, training, attributes, klass, test, gold) source code

Inherited from optparse.OptionParser: add_option_group, check_values, destroy, disable_interspersed_args, enable_interspersed_args, error, exit, expand_prog_name, format_epilog, format_help, format_option_help, get_default_values, get_description, get_option_group, get_prog_name, get_usage, get_version, parse_args, print_help, print_usage, print_version, set_default, set_defaults, set_process_default_values, set_usage

Inherited from optparse.OptionParser (private): _add_help_option, _add_version_option, _create_option_list, _get_all_options, _get_args, _get_encoding, _init_parsing_state, _match_long_opt, _populate_option_list, _process_args, _process_long_opt, _process_short_opts

Inherited from optparse.OptionContainer: add_option, add_options, format_description, get_option, has_option, remove_option, set_conflict_handler, set_description

Inherited from optparse.OptionContainer (private): _check_conflict, _create_option_mappings, _share_option_mappings

Class Variables [hide private]

Inherited from optparse.OptionParser: standard_option_list

Method Details [hide private]

__init__(self, alg_choices, alg_default, a_help, f_help, t_help, T_help, g_help)
(Constructor)

source code 
Overrides: optparse.OptionParser.__init__