WIP.
sigh... fix SemiCRF inference.