Skip to content

huiling-y/eventgraph_at_case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventGraph at CASE 2021 Task 1 Subtask 4

This repository provides the source code of our paper "EventGraph at CASE 2021 Task 1: A General Graph-based Approach to Protest Event Extraction".

How to run

🐾   Preprocessing

Convert BIO to graph(mrp) format

cd preprocess

python3 preprocess.py --data_dir <DATA_DIR> --output_dir <OUT_DIR>

By default, all datasets are located in data folder as following:

data
├── labeled_edge_mrp
│   ├── case_all
│   └── case_final
├── node_centric_mrp
│   ├── case_all
│   ├── case_all_split
│   ├── case_final
│   └── case_final_split
├── raw
│   ├── case_all
│   ├── case_all_split
│   ├── case_final
│   └── case_final_split
└── sharedtaskOfficial
    ├── test
    └── train

Example graphs for sentence: "Chale was allegedly chased by a group of about 30 people and was hacked to death with pangas, axes and spears."

🐾   To train

To train the model with difference graph encodings, specify the configurations located in perin/config

Train with development data.

cd perin

sbatch run.sh <node_case.yaml>

Train with all official training data.

cd perin

sbatch run.sh <node_case_final.yaml>

Citation

TBA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published