-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Update text_classification.ipynb #1964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
updated 'preprocessing.TextVectorization' with 'tf.keras.layers.TextVectorization' in Prepare the dataset for training section.
PreviewPreview and run these notebook edits with Google Colab: Rendered notebook diffs available on ReviewNB.com.Format and styleUse the TensorFlow docs notebook tools to format for consistent source diffs and lint for style:$ python3 -m pip install -U --user git+https://github.com/tensorflow/docsIf commits are added to the pull request, synchronize your local branch: git pull origin patch-5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're here could you also remove the references to tf.keras.preprocessing
?
- the
from tensorflow.keras import preprocessing
preprocessing.text_dataset_from_directory
should betf.keras.utils.text_dataset_from_directory
Thanks.
Removed 'from tensorflow.keras import preprocessing' Changed 'tf.keras.preprocessing.text_dataset_from_directory' with 'tf.keras.utils.text_dataset_from_directory' at 3 places (raw_train_ds, raw_val_ds and raw_test_ds) in Download and explore the dataset section. Changed 'preprocessing.TextVectorization' with 'tf.keras.layers.TextVectorization' at Load the dataset section
Updated the same as you referred. Could you please review the document again? |
Let me look into the CI / Notebook lint test for you @RenuPatelGoogle Thanks for the PR! |
updated 'preprocessing.TextVectorization' with 'tf.keras.layers.TextVectorization' in Prepare the dataset for training section.