diff --git a/site/en/tutorials/keras/text_classification.ipynb b/site/en/tutorials/keras/text_classification.ipynb index 4182c3f295f..f14964207ff 100644 --- a/site/en/tutorials/keras/text_classification.ipynb +++ b/site/en/tutorials/keras/text_classification.ipynb @@ -631,7 +631,7 @@ "outputs": [], "source": [ "model = tf.keras.Sequential([\n", - " layers.Embedding(max_features + 1, embedding_dim),\n", + " layers.Embedding(max_features, embedding_dim),\n", " layers.Dropout(0.2),\n", " layers.GlobalAveragePooling1D(),\n", " layers.Dropout(0.2),\n",