lxmeng / insuranceQA-cnn-lstm

tensorflow and theano cnn code for insurance QA(question Answer matching)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

See theano and tensorflow folder

This is a CNN/LSTM model for Q&A(Question and Answering), include theano and tensorflow code implementation

theano和tensorflow的网络结构都是一致的: word embedings + CNN + max pooling + cosine similarity

目前再insuranceQA的test1数据集上,top-1准确率可以达到62%左右,跟论文上是一致的。

这里只提供了CNN的代码,后面我测试了LSTM和LSTM+CNN的方法,LSTM+CNN的方法比单纯使用CNN或LSTM效果还要更好一些,在test1上的准确率可以再提示5%-6%

LSTM+CNN的方法在insuranceQA的test1上的准确率为68%

About

tensorflow and theano cnn code for insurance QA(question Answer matching)


Languages

Language:Python 100.0%