Code Monkey home page Code Monkey logo

covid-qa's Introduction

COVID-QA

COVID Question Answering Model COVID-QA

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contact
  6. Acknowledgements

About The Project

COVID-19 is a global crisis and has impacted much more than just public health. It has led to an outburst of information, which needs to be organized, validated, and timely made available to the seekers. The research proposes a transformer-based Question Answering (QA) system for COVID-19 questions from the biomedical domain.

Built With

  • Python – 3.7.11
  • TensorFlow – 2.5.0
  • PyTorch – 1.9.0+cu102
  • Transformer – 4.9.2
  • Datasets – 1.11.0
  • SpaCy – 2.2.4
  • NLTK – 3.2.5
  • Textstat – 0.7.2

Getting Started

The work can be replicated well using Google Colab. First of all, we need to mount the google drive. The next important step is to select the patameters carefully (provided in a section in the script). The scripts should be executed in the following sequence:

  1. Question Classification
  • Question Classification Model Training: 1_BERT_Question_Classifier_Classifier.ipynb
  • Question Class Prediction: 2_COVID_Question_Type_Prediction.ipynb
  1. Exploratory Data Analysis
  • EDA: 3_Detailed_Exploratory_Data_Analysis.ipynb!
  1. Finetuing
  • GPU: 4_GPU_Second_Stage_Finetuning_roberta-base-squad2.ipynb
  • TPU: 5_TPU_Second_Stage_Finetuning_roberta-base-squad2.ipynb
  1. Model Evaluation
  • All Checkpoints: 6_Evaluate_checkpoints_after_model_training.ipynb
  • Single model: 7_Evaluate_single_model_roberta-squad2.ipynb
  1. Improved Model Inferences with score
  • Improed model inferences: 8_Improved_inference_with_scores.ipynb
  1. External Answer Verification Mechanism
  • Answer verification: 9_External_Answer_Verification_Model_Training_&_Predictions.ipynb

Prerequisites

Please install the above packages in colab before execution of any script. Most of the scripts will have command to install the required packages.

Usage

The finetuned model can be downloaded from here It can be used as a backend model to predict answer for any COVID-19 question (given the context).

Roadmap

We are yet to see the impact of the following on the COVID-19 Question Answering Network performance:

  • Impact of incremental datasets
  • Increase the model vocabulary by adding words from COVID-19 domain
  • Finetune (sentence + question) classification with BERT for answer verification module
  • Analysis of why some question types are hard to answer

Contact

Name - Amar Kumar

Project Link: https://github.com/akbism/COVID-QA

Acknowledgements

covid-qa's People

Contributors

akbism avatar

Stargazers

 avatar

Watchers

 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.