Giter Site home page Giter Site logo

barryzm / adaptive_multi-curricula_learning_for_dialog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hengyicai/adaptive_multi-curricula_learning_for_dialog

0.0 1.0 0.0 6.08 MB

Neural Dialogue Generation

License: MIT License

Python 83.79% Lua 0.48% JavaScript 8.28% CSS 0.71% HTML 6.59% Shell 0.14% Makefile 0.01%

adaptive_multi-curricula_learning_for_dialog's Introduction

Learning from Easy to Complex: Adaptive Multi-curricula Learning for Neural Dialogue Generation

This repo contains preliminary code of the AAAI2020 paper named "Learning from Easy to Complex: Adaptive Multi-curricula Learning for Neural Dialogue Generation".

This codebase is built upon the ParlAI project. Check parlai/agents/adaptive_learning for experimental models implementation. RL-based multi-curriculum learning lies in parlai/tasks/adaptive_learning. Running scripts can be found in projects/adaptive_learning.

Requirements

  • Python3
  • Pytorch 1.2 or newer

Dependencies of the core modules are listed in requirement.txt.

Dataset

The datasets used in the paper can be download from here. Put it in data/ and unzip it using tar -xzvf AdaptiveLearning.tar.gz

Installing

git clone [email protected]:hengyicai/Adaptive_Multi-curricula_Learning_for_Dialog.git ~/Adaptive_Multi-curricula_Learning_for_Dialog
cd ~/Adaptive_Multi-curricula_Learning_for_Dialog; python setup.py develop
echo "export PARLAI_HOME=~/Adaptive_Multi-curricula_Learning_for_Dialog" >> ~/.bashrc; source ~/.bashrc

Running

cd ~/Adaptive_Multi-curricula_Learning_for_Dialog
bash projects/adaptive_learning/shell/run.sh

The last line of projects/adaptive_learning/shell/run.sh specifies preliminary arguments for the training:

# train_model  MODEL_NAME  TASK_NAME  SUB_TASK  T  VALIDATION_EVERY_N_SECS  VALIDATION_EVERY_N_EPOCHS  NUM_EPOCHS
train_model seq2seq personachat_h3 combine 11000 -1 0.2 30

This run will apply the multi-curriculum learning framework on Seq2seq model using dataset PersonaChat. The duration of curriculum learning is 11000 steps.

Applying the single specificity curriculum dialogue learning on model CVAE using dataset DailyDialog, with curriculum learning duration 8000:

train_model cvae daily_dialog specificity 8000 -1 0.2 30

See projects/adaptive_learning/shell/run.sh for details.

adaptive_multi-curricula_learning_for_dialog's People

Contributors

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