Giter Site home page Giter Site logo

wikiqa's Introduction

Repo for Q-A and Answer triggering systems

This repository contains experiments on the WikiQA dataset mainly for investigating answer triggering - finding the relevant answer out of a set of given answers to a question.

The base CNN implementation is from Deep learning for answer sentence selection. The logic of using CNN for Sentence selection using word vectors is inspired from Yoon Kim's - CNN for Sentence Classification The dataset is read from data/ folder and currently hardcoded in the last-line of the text. Uses keras for CNN.

Model

The current implementation maps the question and answer vectors into a higher dimension using CNN and compares them using dot product or a fully connected layer.

CNN statistics

Parameter Value
Filter Size 2,3,4
Convolution Levels
Word vector dimensions
Dense Layer Dimensions
Pooling Max Pooling or Average Pooling

CNN Architecture

Below diagram shows the cnn-architecture taken from Deep learning for answer sentence selection but involved max pooling also alongwith filters of dimension 3 and 4, in addition to dimension 2.

The output of CNN is connected to a Logistic Layer which classifies the answer to the question as relevant(1) or non-relevant(0)

Tweaks

Because the dataset is highly skewed( One true answer to 5-6 false answers to a question ), RandomOversampling is done to balance the set.

wikiqa's People

Contributors

codez266 avatar

Watchers

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