linear chain crfs