GithubHelp home page GithubHelp logo

microsoft / score Goto Github PK

View Code? Open in Web Editor NEW
30.0 12.0 8.0 30.43 MB

ICLR 2021: Pre-Training for Context Representation in Conversational Semantic Parsing

License: MIT License

Jupyter Notebook 13.88% Python 85.05% Shell 1.07%

score's Introduction

SCoRe: Pre-Training for Context Representation in Conversational Semantic Parsing

This repository contains code for the ICLR 2021 paper "SCoRE: Pre-Training for Context Representation in Conversational Semantic Parsing".

If you use SCoRE in your work, please cite it as follows:

@inproceedings{yu2021SCoRE,
  title={{SCoRE}: Pre-Training for Context Representation in Conversational Semantic Parsing},
  author={Tao Yu and Rui Zhang and Oleksandr Polozov and Christopher Meek and Ahmed Hassan Awadallah},
  booktitle={International Conference on Learning Representations},
  year={2021},
  url={https://openreview.net/forum?id=oyZxhRI2RiE}
}

Environment Setup

At the time of development, we used the same environment setup as RAT-SQL. It assumes Python 3.7+ and CUDA 10.1. Thus, the simplest environment setup for all the experiments except SQA (find SQA's environment setup in sqa/README.md) is:

docker pull pytorch/pytorch:1.5-cuda10.1-cudnn7-devel
docker tag pytorch/pytorch:1.5-cuda10.1-cudnn7-devel score
docker run -it -v /path/to/this/repo:/workspace score
# or using GPUs
docker run --gpus 2 -it -v /path/to/this/repo:/workspace score

Run Experiments

Code and running commands for running all the experiments can be found in the following dirs. First, synthesize (or download) pre-training data and train a SCoRE checkpoint:

  • data_synthesis: Synthesize Contextual Pre-Training Data
  • SCoRE: Pre-Training SCoRE Using Synthesized Data

Then, to use the trained checkpoint as a base language model for conversational semantic parsing tasks:

  • mwoz: SCoRE for Dialog State Tracking (MWoZ)
  • sqa: SCoRE for Sequential Question Answering (SQA)
  • sparc_cosql: SCoRE for Context-Dependent Semantic Parsing (SParC and CoSQL)

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

score's People

Contributors

taoyds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

score's Issues

Could not find some files for synthesizing data

Thank for your great work! I'm trying synthesize data by myself, however i can't find some files in the provided data for synthesize: context_templates.json, nlsql_templates_context.txt, spider/db_data.json

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.