Skip to content
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

keras/preprocessing/text module is missing in Keras 3 #19517

Closed
veeramanikandanvv opened this issue Apr 15, 2024 · 1 comment
Closed

keras/preprocessing/text module is missing in Keras 3 #19517

veeramanikandanvv opened this issue Apr 15, 2024 · 1 comment
Assignees

Comments

@veeramanikandanvv
Copy link

when i am trying to utilize the below module,
from keras.preprocessing.text import Tokenizer

we found out the text module is missing in Keras 3. Please help us in utilizing the text module. Please help.

tensorflow version: 2.16.1
keras: 3.21

@fchollet
Copy link
Member

fchollet commented Apr 15, 2024

It was deprecated many years ago (in 2020 or 2021 I think?) and removed from the API in Keras 3. It was kept in tf.keras for backwards compatibility. It has been removed from the docs around 2021 or 2022.

You can use keras.layers.TextVectorization instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants