def test_advance_emission(self): hmm = HMM({'q0': ['q1'], 'q1': (['q1', 'qf'], ['dag', 'kat', 'dot', 'kod', 'gas', 'toz'] + ['zo', 'go', 'do'] + ['at']) }) self.write_to_dot_to_file(hmm, "pre_advance_emission_hmm") hmm.advance_emission() for line in hmm.get_log_lines(): print(line) self.write_to_dot_to_file(hmm, "advance_emission_hmm")