Research Article
Hierarchical Annotation Event Extraction Method in Multiple Scenarios
Algorithm 1
Calculation of mask vector for specified event trigger.
Input: Sentence: ; Event type: list; event trigger; | Output: mask vector: | ; | ; | iflength of event type is 1then | return the vector | end | other_trigger = list.pop() | fordo | find which is the index of where is the minimal clause containing ; | ifthen | change 1 of to 0; | end | end | return the vector |
|