Question Answering | NLP | QA | Tranformer | Natural Language Processing | Python | Theory | Code

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • ===== Likes: 38 👍: Dislikes: 0 👎: 100.0% : Updated on 01-21-2023 11:57:17 EST =====
    Question & Answering! Looking to develop a model that can provide answers to any question you have? Well, in this video, I cover the high level overview on the architecture of QA Models (based on BERT). I also go into depth on what QA Modeling is, how it can be applied, and how it is used in the real world. Lastly, I cover the pretraining and fine-tuning phases of the QA Modeling process.
    Feel free to support me! Do know that just viewing my content is plenty of support! 😍
    ☕Consider supporting me! ko-fi.com/spencerpao ☕
    Watch Next?
    BERT → • Understanding and Appl...
    Transformers → • Transformers EXPLAINED...
    Resources
    Huggingface: huggingface.co/deepset/robert...
    🔗 My Links 🔗
    Github: github.com/SpencerPao/spencer...
    My Website: spencerpao.github.io/
    Github Repository for Notebooks! github.com/SpencerPao/Natural...
    📓 Requirements 🧐
    Understanding of Python
    Google Account
    ⌛ Timeline ⌛
    0:00 - Categories of Question & Answering
    3:20 - Additional Resources for Question & Answering
    4:05 - Architecture and Backend of RoBERTa QA
    5:12 - Implementation of Extractive QA (RoBERTa)
    6:00 - Transfer Learning (Out of the Box Predictions)
    8:45 - RoBERTa Architecture & Fine-Tuning QA Model via CLI
    10:00 - Fine-Tuning QA Model with Libraries
    13:15 - Pre-Training QA Model
    🏷️Tags🏷️:
    Python,Natural Language Processing, BERT, Question and Answering, QA, Question, Answering, Tutorial, Machine Learning, Huggingface, Google, Colab, Google Colab, Chatbot, Encoder, Decoder, Neural, Network, Neural network, theory, explained, Implementation, code, how to, deep, learning, deep learning, tasks, QA, Q&A, Extractive, Abstractive, Extractive QA, Abstractive QA,
    🔔Current Subs🔔:
    3,220
  • Наука та технологія

