''' Created on Dec 3, 2015 @author: walter ''' from llm.FeatureSet import * if __name__ == '__main__': FILENAME1 = "feature_set.xml" FILENAME2 = "feature_set1.xml" feature_set = FeatureSet() feature_set.read_xml(FILENAME1) feature_set.write_xml(FILENAME2)
pass def evaluate_cv( grounding, grounding_set ): pass def scrape_examples( phrase, world, search_spaces, examples ): pass if __name__ == '__main__': FEATURE_SET_FILENAME = '' OUTPUT_FILENAME = '' try: opts, args = getopt.getopt(sys.argv[1:],"hf:o",["feature_set=","output="]) except getopt.GetoptError: print 'LLMTrain.py -f <feature_set.xml> -o <output.xml>' sys.exit(2) for opt,arg in opts, args: if opt == '-h': print 'LLMTrain.py -f <feature_set.xml> -o <output.xml>' elif opt in ("-f", "--feature_set"): FEATURE_SET_FILENAME = arg elif opt in ("-o", "--output"): OUTPUT_FILENAME = arg feature_set = FeatureSet() feature_set.read_xml( FEATURE_SET_FILENAME ) llm = LLM( feature_set )