Skip to content

Instantly share code, notes, and snippets.

@mm909
Last active March 29, 2020 19:34
Show Gist options
  • Save mm909/cd99d8ee476b5c26ea207a2d778f9e50 to your computer and use it in GitHub Desktop.
Save mm909/cd99d8ee476b5c26ea207a2d778f9e50 to your computer and use it in GitHub Desktop.
Sequence_Length = 80
Step_Size = 4
sentences = []
next_chars = []
for i in range(0, len(text) - Sequence_Length, Step_Size):
sentences.append(text[i: i + Sequence_Length])
next_chars.append(text[i + Sequence_Length])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment