From the course: Deep Learning Foundations: Natural Language Processing with TensorFlow

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Text classification

Challenge: Text classification - TensorFlow Tutorial

From the course: Deep Learning Foundations: Natural Language Processing with TensorFlow

Start my 1-month free trial

Challenge: Text classification

(upbeat music) - [Instructor] So up until now, we have seen how to classify text using a deep learning model with embedding layer, dense layer, and the flatten layer. Well, here is a challenge for you where you are going to use IMDB movie reviews dataset again, and then classify the reviews as positive or negative. Positive is basically one and negative is zero. So here in this challenge notebook you have to fill up all of these blanks. First of all, download the data. How are you going to download the data? From TensorFlow dataset package. Then segregate the training and testing sets and the pre-process, prepare the data using Tokenizer, and then define your Neural Network with an embedding layer in it, and all the other layers that you would want to put in based on the configuration that you want to set for your model. You can play around with the hyper parameters, and then train your model, provide the training…

Contents