A Compositional Learning Diagnoser for Discrete Event System