build recognizer