Similar Items: Active Learning of Deterministic Transducers with Outputs in Arbitrary Monoids