diff --git a/Word_embedding.docx b/Word_embedding.docx deleted file mode 100644 index 5768ef5..0000000 Binary files a/Word_embedding.docx and /dev/null differ diff --git a/wordvec.ipynb b/wordvec.ipynb index cb60083..9acc2d7 100644 --- a/wordvec.ipynb +++ b/wordvec.ipynb @@ -255,6 +255,15 @@ "source": [ "print(wv.doesnt_match(['wood', 'oak', 'tree', 'iron', 'leaf']))" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "print(wv.most_similar(positive=['The largest country is']))" + ] } ], "metadata": { diff --git a/wordvec.py b/wordvec.py index 439273f..0165233 100644 --- a/wordvec.py +++ b/wordvec.py @@ -15,4 +15,6 @@ vec_man = wv['man'] vec_woman = wv['woman'] result = wv.most_similar(positive=(vec_father - vec_man + vec_woman), topn=1) -print(result) \ No newline at end of file +print(result) + +print(wv.most_similar(positive=['The largest country is'])) \ No newline at end of file