Giter Site home page Giter Site logo

sangheek16 / dialogue-response-dynamics Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 23 KB

Codes and material used for evaluating PLMs on dialogue response dynamics

License: MIT License

Python 100.00%
dialogue ellipsis pre-trained-language-models at-issueness nlp-model-evaluation

dialogue-response-dynamics's Introduction

About

This repo contains datasets and code for COLING 2022 paper “No, they did not”: Dialogue response dynamics in pre-trained language models, by Sanghee J. Kim, Lang Yu and Allyson Ettinger.

Repo Structures

  • src/ contains source code to generate dataset and duplicate experiment results in the paper
  • datasets/ contains raw data and datasets used in the paper

Dataset

  • names.csv, np.csv and vp.csv are raw datasets that can be used as inputs for input_generator.py to generate an input .csv file -- this will have the same format as used_items.csv
  • used_items.csv contains the items that were used in this paper

Code

  • evaluate.py is built on Huggingface's transformer and requires minicons
  • input_generator.py randomly samples from names.csv, np.csv and vp.csv and generates input items that can be used for model evaluation
  • for replication of the results in this paper, use used_items.csv under src/ instead of generating new items
  • evaluate.py produces model output probabilities / conditional log-probabilities / pseudo-log-likelihoods of causal language model and masked language models. It produces output for header selection (section 5.1), rejection (section 5.2), conjunction (section 5.3) and ellipsis (section 6) tasks.
  • probe.py contains code for generating probing results (section 5.4)

Usage

To run evaluate.py, update config at the beginning of the code (e.g., input path, output path, etc.). Also update the name of model (model_name variable) and type of task (task variable) you wish to explore, at the end of the code. Then run python3 evaluate.py.

dialogue-response-dynamics's People

Contributors

sangheek16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.