basic CRF model with inference
work in progress on max LL training