Why its showing like this?

from tensorflow.keras.preprocessing.text import Tokestrong textnizer

from tensorflow.keras.preprocessing.text import Tokenizer

  • List item

from tensorflow.keras.layers import Embedding, GlobalAveragePooling1D, Dense

The text editor or IDE plug-in doesn’t know this code will be run from an env with tensorflow installed, so it’s flagging it as an undefined import. It needs pointing to and env with tensorflow installed.