Git Product home page Git Product logo

aic18_rc's Introduction

Intruduction

This project is my code for AiChallenger2018 Opinion Questions Machine Reading Comprehension. This project mainly has 2 models which are implemented in Tensorflow.

  • Model-1 is based on QANet, but I rewrite it in some details.
  • Model-2 is based on capsuleNet which mainly from freefuiiismyname's project

Dependencies

  • Python 3.6
  • Tensorflow 1.9.0
  • tqdm
  • gensim

Data Sample

{ “query_id”:1, “query”:“维生c可以长期吃吗”, “url”: “xxx”, “passage”: “每天吃的维生素的量没有超过推荐量的话是没有太大问题的。”, “alternatives”:”可以|不可以|无法确定”, “answer”:“可以” }

Performance

I train each model on one GTX1080ti for 30 epochs, and report the best Performance on dev set. We finally run Model-1 on testa, the accuracy is 73.2.

Model Accuracy
Model-1 73.66
Model-2 73.85
ensembled 76.62

Project Structure

  • capsuleNet: Model-2's codes
  • data: Model-2's data
  • QANet: Model-1's codes and data
  • start.sh: example for usage
  • vote_ser_new_word.py: vote ensemble file

Details

you can see more details in /QANet/README.md and /capsuleNet/README.md

Reference

some codes are borrowed from :

NLPLearn/QANet

freefuiiismyname/capsule-mrc

aic18_rc's People

Contributors

antdlx avatar

Watchers

James Cloos avatar  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.