GithubHelp home page GithubHelp logo

doc_event_role's Introduction

Document-level Event Role Filler Extraction (ACL 2020)

paper link

Please also check our sibling project on event entity extraction for template filling

Dependencies

  • python 3.5.6
  • spacy==2.0.12
  • torch 0.4.1 (for ./model)
  • pytorch-pretrained-bert==0.6.2 (for ./model)

Dataset

./data/
├── process_train_dev.py  # proc script
├── process_test.py       # proc script
│ 
├── processed/            # processed data files
│   ├── train.json 
│   ├── dev.json       
│   └── test.json           
│ 
└── raw_muc/              # Raw data files from MUC-{3,4}

Run preprocessing for train and dev, use flag -full to include all the templates.

python process_train_dev.py

Run preprocessing for test,

python process_test.py

Evaluation

To run the eval script:

python eval.py --goldfile <gold file path> --predfile <pred file path>

We use ./data/processed/test.json for <gold file path> in the experiments. We also include an example output file (./model/pred.json) in the model foler:

python eval.py --goldfile ./data/processed/test.json --predfile ./model/pred.json

If you use our eval script, please make sure the <pred file> is of the same format as pred.json.

Model Code

We also include a sample output file in the folder.

Citation

If you use materials in this repo helpful, please cite:

@inproceedings{du2020doucment,
    title={Document-Level Event Role Filler Extraction Using Multi-Granularity Contextualized Encoding of the Text},
    author={Du, Xinya and Cardie, Claire},
    booktitle={Association for Computational Linguistics (ACL)},
    year={2020}
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.