The code is the implementations of DMCNN for event detection on LEVEN.
- torch==1.6
- numpy
- sklearn
- seqeval==1.2.2
- tqdm==4.44.0
To run this code, you need to:
-
put raw files of LEVEN dataset and pretrained word embeddings in
./raw
( We use the embeddings trained by Wikipedia_zh with Word+Character+Ngram context features.)
-
run
python main.py --config [path of config files] --gpu [gpu, optional]
we will train, evaluate and test models in every epoch. We output the performance of training and evaluating, and generate test result files for submit to CodaLab (link is coming soon).
All the hyper-parameters are in config files at ./config/
, you can modify them as you wish.