Last active
March 29, 2020 19:34
-
-
Save mm909/cd99d8ee476b5c26ea207a2d778f9e50 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
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