master
higepi 2 years ago
commit 0ed986773b

Binary file not shown.

@ -255,6 +255,15 @@
"source": [ "source": [
"print(wv.doesnt_match(['wood', 'oak', 'tree', 'iron', 'leaf']))" "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": { "metadata": {

@ -15,4 +15,6 @@ vec_man = wv['man']
vec_woman = wv['woman'] vec_woman = wv['woman']
result = wv.most_similar(positive=(vec_father - vec_man + vec_woman), topn=1) result = wv.most_similar(positive=(vec_father - vec_man + vec_woman), topn=1)
print(result) print(result)
print(wv.most_similar(positive=['The largest country is']))
Loading…
Cancel
Save