implementing mallet recognizer
added a config parameter to disable the option of passing a recognizer at runtime