Skip to content

Commit

Permalink
Edit typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Sep 13, 2017
1 parent 0f4a3c1 commit 83e7ce1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lstm_word2vec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,17 @@
"word2vec_model = gensim.models.Word2Vec(sentences=sent_lst, min_count=6, size=EMBEDDING_DIM, sg=1, workers=os.cpu_count())"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1337,7 +1348,7 @@
"print('Total %s word vectors.' % len(embeddings_index))\n",
"\n",
"# Initial embedding\n",
"embedding_matrix = np.zeros((VOCAB_SIZE + 1, EMBEDDING_DIM))\n",
"embedding_matrix = np.zeros((VOCAB_SIZE, EMBEDDING_DIM))\n",
"\n",
"for word, i in tok.word_index.items():\n",
" embedding_vector = embeddings_index.get(word)\n",
Expand Down

0 comments on commit 83e7ce1

Please sign in to comment.