Giter Site home page Giter Site logo

smn's Introduction

Sequential Matching Network

Keras implementation of the Sequential Matching Network model.

data

https://www.dropbox.com/s/2fdn26rj6h9bpvl/ubuntu_data.zip?dl=0

Experiments

ubuntu dialogue corpus

Models R@1 R@2 R@10
SMN_last* 0.723 0.842 0.956
SMN_last 0.698 0.812 0.936

* means the results reported from the original papers

Reference

theano implementation(auther's code): https://github.com/MarkWuNLP/MultiTurnResponseSelection

paper: Wu, Yu, et al. 'Sequential Matching Network: A New Archtechture for Multi-turn Response Selection in Retrieval-based Chatbots.' ACL. 2017.

smn's People

Contributors

ryujitamaki avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

smn's Issues

dimension mismatch when calculate M1 matrix

Hi,
i try to run train.py but i got the following error message

File "train.py", line 28, in build_SMN
    word_match = dot([context_word_embedding, response_word_embedding], axes=(3, 2))
ValueError: Dimension 1 in both shapes must be equal, but are 10 and 50 for 'dot_1/MatMul' (op: 'BatchMatMul') with input shapes: [?,10,50,200], [?,50,200,1]

python 2.7
tensorflow 1.4.1
keras 2.1.3

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.