further steps towards implementing prefixes for semi-markov CRF