extended NB trainer to support bernoulli, gaussian, and multinomial emission probability distributions