Pytorch implementation of Bilateral Multi-Perspective Matching [1] using in Quora Question Duplicate Pairs Competition. You can find the original tensorflow implementation from here.
models/model.py
- model graph.
models/MultiPerspective.py
- multi perspective matching layer.
train_bimpm_gpu.py
- train and test BiMPM model.
If you find any bugs, please create an issue, thanks.
[1] Zhiguo Wang, Wael Hamza and Radu Florian. "Bilateral Multi-Perspective Matching for Natural Language Sentences."