I am trying to save a one hot encoder from keras to use it again on different texts but keeping the same encoding.
Here is my code :
df = pd.read_csv('dataset.csv ')
vocab_size = 200000
encoded_docs = [one_hot(d, vocab_size) for d in df.text]
How can I save this encoder and use it again later ?
I found this in my research but one_hot() seems to be a function and not an object (sorry if this is plain wrong I am fairly new to python).