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.

Solution: Recognizing sarcasm in the text

Solution: Recognizing sarcasm in the text - TensorFlow Tutorial

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

Start my 1-month free trial

Solution: Recognizing sarcasm in the text

(upbeat music) - So here is how we are going to solve this challenge. First of all, you have to download the data, read the data using pandas, just as we did. And then we have segregated all of our training data in the variable call headlines. So all of the headlines are actually stored in this list called headlines. That's what we are concerned about. And now the next step is to import all the APIs. So, run that. After that we have to instantiate our tokenizer. So the out of vocabulary token, we have to add the token for that. So in coding, basically, so that is angle brackets and all rewritten. Now, in order to train the tokenizer, we are going to use the three-tone text method, and the training data is basically all the sentences. Basically headlines in this particular challenge, so that is there. Now in order to look at the word and coding dictionary or index. So you're going to use the word underscore index…

Contents