Last active
August 9, 2020 04:38
-
-
Save agastidukare/89f68fc4b1ff315b2fc53b89a204ce77 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
TEXT = "The flight got delayed" | |
N_WORDS = 40 | |
N_SENTENCES = 2 | |
print("\n".join(learn.predict(TEXT, N_WORDS, temperature=0.75) for _ in range(N_SENTENCES))) | |
#Save fine-tuned model for future use | |
learn.save_encoder('fine_tuned_enc') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment