February 2020
Intermediate to advanced
328 pages
8h 19m
English
Now that we're familiar with the data, let's look at it in more detail:
word_index = dataset_imdb_word_index()
We can look at the head of the word index using the following code:
head(word_index)
Here, we can see that there's is a list of key-value pairs, where the key is the word and the value is the integer that it's mapped to:

Let's also look at the number of unique words in our word index:
length((word_index))
Here, we can see that there are 88,584 unique words in the word index:
Read now
Unlock full access