public function setRecognizer($params)
    {
        if (is_array($params) && ! isset($params['class'])) {
            $params['class'] = Recognizer::className();
        }

        $this->_recognizer = Yii::createObject($params);
    }