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.

Solution: Yelp review classifier

Solution: Yelp review classifier - TensorFlow Tutorial

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

Start my 1-month free trial

Solution: Yelp review classifier

(upbeat music) - [Instructor] Let's look at the solution for the Yelp review classifier. One thing that you should keep in mind is that this data set, the Yelp polarity reviews from the TensorFlow dataset, this is a very large dataset and this might take a while for your model to train. Let's look at the solution for first of all we have downloaded the data to identify for this dataset as Yelp polarity reviews. As supervised=true, written for true, and then we have segregated the training and training sentences, training labels, test sentences, test labels, Then here is the configuration of the parameters, basically vocabulary size we have set to 10,000 and embedding dimension is 32. Max length, I've set it to 120, and I'm using padding type as post, and truncation type as well as that is also post. Now, moving on to the tokenize OP, everything is the same as we have been seeing. We have created the tokenizer, trained…

Contents