AvinashGupta / BiMPM_keras

Keras implementation of Bilateral Multi-Perspective Matching.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BiMPM_keras

Keras implementation of Bilateral Multi-Perspective Matching [1] using in Quora Question Duplicate Pairs Competition. You can find the original tensorflow implementation from here.

Description

models/bimpm.py - model graph.

models/multi_perspective.py - multi perspective matching layer.

models/layers.py - other layers, word embedding layers, context layer, etc.

train_model.py - train and test BiMPM model.

config.py - hyper-parameters.

If you find any bugs, please create an issue, thanks.

Requirements

  • python 2.7
  • tensorflow 1.1.0
  • keras 2.0.3
  • numpy 1.12.1
  • pandas 0.19.2
  • nltk 3.2.2
  • gensim 1.0.1

References

[1] Zhiguo Wang, Wael Hamza and Radu Florian. "Bilateral Multi-Perspective Matching for Natural Language Sentences."

About

Keras implementation of Bilateral Multi-Perspective Matching.


Languages

Language:Python 100.0%