In practice, they are usually trained by maximising the conditional log-likelihood (CLL) of the training data.
it is widely appreciated that optimizing for task-specific metrics often leads to better performance on those tasks (Goodman, 1996;Och, 2003).