def run_training(params, input_files):
	debug_level = params['debug_level']

	### only generate ARFF for training mode, not fast training mode
	if params['run_mode'] == 'train':
		generate_arff(params, input_files)

	if debug_level > 0:
		temp = "++ generating and saving model file"
		debug_print(1, debug_level, temp)

	### generate and save model
	### -i: more detail results, -x 10: 10-fold cross-validation
	cmd =  'java -Xmx1G -cp ' + params['weka_path'] + 'weka.jar '
	cmd += params['classifier'] + ' -t ' + params['arff_file']
	cmd += ' -x 10 -d ' + params['model_file']
	os.system(cmd)


###############################################################################
### Testing against model
###############################################################################
dataset/ETHPy150Open joliva/nlp-nltk-demo/code/hw2utils.py/run_training/original