{"id":1084,"date":"2018-08-29T17:36:40","date_gmt":"2018-08-29T08:36:40","guid":{"rendered":"https:\/\/python-introduction.com\/?p=1084"},"modified":"2018-08-31T14:26:46","modified_gmt":"2018-08-31T05:26:46","slug":"word2vec%e3%81%a8%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=1084","title":{"rendered":"Word2vec\u3068\u306f\uff1f"},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fWord2vec\u3068\u306f\u4f55\u304b<br \/>\n\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>Word2vec\u306f\u5f62\u614b\u7d20\u89e3\u6790\u306e\u7d9a\u304d\u306e\u8a18\u4e8b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304b\u3089\u3001\u3082\u3057\u5f62\u614b\u7d20\u89e3\u6790\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u5148\u306b\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=926\" target=\"blank\">\u5f62\u614b\u7d20\u89e3\u6790\u3068\u306f\uff1fPython\u304a\u3059\u3059\u3081\u306e\u5f62\u614b\u7d20\u89e3\u6790\u30c4\u30fc\u30eb\u306f\uff1f<\/a><\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Word2vec\"><span class=\"toc_number toc_depth_1\">1<\/span> Word2vec\u3068\u306f<\/a><\/li><li><a href=\"#Word2vec-2\"><span class=\"toc_number toc_depth_1\">2<\/span> Word2vec\u5177\u4f53\u4f8b<\/a><\/li><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u306f\uff1f<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Word2vec\">Word2vec\u3068\u306f<\/span><\/h2>\n<p>Word2vec\u306f\u5358\u8a9e\u306e\u30d9\u30af\u30c8\u30eb\u8868\u73fe\u3068\u547c\u3070\u308c\u308b<br \/>\n\u30c7\u30fc\u30bf\u306e\u8868\u73fe\u65b9\u5f0f\u3067\u3059\u3002<\/p>\n<div class=\"boxstyle01\">\n<p class=\"check08\">\u5358\u8a9e\u306e\u30d9\u30af\u30c8\u30eb\u8868\u73fe\u306f\u82f1\u8a9e\u3067<\/p>\n<p>\u30fbVector Representation of Words<br \/>\n\u30fbWord Embedding<\/p><\/div>\n<p>\u3068\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u5358\u8a9e\u3084\u6587\u7ae0\u3092\u6570\u5024\u3067\u8868\u73fe\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\n\u3057\u305f\u304c\u3063\u3066\u3001Word2vec\u3068\u306f\u5358\u8a9e\u3084\u6587\u7ae0\u3092\u6570\u5024\u3067\u8868\u73fe\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u3060\u3051\u3060\u3068\u62bd\u8c61\u7684\u3067<br \/>\n\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u306e\u3067\u5177\u4f53\u7684\u306b\u4f8b\u3092\u6319\u3052\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2><span id=\"Word2vec-2\">Word2vec\u5177\u4f53\u4f8b<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eibunnpoi828.jpg\" alt=\"word2vec\u3068\u306f\" width=\"620\" height=\"414\" class=\"alignnone size-full wp-image-1086\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eibunnpoi828.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eibunnpoi828-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u305f\u3068\u3048\u3070<br \/>\nI had salmon salad for lunch today.<br \/>\n\u3068\u3044\u3046\u82f1\u6587\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u65e5\u672c\u8a9e\u306b\u8a33\u3059\u3068<br \/>\n\u300c\u79c1\u306f\u4eca\u65e5\u306e\u304a\u663c\u306b\u30b5\u30b1\u306e\u30b5\u30e9\u30c0\u3092\u98df\u3079\u305f\u3002\u300d\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u82f1\u6587\u3092\u6587\u5b57\u30c7\u30fc\u30bf\u3068\u3057\u3066Python\u3067\u6271\u3046\u306e\u306f<br \/>\n\u304b\u306a\u308a\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3060\u304b\u3089\u3001\u4e0a\u8a18\u82f1\u65871\u30641\u3064\u306e\u5358\u8a9e\u306b\u5bfe\u3057\u3066\u9806\u756a\u306b\u756a\u53f7\u3092\u3064\u3051\u3044\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u756a\u53f7\u306e\u3053\u3068\u3092ID\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<div class=\"boxstyle01\">\n<p class=\"check08\">\u305f\u3068\u3048\u3070<\/p>\n<p>I (100)<br \/>\nhad(80)<br \/>\nsalmon(65)<br \/>\nsalad(21)<br \/>\nfor(45)<br \/>\nlunch(8)<br \/>\ntoday(13)<\/p><\/div>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\u3067\u3001\u4e0a\u8a18\u4ed8\u3051\u305f\u756a\u53f7\u3092<br \/>\n{100,80,65,21,45,8,13}<br \/>\n\u3068\u3044\u3063\u305f\u611f\u3058\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"yellowbg\">\u3053\u306e{}\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf<\/span>\u3068\u3044\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3053\u306e\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2><span id=\"i\">\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u306f\uff1f<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221.jpg\" alt=\"\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u306e\u30e1\u30ea\u30c3\u30c8\" width=\"620\" height=\"414\" class=\"alignnone size-full wp-image-927\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u306b\u3059\u308b\u3068\u3069\u3093\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u306e\u3067\u3057\u3087\u3046\uff1f<br \/>\n\u305f\u3068\u3048\u3070\u3001salmon\u304c65\u3060\u3063\u305f\u3068\u3057\u3066\u3001salmon\u306b\u4f3c\u305f\u7279\u5fb4\u3092\u6301\u3064\u5358\u8a9e\u304c\u3042\u3063\u305f\u3089<br \/>\n\u6570\u5b57\u540c\u58eb\u306e\u6bd4\u8f03\u3067\u3001\u300c\u3053\u306e\u5358\u8a9e\u540c\u58eb\u306f\u4f3c\u3066\u3044\u308b\u306e\u3067\u306f\uff1f\u300d<br \/>\n\u3068\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u304c\u63a8\u6e2c\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eba\u9593\u304c\u898b\u305f\u3089\u300c\u3053\u306e\u5358\u8a9e\u3068\u3053\u306e\u5358\u8a9e\u306f\u4f3c\u3066\u3044\u308b\u300d<br \/>\n\u3068\u308f\u304b\u3063\u3066\u3082\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u3002<br \/>\n\u3067\u3082\u3001\u6570\u5b57\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u3082<br \/>\n\u4f3c\u3066\u3044\u308b\u5358\u8a9e\u3092\u63a8\u6e2c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u3044\u306a\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068\u3001\u3044\u308d\u3093\u306a\u6587\u7ae0\u3092\u30d9\u30af\u30c8\u30eb\u30c7\u30fc\u30bf\u3068\u3057\u3066<br \/>\n\u4fdd\u5b58\u3057\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u7684\u306b<br \/>\n\u300c\u3053\u306e\u6570\u5b57\u304c\u304d\u305f\u3089\u3001\u6b21\u306f\u3053\u306e\u6570\u5b57\u304c\u304f\u308b\u306a\u300d<br \/>\n\u3068\u63a8\u6e2c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3069\u3093\u3069\u3093\u3053\u306e\u4ed5\u7d44\u307f\u3092\u767a\u5c55\u3055\u305b\u3066\u3044\u304f\u3068<br \/>\n\u6a5f\u68b0\u7ffb\u8a33\u306e\u5206\u91ce\u3067\u6d3b\u8e8d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u308a<br \/>\n\u81ea\u52d5\u3067\u6587\u7ae0\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306b\u3082\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306b\u3064\u3044\u3066\u306f\u30b3\u30c1\u30e9\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=953\" target=\"blank\">Dialogflow\u306e\u4f7f\u3044\u65b9\u3092\u7406\u89e3\u3057\u3066\u4f1a\u8a71\u304c\u3067\u304d\u308bAI\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046<\/a><\/p>\n<p>\u4ee5\u4e0a\u3067Word2vec\u3068\u306f\u4f55\u304b\uff1f\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066Word2vec\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b<br \/>\ngensim\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fWord2vec\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bgensim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u3082\u3057\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u307e\u3060\u8aad\u3093\u3067\u3044\u306a\u3044\u65b9\u306f\u5148\u306b\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u21d2Word2vec\u3068\u306f\uff1fgensim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u305d\u308c\u3067\u306fWord2vec\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306egensim\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3057...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=1090\">Word2vec(gensim)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u3067\u306fWord2vec\u3068\u306f\u4f55\u304b \u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 Word2vec\u306f\u5f62\u614b\u7d20\u89e3\u6790\u306e\u7d9a\u304d\u306e\u8a18\u4e8b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3067\u3059\u304b\u3089\u3001\u3082\u3057\u5f62\u614b\u7d20\u89e3\u6790\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u5148\u306b\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u21d2 [&hellip;]","protected":false},"author":1,"featured_media":1085,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[105],"tags":[106],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1084"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1084"}],"version-history":[{"count":5,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1084\/revisions"}],"predecessor-version":[{"id":1104,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1084\/revisions\/1104"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/1085"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}