Giter VIP home page Giter VIP logo

eventsrealm's Introduction

EvEntS ReaLM

This repo contains the code for our paper EvEntS ReaLM: Event Reasoning of Entity States via Language Models, to-appear in EMNLP 2022. We provide code to reproduce the experiments described in the paper. We also provide the preprocessed data used in the experiments to facilitate reproducibility of our experiments.

Requirements

We use the PyTorch library in all our experiments. Our zero-prompt experiments are based on the Simple Transforemrs librarry. We adapt the Huggingface Transformers library for single, all, and k attribute prompt experiments.

For the single-Attribute prompt experiments with Roberta, we had to modify the original Transformer library. We therefore provide a full copy of the library with our changes. To reproduce these experiments, it is necessary to install this library. Move to the transformers-single-all-attribute-prompt-experiments directory and then execute pip install -e .

Data, Outputs, and Checkpoints

We provide the preprocessed data for most experiments in the data directory. This data was adapted from the original PiGLET and OpenPI datasets. If you use the data make sure to cite the original work.

In addition, data, outputs, and checkpoint for the k-attribute prompt model available at the following drive link: https://drive.google.com/drive/folders/1TVxD0biBa04OKZTugV6iBZtYrNFPYIaM?usp=sharing

Experiments

The /scripts directory contains the commands to run the experiments described in the paper, separated based on the dataset (PiGLET vs OpenPI).

Citation

@article{spiliopoulou2022events,
  title={EvEntS ReaLM: Event Reasoning of Entity States via Language Models},
  author={Spiliopoulou, Evangelia and Pagnoni, Artidoro and Bisk, Yonatan and Hovy, Eduard},
  journal={arXiv preprint arXiv:2211.05392},
  year={2022}
}

eventsrealm's People

Contributors

spilioeve avatar artidoro avatar

Stargazers

 avatar  avatar Tong Liu avatar Chirag Nagpal avatar Xiao Liu avatar  avatar Martin Salo avatar  avatar  avatar

Watchers

 avatar

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.