КОМЕНТАРІ • 34

  • @youssefsayed516
    @youssefsayed516 Рік тому +1

    Thanks for this video is very simple and great

  • @ammarazamir505
    @ammarazamir505 2 дні тому

    hi thanks for such an informative video , what about the scenerio if we extract numeric features from our datasets like sentiments etc then how can we input them for transformer specially T5, Albert without doing masking

  • @shipan5940
    @shipan5940 Рік тому

    Your videos are of high quality and cover quite a range of topics. But i wonder why the subscribers are so few relatively. My personal take is that you lay a very good foundation- easy to understand, then dive right into coding which is very practical. i feel there's something missing in-between.

  • @user-mo3ng6yn5f
    @user-mo3ng6yn5f 8 місяців тому

    so how these answers can be graded ? can u please tell me how we grade them out of 10

  • @mohamedyasser1183
    @mohamedyasser1183 2 місяці тому

    how can i reduce the dataset size to make the training time shorter

  • @nouralshareef4170
    @nouralshareef4170 7 місяців тому

    Please I want the link of this dataset on kaggle

  • @user-sv1wp8kd7v
    @user-sv1wp8kd7v 2 місяці тому

    So we give question as input from prompt then our model picks up a random context from our dataset and gives random answer...(if we didn't fine tune the model)

  • @mariussame9357
    @mariussame9357 Рік тому

    HI ! Thanks about the data format I read the link and it mainly explain that the data have to be in form of json or list or dictionnaries does it mean that if I have a pandas dataframe with column question, answer, answer_start and answer_end it won't work ?

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      If you are using the pandas library, there should be a read_json(). So, you should be fine!
      And from what you just described, if your features are structured then you should be okay.

  • @pragyankc706
    @pragyankc706 9 місяців тому

    What is the for a custom dataset, the question for a context has answers coming from multiple section of the paragraph? I believe for the dataset here you only have one answer per question from a context but how to handle multiple start index for a question?

    • @SpencerPaoHere
      @SpencerPaoHere  5 місяців тому

      That would be a different technique if I am understanding correctly -- Multiple Choice Question Answering is a hot topic!

  • @sandeepanand3834
    @sandeepanand3834 Рік тому

    Hi, Do you have any video on how to do perform MCQ( one question with 4 answers) or please provide any good link to perform MCQ tack...please?

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      I unfortunately do not; however, you can think of MCQ as just multiple entries - dictionary where key: (list record of strings)- then you provide the answers in the QA model tuning. I think that’s what you mean ? Otherwise there are a few articles that are present - happy to share

  • @sriramkrishna6853
    @sriramkrishna6853 Рік тому

    Thanks for making this video. Learnt a lot.
    Follow up question: Can the question and answering more of a chat format where you can build questions and follow ups?
    Let’s say I am embedding the text, create vector of the text. When a question is asked, it’s converted to vector and then using cosine similarity, fetch the response. Can it be done with any of the models this way? Could you please make a video or share feedback if possible? Thanks.

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      What do you mean build questions? Maybe like form a digital identity based on the questions you ask? You can definitely do that. In fact, the new buzz: Chat GPT 3 can do just that.

    • @sriramkrishna6853
      @sriramkrishna6853 Рік тому

      @@SpencerPaoHere Apologies for lack of clarity from my side.
      Yeah, when I meant follow up questions: I meant very similar to how a chatbot work taking all the context and answer like a conversation rather than asking a question , it returns a response, starting over again.
      Trying to understand how to make it conversational - open source way (cause openAI one’s are costs :(

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      @@sriramkrishna6853 I see! I'd recommend this site for more info: www.geeksforgeeks.org/chatbots-using-python-and-rasa/
      I think what you are asking is Conversational AI. (Natural Language Understanding) This is an entire sub-industry. But there are many resources out there!
      I definitley recommend diving deeper in chat gpt because that definitely answers your question.

  • @MohamedAhmed-kv5hl
    @MohamedAhmed-kv5hl Рік тому

    can I get Google's Notebook link for this ?

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому +1

      It's on my github: github.com/SpencerPao/Natural-Language-Processing/blob/main/Question%20Answering%20Modeling/Question_Answering_Modeling_colab.ipynb
      Try clicking on the "Open in Colab" button.

  • @amruthak8762
    @amruthak8762 Рік тому

    What's the use of the model in question answering system, if the dataset contains answer column already? Simple search will also work for SQUAD then there's no need to finetune a model for that. Correct me if I'm wrong about squad dataset

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      At a high level, the QA model is basically a search function, attempting to find the relationships between the given question and a given answer. Now, in practice, you are going to have many "questions". And, a QA model uses the weightage from its training sets to see which is a good answer for your given question. The beauty is that you do not need to already have a predefined answer. The QA model learns from previous Question-answer pairs and you can ask new questions (not previously defined) and perhaps get a good answer.

  • @user-ti7ey8hi2q
    @user-ti7ey8hi2q 8 місяців тому

    No module named 'keras.saving.hdf5_format' how to solve it? help help!

  • @Kungfoobacon
    @Kungfoobacon Рік тому

    I'm confused, have you not just fine-tuned a squad model with squad data?

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      Hmm. What do you mean? The dataset in use can be "replaced" with your dataset of choice.

    • @wings3738
      @wings3738 8 місяців тому

      ​@@SpencerPaoHeresir do you know how we can convert custom Question-Answer dataset to this format? since my dataset only has two columns

  • @loading757
    @loading757 Рік тому

    sir, i have getting error on tuning . please help. should i have to change runtype to gpu in colab?

    • @SpencerPaoHere
      @SpencerPaoHere  Рік тому

      It really depends on what the error is ! What’s the error that appears ?

    • @loading757
      @loading757 11 місяців тому

      @@SpencerPaoHere also disk storage is full.. What to do next?please help sir

    • @SpencerPaoHere
      @SpencerPaoHere  11 місяців тому

      @@loading757 have you consiedered upgrading to get more storage? An alternative would also be to access an external storage (another cloud or personal computer) and do the computations via chunking.

    • @loading757
      @loading757 11 місяців тому

      @@SpencerPaoHere if i consider reducing dataset size, how to do it?

    • @SpencerPaoHere
      @SpencerPaoHere  11 місяців тому

      @@loading757 you can sample from your dataset! (for example: randomly select N observations from your dataset)