GithubHelp home page GithubHelp logo

rolepred's Introduction

RolePred

Source code for the paper "Open-Vocabulary Argument Role Prediction for Event Extraction" from findings of EMNLP 2022.

Download Dataset

The dataset is now available at Google Drive.

  • There are 50 folder, each of which contains the materials for one event type, including one CSV files and multiple DOC files.
  • The CSV files is EVENT.csv, which lists the event instances of the same event type. The header is the argument roles and each row is the arguments of one event instance.
  • Each DOC file is the source document for one event instance and is named with the event trigger.

Dependencies

  • python=3.8.13
  • pytorch=1.12.1
  • transformers=4.10.2
  • sentence_transformers=2.2.2
  • spacy=3.4.1
  • nltk=3.7
  • numpy=1.22.4
  • networkx=2.8
  • dateutil=2.8.2

Run RolePred

  • Download the RoleEE dataset.
  • Run the role prediction framework: python main.py. For each event type, the model will output a CSV file, in which the header is the argument roles and each row is the arguments of one event instance. Such final output will be saved under the directory output/. Also, the generated candidate roles will be saved under the directory candidate_roles/.
  • Run the evaluation: python evaluate.py.

rolepred's People

Contributors

yzjiao avatar

Stargazers

 avatar Chong Shen avatar Jeff Carpenter avatar KeyonYan avatar sxtl333 avatar  avatar Zoey Li avatar Kingsley avatar LazyFyh avatar Siru Ouyang avatar Yiren Liu avatar Minhao Jiang avatar 爱可可-爱生活 avatar Tong Zhu (朱桐) avatar Dinesh M avatar  avatar Eric avatar  avatar Ming Zhong avatar

Watchers

Kostas Georgiou avatar  avatar

rolepred's Issues

which t5 model can be used in Chinese event extraction

Hi, I'm a freshman in event extraction. In main.py, there are a mistake in 124 lines, which may lack a judgment condition to represent the situation of 'other' in the paper. Moreover, if I want to extract Chinese event, which t5 model should I choose?

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.