Coder Social home page Coder Social logo

liangzongchang / matchpyramid-for-semantic-matching Goto Github PK

View Code? Open in Web Editor NEW

This project forked from web199195/matchpyramid-for-semantic-matching

0.0 0.0 0.0 105.51 MB

A simple Keras implementation of Paper "Text Matching as Image Recognition"

Python 100.00%

matchpyramid-for-semantic-matching's Introduction

MatchPyramid-for-semantic-matching

A simple Keras implementation of MatchPyramid model for semantic matching.
Please refer paper:Text Matching as Image Recognition

Quick Glance

  1. Input Data Format
  • Train/Valid set:
label	|q1	|q2
1	|Q2119	|D18821
0	|Q2119	|D18822
  • Test set:
q1	|q2
Q2241	|D19682
Q2241	|D19684
  • Preprocessed Corpus:
qid	|words
D9980	|47 0 1 2 3 4 5 6 7 8 9 10
D5796	|21 40 41 42 43 44 14 45
  • Word Embedding:
word	|embedding (50-dimension)
28137	|-0.54645991 2.28509140 ... -0.34052843 -2.01874685
8417	|-9.01635551 -3.80108356 ... 1.86873138 2.14706421
  • Word Dictionary:
word	|wid
preparing	|0
to	|1
rebuild	|2
  1. Train the model
$ python match_pyramid.py
  1. Loss and Accuracy
Best Valid loss Best Valid accuracy
WikiQA 0.3973 0.8786
QouraQP 0.4525 0.7797

Requirements

  • Python 3.5
  • TensorFlow 1.8.0
  • Keras 2.1.6

matchpyramid-for-semantic-matching's People

Contributors

wyu-du 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.