current version of sentencehmm.cpp