Coder Social home page Coder Social logo

qa-system's Introduction

Question Answering System

This project centres on adding QA System to Gotcha, an open source search engine.Whenever user asks a question system collects related content from wikipedia and searches the best answer from that content.

Requirements

  • python >=3.5
  • pytorch(includes torch and torchvision)
  • numpy
  • scikit-learn
  • msgpack
  • spacy language model
  • SpeechRecognition
  • gtts
  • wikipedia
  • regex
  • smtplib
  • playsound
  • unicodedata
  • nltk
  • tqdm

You can install requirements by executing : pip install -r requirements.txt

Preprocessing and Training

[comment]: Skip This if you have already trained model.

Download

You have to download SQuAD dataset dev-v1.1.json and train-v1.1.json and word to vector file glove.840B.300d.txt (https://www.kaggle.com/takuok/glove840b300dtxt)

Preprocessing

python prepro.py

Training

python train.py -e 50 -bs 32

Execution

Go to Project directory where manage.py resides execute following commnad to run project

python manage.py runserver

Open https://localhost:8000 and enjoy it.

qa-system's People

Contributors

maheshk76 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

qa-system's Issues

gTTS

gTTS saves audio file only twice
giving PersmissionError with .save method

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.