-
-
Save amankharwal/5b0add1333fa487c7e5759e32cf746f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to save the trained model | |
model.save("chat_model") | |
import pickle | |
# to save the fitted tokenizer | |
with open('tokenizer.pickle', 'wb') as handle: | |
pickle.dump(tokenizer, handle, protocol=pickle.HIGHEST_PROTOCOL) | |
# to save the fitted label encoder | |
with open('label_encoder.pickle', 'wb') as ecn_file: | |
pickle.dump(lbl_encoder, ecn_file, protocol=pickle.HIGHEST_PROTOCOL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment