An unofficial code reproduction in the field of event extraction of EMNLP-19 paper "Event Detection with Multi-Order Graph Convolution and Aggregated Attention"
@alwayslikethat
generate sentence mask, get its final feature representation according to the actual length of sentence
refer to line 60 in model.pyxx_m = torch.mul(xx, mask.unsqueeze(2)