There are two steps to run this code:
Preprocessing: using file data_script.py and encode_window.py You will need to have the ACE 2005 data set in the format required by this file. We cannot include the data in this release due to licence issues.
Train and test the model: using file ed_train.py
Nguyen, Thien Huu, and Ralph Grishman. "Event Detection and Domain Adaptation with Convolutional Neural Network"
Kim, Yoon. "Convolutional neural networks for sentence classification." arXiv preprint arXiv:1408.5882 (2014).