Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -81,7 +81,7 @@ vocab_size = len(words) + 1 | ... | @@ -81,7 +81,7 @@ vocab_size = len(words) + 1 |
81 | embedding_matrix = np.zeros((vocab_size, 384)) | 81 | embedding_matrix = np.zeros((vocab_size, 384)) |
82 | 82 | ||
83 | for i in range(len(words)): | 83 | for i in range(len(words)): |
84 | - word - words[i] | 84 | + word = words[i] |
85 | if word in model: | 85 | if word in model: |
86 | embedding_matrix[i] = model[word] | 86 | embedding_matrix[i] = model[word] |
87 | 87 | ... | ... |
-
Please register or login to post a comment