modified the merge sentence function (need unittest), replaced the index of trigger and events by annotation in document (to be finished)