Giter VIP home page Giter VIP logo

bert-based-pretrained-model-using-squad-2.0-dataset's Introduction

BERT based pretrained model using SQuAD 2.0 Dataset for Question-Answering

Here I built a BERT-based model which returns an answer, given a user question and a passage, which includes the answer of the question. For this question answering task, I used the SQuAD 2.0 dataset.

You should read the notebooks with this order:

  1. Fine_Tuning_Bert
  2. Evaluate_Fine_Tuned_Bert
  3. Evaluate_Existed_Fine_Tuned_Bert

I started with the BERT-base pretrained model bert-base-uncased and fine-tune it to have a question answering task, implemented by myself.

Then, I evaluate the model with different passages, with increasing difficulty level.

Finally, as a benchmark I used the implemented pretrained and fine-tuned model from Hugging Face, named as bert-large-uncased-whole-word-masking-finetuned-squad. You will see, that my model performance is pretty decent.

Note: My solution is implemented in PyTorch and the report is well documented. For running the notebooks, I used the Google Colab with its GPU.

You can check the Google Colab Notebooks here:

  • Fine Tuned Bert: Open In Colab
  • Evaluate Fine Tuned Bert: Open In Colab
  • Evaluate Existed Fine Tuning Bert: Open In Colab

bert-based-pretrained-model-using-squad-2.0-dataset's People

Contributors

alexaapo 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.