This commit is contained in:
higepi 2022-10-06 16:49:46 +02:00
commit 0ed986773b
3 changed files with 12 additions and 1 deletions

Binary file not shown.

View file

@ -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": {

View file

@ -16,3 +16,5 @@ vec_woman = wv['woman']
result = wv.most_similar(positive=(vec_father - vec_man + vec_woman), topn=1)
print(result)
print(wv.most_similar(positive=['The largest country is']))