Giter Club home page Giter Club logo

dgmn-pytorch's Introduction

DGMN-pytorch

An unofficial repository of the paper 'A Document-grounded Matching Network for Response Selection in Retrieval-based Chatbots' [paper], which is implemented in PyTorch.

The codes have been tested on CMUDoG dataset with 1ร—V100 GPU, training for 2h.

Dependencies

  • Python 3.7
  • PyTorch 1.7.0
  • fitlog

Reproduced Results

Model CMUDoG PersonaChat
Original Persona Revised Persona
R@1 R@2 R@5 R@1 R@2 R@5 R@1 R@2 R@5
DGMN (Original) 65.6 78.3 91.2 67.6 80.2 92.9 58.8 62.5 87.7
DGMN (Reproduced) 71.6 83.4 94.7 - - - - - -
DGMN + 100d_w2v (Reproduced) 72.5 85.9 97.1 - - - - - -

Datasets

You can download the datasets and their corresponding embedding tables used in their paper from the following links.

Unzip the datasets to the folder of dataset and run the preprocessing codes provided in JasonForjoy/FIRE.

Then, you will obtain the preprocessing files in dataset/personachat_preprocessed and dataset/cmudog_preprocessed.

Also, we preprocessed the data in advanced, you can also simply run this command to download the preprocessed data:

sh download_dataset.sh

Train

Temporarily we only test on CMUDoG. Here is an example to train DGMN in CMUDoG dataset.

sh run_cmudog.sh

Acknowledgements

Thank Xueliang Zhao for providing the source codes written in TensorFlow for reference, it does help a lots.

TODO

  • Evaluate on PersonaChat dataset.
  • Check why the reproduced version outperforms the reported result reported in the original paper.

dgmn-pytorch's People

Contributors

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