yubochen / NBTNGMA4ED

49 stars 16 forks source link

NBTNGMA4ED

This is the source code for the paper ''Collective Event Detection via a Hierarchical and Bias Tagging Networks with Gated Multi-level Attention Mechanisms'' accepted by EMNLP2018.

Requirements

Usage

Download datasets

The ACE 2005 dataset can be download from:https://catalog.ldc.upenn.edu/LDC2006T06

Default parameters:

Document

Data format

The training and test data is expected in standard tab-separated format. One word per line, separate column for token and label, empty line between sentences. The first column is assumed to be the token and the last column is the label. The second column is the current document ID.The third column is the type of the entity. The fourth column is the entity subtyp of the entity. For example:

by CNN_IP_20030405.1600.01-1 O O O
coalition CNN_IP_20030405.1600.01-1 B-1_GPE B-2_Nation O
air CNN_IP_20030405.1600.01-1 O O B-Conflict_Attack
strikes CNN_IP_20030405.1600.01-1 O O I-Conflict_Attack

Train and test the model

Citation

If you use the code, please cite this paper:

Yubo Chen, Hang Yang, Kang Liu, Jun Zhao, Yantao Jia. Collective Event Detection via a Hierarchical and Bias Tagging Networks with Gated Multi-level Attention Mechanisms. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP2018).