Online Learning of Event Definitions