From the course: Natural Language Processing in Python

Unlock this course with a free trial

Join today to access over 26,400 courses taught by industry experts.

Solution: NER

Solution: NER

“

This assignment starts by reading in the children's books data set. So let's go back to our home directory. To get to that data set we have to go up a folder to the course materials, down to the data folder, and we're going to be looking at children's books. So let's do a read csv and then we're going to go up a folder, into the data folder, and then specify the children's books data. Okay, you can see this is 100 rows, so let's save this whole thing as books and just view a few for now. And once again, we have for each book, its title, author, and a short description. And now our next step is to apply NER to the description column, which is this one right here. So to do this, I'm going to go back to our reference notebook and copy this NER analyzer. So let's just go through everything in here once more. We're specifying our task is named entity recognition. This is the model we want to use. This is using a CPU, but I want to use my GPU. Then I'm going to comment out this line of code…

Contents