white127/QA-deep-learning
white127/QA-deep-learning has 528 GitHub stars and 274 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-18 20:45 UTC. Last push 2018-09-07.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
tensorflow and theano cnn code for insurance QA(question Answer matching)
머신러닝README.md
OriginalInsurance-QA deeplearning model
This is a repo for Q&A Mathing, includes some deep learning models, such as CNN、RNN.
- CNN. Basic CNN model from 《Applying Deep Learning To Answer Selection: A Study And An Open Task》
- RNN. RNN seems the best model on Insurance-QA dataset.
- SWEM. SWEM is the fastest, and has good effect on other datasets, such as WikiQA ..., but is seems not so good on Insurance-QA dataset. I think that, SWEM is more suitable for Q&Q matching, not Q&A matching.
It's hard to say which model is the best in other datasets, you have to choose the most suitable model for you.
More models are on the way, pay attention to the updates.
Requirements
- tensorflow 1.4.0
- python3.5
Performance
margin loss version
| Model/Score | Ins_qa_top1_precision | quora_best_prec |
|---|---|---|
| CNN | 62% | None |
| LSTM+CNN | 68% | None |
| SWEM | <55% | None |
logloss version
| Model/Score | Insqa_top1_precision | quora_best_prec |
|---|---|---|
| CNN | None | 79.60% |
| LSTM+CNN | None | None |
| SWEM | <40% | 82.69% |
Running
Change configuration to your own environment, just like data pathes
vim config.py
Data processing
python3 gen.py
Run CNN model
cd ./cnn/tensorflow && python3 insqa_train.py
It will take few hours(thousands of epoches) to train this model on a single GPU.
Downloads
- You can get Insurance-QA data from here https://github.com/shuzi/insuranceQA
- You can get Quora data from here http://qim.ec.quoracdn.net/quora_duplicate_questions.tsv
Links
- CNN and RNN textual classification repo https://github.com/white127/TextClassification_CNN_RNN
- 《Applying Deep Learning To Answer Selection: A Study And An Open Task》