Skip to content

DFKI-NLP/eventx

Repository files navigation

Event extraction implementation

Jointly extracts multiple events: event detection and argument extraction for multiple events in one pass Loosely based on the paper "Jointly Multiple Events Extraction via Attention-based Graph Information Aggregation" (EMNLP 2018)

Getting started

Create and activate a conda environment

conda create -n eventx python=3.7
conda activate eventx

Install package requirements

pip install -r requirements.txt

Preprocess the data

Download the preprocssed SD4M+Daystream data from https://dfkide-my.sharepoint.com/:u:/g/personal/lehe02_dfki_de/Ecl1cWZlZVZNg844cZPUdOgB3MGjIapyeCGyDfpx_kylUw. And extract it into the data directory.

Train the models

In order to train the different models you can use the scripts in the repository. You may need to adjust the configuration file, the training & development data paths and the save paths.

E.g. to train a single model:

./scripts/train_eventx_snorkel.sh data/training_run_1

In order to recreate the models in our main experiments, you need to run random_repeats.sh.

For our other experiments, you need to run increasing_train_data.sh (Increasing Daystream training data) and mlv_run.sh (Majority Label Voter).

For convenience we provide the trained event extraction model for the setup with the merged training set (manual annotation + annotation with the Snorkel approach): https://dfkide-my.sharepoint.com/:u:/g/personal/lehe02_dfki_de/ESEeQWkkzRlKpPl95e8HSeEBJdl1W9N2e4d246onXQmJiQ

About

Event extraction implementation - Joint classification of events and arguments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published