Code Monkey home page Code Monkey logo

learntoask's Introduction

Learning to Execute Actions or Ask Clarification Questions

Here are the dataset and codes for the Findings of NAACL paper titled "Learning to Execute Actions or Ask Clarification Questions".

Dependencies

python==3.7
torch==1.7
tensorboardX
prettytable

Introduction

An intelligent agent should not only understand and execute the instructor's requests but also be able to take initiatives, e.g., asking clarification questions, in case the instructions are ambiguous.

A simple example of builder task.

Code and Dataset

  • CollaborativeBuilding: Codes for collaborative building task;
  • LearnToAsk: Codes for learning to ask task and joint learning task;
  • builder_utterance_labels.json: Annotations of all builder utterances. Please ignore builder_utterance_labels.txt, which is our draft version.
  • The raw dataset Minecraft Dialogue Corpus is from the repository.

1. Dataset Preparation

Please download the original dataset. Then

unzip data.zip
cd data
wget https://nlp.stanford.edu/data/glove.42B.300d.zip
unzip glove.42B.300d.zip
cd ../CollaborativeBuilding/builder
python vocab.py --lower --use_speaker_tokens --oov_as_unk --all_splits --add_builder_utterances
cd ../..

2. Code

Please run codes in CollaborativeBuilding and LearnToAsk for Collaborative Building task and Learning to Ask task respectively.

Citation

Please cite our work if it is helpful.

@inproceedings{Shi2022learning,
title = {Learning to Execute Actions or Ask Clarification Questions},
author = {Shi, Zhengxiang and Feng, Yue and Lipani, Aldo},
year = {2022},
address = {Seattle, Washington, USA},
booktitle = {Findings of the North American Chapter of the Association for Computational Linguistics},
publisher = {Association for Computational Linguistics},
keywords = {Conversational System, Clarification Questions},
url = {https://arxiv.org/abs/2204.08373}
}

learntoask's People

Contributors

zhengxiangshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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