GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sriyavasudevan/Question-Answering-System: We built a Question Answer System using BERT. Based on our benchmark dataset that we designed for a specific task, we evaluated it at 40% accuracy over a particular dataset.

BranchesTags
Open more actions menu

Latest commit

 

History

71 Commits
71 Commits

Folders and files

NameName
Last commit message
Last commit date
qa
qa
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Question Answering System

We built a Question Answer System using BERT fine tuned on SQuAD 2.0. Based on our benchmark dataset that we designed for a specific task, we evaluated it at a 40% over one question bank and 28% over the other.

What can it do?

  1. This QA System is topic agnostic - there is no inbuilt context. Depending on the context you feed it, you can ask questions about that (there is a little bit of structure for our task listed below).
  2. It selects the top 3 documents in a corpus and outputs the answer with the highest confidence score.
  3. It checks the spelling (Damerau-Levenshtein distance) and grammar (t5-base-grammar-correction) of the question before feeding it to BERT.
  4. It does remember context history as long as you are talking about one object, if you switch between subjects and then refer to the new subject's history, it'll get confused :( - you can check some of our older issues for more information.
  5. If you ask about something that it does not have in context, it will respond with "Unable to answer. Please try again." (most of the time).

Corpus used

We used a specific corpus for our task, however it can be used according to your needs as well. The current structure is:

  • prompted to choose from 3 different corpi
  • all further questions based on selected corpus
  • once you decide to stop asking questions, the system prompts whether you want to learn more
  • if you decide yes, then three more choices are offerred
  • if no, conversation ends

Instructions

  1. Install the following -
  • pip install transformers (for BERT for QA)
  • pip install happytransformer (for grammar checking which uses t5 model)
  • pip install symspellpy (for spell checking)
  1. Feed your corpus as a dataframe to current_phase_df
  2. Use begin_conversation method in question_answer_bot.py to get started!

About

We built a Question Answer System using BERT. Based on our benchmark dataset that we designed for a specific task, we evaluated it at 40% accuracy over a particular dataset.

Topics

bertnatural-language-processingnlpqa-systemqa-systemsquestion-answeringtransformers

Resources

Readme
Apache-2.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.