Example using the adept autodifferentiation library for training a linear chain CRF