A Structural GEM for Learning Logical Hidden Markov Models