We don't need this extra white space

This commit is contained in:
Crista Lopes
2020-01-06 17:46:01 -08:00
parent f33d353a69
commit 83377bf0df

View File

@@ -13,7 +13,6 @@ HIDDEN_SIZE = 100
TIME_STEPS = 3
def encode_one_hot(line):
line = " " + line
x = np.zeros((len(line), INPUT_VOCAB_SIZE))
for i, c in enumerate(line):
index = char_indices[c] if c in characters else char_indices[' ']