Skip to content

akbism/COVID-QA

Repository files navigation

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

About

COVID Question Answering Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published