We don't need this extra white space
This commit is contained in:
@@ -13,7 +13,6 @@ HIDDEN_SIZE = 100
|
|||||||
TIME_STEPS = 3
|
TIME_STEPS = 3
|
||||||
|
|
||||||
def encode_one_hot(line):
|
def encode_one_hot(line):
|
||||||
line = " " + line
|
|
||||||
x = np.zeros((len(line), INPUT_VOCAB_SIZE))
|
x = np.zeros((len(line), INPUT_VOCAB_SIZE))
|
||||||
for i, c in enumerate(line):
|
for i, c in enumerate(line):
|
||||||
index = char_indices[c] if c in characters else char_indices[' ']
|
index = char_indices[c] if c in characters else char_indices[' ']
|
||||||
|
|||||||
Reference in New Issue
Block a user