Mô tả

This course focuses on using state-of-the-art Natural Language processing techniques to solve the problem of question generation in edtech.

If we pick up any middle school textbook, at the end of every chapter we see assessment questions like MCQs, True/False questions, Fill-in-the-blanks, Match the following, etc.  In this course, we will see how we can take any text content and generate these assessment questions using NLP techniques.

This course will be a very practical use case of NLP where we put basic algorithms like word vectors (word2vec, Glove, etc) to recent advancements like BERT, openAI GPT-2, and T5 transformers to real-world use.

We will use NLP libraries like Spacy, NLTK, AllenNLP, HuggingFace transformers, etc.

All the sections will be accompanied by easy to use Google Colab notebooks. You can run Google Colab notebooks for free on the cloud and also train models using free GPUs provided by Google.


Prerequisites:

This course will focus on the practical use cases of algorithms. A high-level introduction to the algorithms used will be introduced but the focus is not on the mathematics behind the algorithms.

A high-level understanding of deep learning concepts like forward pass, backpropagation, optimizers, loss functions is expected.

Strong Python programming skills with basic knowledge of Natural Language processing and Pytorch is assumed.


The course outline :

➤ Generate distractors (wrong choices) for MCQ options

Students will use several approaches like Wordnet, ConceptNet, and Sense2vec to generate distractors for MCQ options.

➤ Generate True or False questions using pre-trained models like sentence BERT, constituency parser, and OpenAI GPT-2

Students will learn to use constituency parser from AllenNLP to split any sentence. They will learn to use GPT-2 to generate sentences with alternate endings and filter them with Sentence BERT.

➤ Generate MCQs from any content by training a T5 transformer model using the HuggingFace library.

Students will understand the T5 transformer algorithm and use SQUAD dataset to train a question generation model using HuggingFace Transformers library and Pytorch Lightning.

➤ Generate Fill in the blanks questions

Students will learn to use Python Keyword extraction library to extract keywords, use flashtext library to do fast keyword matching, and visualize fill-in-the-blanks using HTML ElementTree in Colab

➤ Generate Match the following questions.

Students will learn to use Python Keyword extraction library to extract keywords, use flashtext library to do fast keyword matching, and use BERT to do word sense disambiguation (WSD).

➤ Deploy question generation models to production.

Deploy transformer models like T5 to production in a serverless fashion by converting them to ONNX format and performing quantization. Create lightweight docker containers using FastAPI for transformer model and deploy on Google Cloud Run.

Bạn sẽ học được gì

Generate assessments like MCQs, True/False questions etc from any content using state-of-the-art natural language processing techniques.

Apply recent advancements like BERT, OpenAI GPT-2, and T5 transformers to solve real-world problems in edtech.

Use NLP libraries like Spacy, NLTK, AllenNLP, HuggingFace transformers, etc.

Deploy transformer models like T5 to production in a Serverless fashion by ONNX quantization and by dockerizing them using FastAPI.

Use Google Colab environment to run all these algorithms.

Yêu cầu

  • Python, data structures, deep learning and basic familiarity with Pytorch.

Nội dung khoá học

8 sections

Introduction

3 lectures
Introduction to the Course
01:58
Course Outline
05:23
Code and Dataset Link
00:06

Generate distractors (wrong choices) for MCQ options

10 lectures
Theory - Generate distractors using wordnet
07:12
Code - Generate Distractors using Wordnet
15:41
Theory - Generate distractors using Conceptnet
06:14
Code - Generate distractors using Conceptnet
08:30
Theory - Generate distractors using Sense2vec
07:31
Code - Generate distractors using Sense2vec
05:38
Theory - Generate distractors using Sentence Transformers
04:43
Code - Generate distractors using Sentence Transformers
09:54
Assignment - Filter the distractors from Sense2vec
02:25
Assignment Solution - Filter the distractors from Sense2vec
06:35

Generate True or False Questions using Constituency Parsing and OpenAI GPT2

7 lectures
Introduction - Generate True or False Questions
07:52
Theory - Constituency Parsing and OpenAI GPT2
08:22
Code - Split a sentence using constituency parsing
15:12
Code - Another example to split a sentence using constituency parsing
04:34
Code - Generate alternate endings to a split sentence using OpenAI GPT2
06:27
Assignment - Sort the generated sentences in the order of dissimilarity
02:23
Assignment Solution - Sort the generated sentences using Sentence BERT
06:18

Train a question generation model using T5 transformer

7 lectures
Introduction to T5 - Text to text transfer transformer
08:30
Training methodology, dataset and decoding methods for text generation
12:18
Code - Download SQUAD dataset and preprocess
08:13
Code - Understanding T5 Tokenizer
13:20
Code - Prepare Pytorch Dataset class for T5
15:29
Code - Train T5 transformer model
11:10
Code - Use the trained T5 model to perform inference
06:31

Generate Fill in the blanks questions from any content

2 lectures
Generate fill in the blanks - Theory
06:08
Generate fill in the blanks - Code
16:34

Generate Match the following questions from any content

3 lectures
Generate Match the following - Theory
09:43
Extract keywords from any content - Code
04:05
BERT Word Sense Disambiguation (WSD) - Code
12:24

Production deployment of Question Generation Models

4 lectures
Speed up T5 model by ONNX conversion and use Gradio app for easy visualization
23:27
Install Docker locally in your Operating System
03:18
Dockerize T5 model with FastAPI and create a local API
15:14
Serverless deployment on Google Cloud Run
12:05

Final Project - text2MCQ

2 lectures
text2MCQ - Theory
06:03
text2MCQ - Code
13:03

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.