A Compositional Learning Diagnoser for Discrete Event Systems