Skip to content

Instantly share code, notes, and snippets.

@alexpghayes
Last active August 3, 2017 04:04
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 alexpghayes/d6a8d7a0fc571ad3627cf40174081352 to your computer and use it in GitHub Desktop.
Save alexpghayes/d6a8d7a0fc571ad3627cf40174081352 to your computer and use it in GitHub Desktop.
sophisticated bi-directional LTSM to simulate something marc would say
import numpy as np
phrases = [ \
"I don't like Guerra", \
"Roberto is excellent. I like Roberto.", \
"Dobelman is a great teacher! How could you not like Dobelman!", \
"I don't like Devika. She's not a very good teacher.", \
"Noon is too early to go to class.", \
"I like Ms. Poon :)", \
"!"]
print(np.random.choice(phrases))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment