{"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["python","\u81ea\u7136\u8a00\u8a9e\u51e6\u7406"],"url":"https://upura.hatenablog.com/entry/2023/11/05/192055","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fupura.hatenablog.com%2Fentry%2F2023%2F11%2F05%2F192055\" title=\"\u8a00\u8a9e\u51e6\u7406100\u672c\u30ce\u30c3\u30af 2020\u300c62. \u985e\u4f3c\u5ea6\u306e\u9ad8\u3044\u5358\u8a9e10\u4ef6\u300d - u++\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"blog_title":"u++\u306e\u5099\u5fd8\u9332","published":"2023-11-05 19:20:55","description":"\u554f\u984c\u6587 nlp100.github.io \u554f\u984c\u306e\u6982\u8981 most_similar *1 \u3092\u4f7f\u3044\u307e\u3059\u3002topn \u3067\u4e0a\u4f4d\u4f55\u4ef6\u3092\u8fd4\u3059\u304b\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 topn=10 \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5206\u304b\u308a\u3084\u3059\u3055\u306e\u305f\u3081\u306b\u6562\u3048\u3066\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002 from gensim.models import KeyedVectors model = KeyedVectors.load_word2vec_format('ch07/GoogleNews-vectors-negative300.bin', binary=True) result = model.most_similar(positive=['Uni\u2026","height":"190","author_name":"upura","title":"\u8a00\u8a9e\u51e6\u7406100\u672c\u30ce\u30c3\u30af 2020\u300c62. \u985e\u4f3c\u5ea6\u306e\u9ad8\u3044\u5358\u8a9e10\u4ef6\u300d","type":"rich","author_url":"https://blog.hatena.ne.jp/upura/","blog_url":"https://upura.hatenablog.com/","width":"100%","version":"1.0"}