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

Unlock the full course today

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

Building a text classifier

Building a text classifier - TensorFlow Tutorial

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

Start my 1-month free trial

Building a text classifier

- [Instructor] Now that we have learned all about pre-processing the textual data, how to add embedding layer, create a neural network, and how to visualize those embeddings, now it's time to actually get down to business and classify some textual data. Here in this particular video, we are going to use the same news headlines data that we talked about in the first chapter. First of all, again we're going to import all the required packages, the function, the classes. So, numpy, tensorflow, tokenizor, padding, pad sequences. Once that is done, we are going to again download the news headlines data from the cloud storage link that I provided. Simply the standards, and you'll have your data downloaded. And I am reading this downloaded data using pandas package. This would give us a data frame, which is stored in the data variable, as you can see over here. We'll simply print the first five rules. Let's quickly run this.…

Contents