Created
December 13, 2019 06:29
-
-
Save santhalakshminarayana/f1bbedda635eff60cefbd84152854708 to your computer and use it in GitHub Desktop.
Indian Name Generator - Input generation - Medium
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
X = np.zeros(shape = (len(sequences), window, len(int_to_char))) | |
Y = np.zeros(shape = (len(next_chars),len(int_to_char))) | |
for i in range(len(sequences)): | |
for j in range(window): | |
X[i, j, char_to_int[sequences[i][j]]] = 1 | |
Y[i, char_to_int[next_chars[i]]] = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment