A pure python learner of weighted finite state automata