Skip to content

Instantly share code, notes, and snippets.

@agastidukare
Last active August 9, 2020 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agastidukare/89f68fc4b1ff315b2fc53b89a204ce77 to your computer and use it in GitHub Desktop.
Save agastidukare/89f68fc4b1ff315b2fc53b89a204ce77 to your computer and use it in GitHub Desktop.
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