Skip to content

Commit 6f3af8a

Browse files
Merge pull request #734 from sachinprasadhs:patch-2
PiperOrigin-RevId: 403185517
2 parents 330428b + 661bfb0 commit 6f3af8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorials/text_classification_rnn.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
"id": "TFevcItw15P_"
238238
},
239239
"source": [
240-
"The raw text loaded by `tfds` needs to be processed before it can be used in a model. The simplest way to process text for training is using the `experimental.preprocessing.TextVectorization` layer. This layer has many capabilities, but this tutorial sticks to the default behavior.\n",
240+
"The raw text loaded by `tfds` needs to be processed before it can be used in a model. The simplest way to process text for training is using the `TextVectorization` layer. This layer has many capabilities, but this tutorial sticks to the default behavior.\n",
241241
"\n",
242242
"Create the layer, and pass the dataset's text to the layer's `.adapt` method:"
243243
]
@@ -251,7 +251,7 @@
251251
"outputs": [],
252252
"source": [
253253
"VOCAB_SIZE = 1000\n",
254-
"encoder = tf.keras.layers.experimental.preprocessing.TextVectorization(\n",
254+
"encoder = tf.keras.layers.TextVectorization(\n",
255255
" max_tokens=VOCAB_SIZE)\n",
256256
"encoder.adapt(train_dataset.map(lambda text, label: text))"
257257
]

0 commit comments

Comments
 (0)