separate train and recognize