79187985

Date: 2024-11-14 09:07:19
Score: 1.5
Natty:
Report link

I faced the same issue, Initially keras was a independent library, later on it was integrated with tensorflow. It is highly recommended to import the classes from tensorflow.keras not directly from keras. Since tensorflow 2.x is tightly integrated with keras but with keras alone, there is always a issue of different version , setup and all.

So import Tokenizer using this way - from tensorflow.keras.preprocessing.text import Tokenizer

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: user21072539