Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Fix error handling in demo.ipynb #172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
"for sw in src_words:\n",
" assert sw in src_word2id, '\"%s\" not in source dictionary' % sw\n",
"for tw in tgt_words:\n",
" assert tw in tgt_word2id, '\"%s\" not in target dictionary' % sw\n",
" assert tw in tgt_word2id, '\"%s\" not in target dictionary' % tw\n",
"\n",
"plot_similar_word(src_words, src_word2id, src_embeddings, tgt_words, tgt_word2id, tgt_embeddings, pca)"
]
Expand Down