{"id":2293,"date":"2019-10-05T18:54:26","date_gmt":"2019-10-05T09:54:26","guid":{"rendered":"https:\/\/tnishimaki.com\/?p=2293"},"modified":"2025-06-08T22:23:29","modified_gmt":"2025-06-08T13:23:29","slug":"pythondoc2vec%e3%81%a7%e4%bc%bc%e3%81%9f%e6%84%8f%e5%91%b3%e3%82%92%e6%8c%81%e3%81%a4%e6%96%87%e7%ab%a0%e3%82%92%e8%aa%bf%e3%81%b9%e3%82%8b","status":"publish","type":"post","link":"https:\/\/analysis-navi.com\/?p=2293","title":{"rendered":"Python+Doc2Vec\u3067\u4f3c\u305f\u610f\u5473\u3092\u6301\u3064\u6587\u7ae0\u3092\u8abf\u3079\u308b"},"content":{"rendered":"\n<p>\u4ee5\u524d\u3001\u5358\u8a9e\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u308b\u6280\u8853<strong>\u300cWord2Vec\u300d<\/strong>\u3092\u7528\u3044\u3066\u4f3c\u305f\u610f\u5473\u3092\u6301\u3064\u5358\u8a9e\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<br>\u4eca\u5ea6\u306f\u3001<strong><span style=\"background-color: #87cefa;\">\u6587\u7ae0\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u308b\u6280\u8853\u300cDoc2Vec\u300d\u3092\u7528\u3044\u3066\u3001\u4f3c\u305f\u610f\u5473\u3092\u6301\u3064\u6587\u7ae0\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/analysis-navi.com\/?p=2258\n<\/div><\/figure>\n\n\n\n<p>Doc2Vec\u306f2014\u5e74\u306b\u767a\u8868\u3055\u308c\u305f\u65b9\u6cd5\u3067\u3001<strong><span style=\"background-color: #87cefa;\">\u8a9e\u9806\u30fb\u610f\u5473\u306a\u3069\u3082\u542b\u3081\u3066\u6587\u7ae0\u3092\u6349\u3048\u3089\u308c\u308b\u624b\u6cd5<\/span><\/strong>\u3068\u3057\u3066\u975e\u5e38\u306b\u6709\u540d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>\u305d\u308c\u307e\u3067\u306f\u5358\u8a9e\u306e\u51fa\u73fe\u56de\u6570\u3092\u898b\u305f\u308a\u3001\u4eba\u9593\u304c\u767b\u9332\u3057\u305f\u8f9e\u66f8\u30c7\u30fc\u30bf\u3092\u7528\u3044\u3066\u610f\u5473\u3092\u5224\u65ad\u3059\u308b\u304f\u3089\u3044\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u307e\u3055\u306b\u30bb\u30f3\u30bb\u30fc\u30b7\u30e7\u30ca\u30eb\u3067\u3001\u6620\u753b\u3067\u898b\u308b\u3088\u3046\u306a\u300cAI\u300d\u304c\u73fe\u5b9f\u306b\u306a\u308a\u3064\u3064\u3042\u308b\u306e\u3092\u611f\u3058\u305f\u3082\u306e\u3067\u3059\u3002<br>\uff08\u3057\u304b\u3057\u3001\u305d\u3053\u307e\u3067\u6b63\u78ba\u306b\u610f\u5473\u3092\u5224\u65ad\u3067\u304d\u308b\u8a33\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u4ed8\u3051\u52a0\u3048\u3066\u304a\u304d\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u305d\u3093\u306aDoc2Vec\u3082\u3001Python\u3092\u4f7f\u3048\u3070\u8ab0\u3067\u3082\u7c21\u5358\u306b\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u65e9\u901f\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python\u306b\u3088\u308bDoc2Vec\u306e\u5b9f\u884c\u65b9\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u8aad\u307f\u8fbc\u307f<\/h3>\n\n\n\n<p>\u81ea\u5206\u3067\u7528\u610f\u3057\u305f\u30c7\u30fc\u30bf\u3067\u5b66\u7fd2\u3055\u305b\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u304c\u3001\u65e2\u306b\u5927\u91cf\u306e\u6587\u7ae0\u3067\u5b66\u7fd2\u3055\u305b\u305f\u5b66\u7fd2\u30e2\u30c7\u30eb\u304c\u5e7e\u3064\u304b\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4eca\u56de\u306f\u305d\u308c\u3092\u62dd\u501f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u306e\u6587\u7ae0\u3092\u6271\u3046\u306e\u3067\u3001\u300c<a href=\"https:\/\/yag-ays.github.io\/project\/pretrained_doc2vec_wikipedia\/\">\u65e5\u672c\u8a9eWIKIPEDIA\u3067\u5b66\u7fd2\u3057\u305fDOC2VEC\u30e2\u30c7\u30eb<\/a>\u300d\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b<strong>\u300cdbow300d\u300d<\/strong>\u3092\u4f7f\u7528\u3055\u305b\u3066\u9802\u304d\u307e\u3057\u305f\u3002<br>\u3082\u30461\u3064\u306e<strong>\u300cdmpv300d\u300d<\/strong>\u3068\u306f\u5b66\u7fd2\u306e\u65b9\u6cd5\u304c\u9055\u3046\u306e\u3067\u3059\u304c\u3001\u4e00\u6982\u306b\u3069\u3061\u3089\u304c\u826f\u3044\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002<br>\u4eca\u56de\u306f\u5358\u7d14\u306b\u5bb9\u91cf\u306e\u8efd\u3044\u65b9\u306b\u3057\u307e\u3057\u305f\u3002<br>\uff08\u8efd\u3044\u65b9\u3068\u8a00\u3063\u3066\u30825GB\u4ee5\u4e0a\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30d1\u30bd\u30b3\u30f3\u306e\u5bb9\u91cf\u306b\u306f\u3054\u6ce8\u610f\u3092\u30fb\u30fb\u30fb\uff09<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3060\u3051\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from gensim.models.doc2vec import Doc2Vec\nmodel = Doc2Vec.load(\"jawiki.doc2vec.dbow300d.model\")<\/pre>\n\n\n\n<p>\u30d1\u30bd\u30b3\u30f3\u306e\u30b9\u30da\u30c3\u30af\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u8aad\u307f\u8fbc\u307f\u306b\u3082\u5c11\u3005\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d9\u30af\u30c8\u30eb\u5316\u3057\u305f\u3044\u6587\u7ae0\u306e\u8aad\u307f\u8fbc\u307f<\/h3>\n\n\n\n<p>\u3055\u3066\u3001\u30e2\u30c7\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3060\u3089\u3001\u7d9a\u3044\u3066\u306f\u30d9\u30af\u30c8\u30eb\u5316\u3057\u305f\u3044\u6587\u7ae0\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u300c<a href=\"https:\/\/www.rondhuit.com\/download.html\">livedoor\u30cb\u30e5\u30fc\u30b9\u30b3\u30fc\u30d1\u30b9<\/a>\u300d\u3092\u8aad\u307f\u8fbc\u307f\u3001\u6700\u7d42\u7684\u306b<strong><span style=\"background-color: #87cefa;\">\u6307\u5b9a\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u3068\u8fd1\u3044\u5185\u5bb9\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u63a8\u5b9a\u3057\u3066\u63d0\u793a\u3057\u3066\u304f\u308c\u308bAI<\/span><\/strong>\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br>\u3068\u3044\u3046\u3053\u3068\u3067\u3001livedoor\u30cb\u30e5\u30fc\u30b9\u30b3\u30fc\u30d1\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5185\u5bb9\u3092\u5168\u3066\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u30cb\u30e5\u30fc\u30b9\u30b3\u30fc\u30d1\u30b9\u306e\u53d6\u308a\u8fbc\u307f\nimport glob\ndocuments = []\nfor x in glob.glob(\"text\/*\/*\"):\n    text = \"\"\n    with open(x) as f:\n        next(f)\n        next(f)\n        for line in f:\n            text = text + line\n    f.close()\n    documents.append(text)<\/pre>\n\n\n\n<p>\u300ctext\u300d\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u914d\u4e0b\u306b\u30c7\u30fc\u30bf\u3092\u7f6e\u304d\u307e\u3057\u305f\u3002<br>glob\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30c7\u30fc\u30bf\u3092\u5168\u3066\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<br>\u307e\u305f\u3001livedoor\u30cb\u30e5\u30fc\u30b9\u30b3\u30fc\u30d1\u30b9\u3067\u306f\u3001\u5168\u3066\u4e0a\u306e2\u884c\u304cURL\u3068\u65e5\u6642\u60c5\u5831\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001next(f)\u30922\u56de\u3067\u305d\u308c\u3092\u6392\u9664\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6587\u7ae0\u306e\u30d9\u30af\u30c8\u30eb\u5316<\/h3>\n\n\n\n<p>\u304a\u6b21\u306f\u8aad\u307f\u8fbc\u3093\u3060\u6587\u7ae0\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3057\u307e\u3059\u3002<br>\u65e5\u672c\u8a9e\u306e\u5834\u5408\u306f\u3001\u307e\u305a\u5f62\u614b\u7d20\u89e3\u6790\u3092\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002<br>\u5f62\u614b\u7d20\u89e3\u6790\u5668\u306f\u304a\u597d\u307f\u3067OK\u3067\u3059\u304c\u3001\u4eca\u56de\u306fjanome\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u5165\u308c\u308b\u3068janome\u306b\u3088\u308a\u5358\u8a9e\u3092\u5206\u5272\u3057\u3001\u30b9\u30da\u30fc\u30b9\u3092\u631f\u3093\u3067\u9023\u7d50\u3057\u3066\u304f\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from janome.tokenizer import Tokenizer\ndef sep_by_janome(text):\n    t = Tokenizer()\n    tokens = t.tokenize(text)\n    docs=[]\n    for token in tokens:\n        docs.append(token.surface)\n    return docs<\/pre>\n\n\n\n<p>\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u5148\u7a0b\u306e\u6587\u7ae0\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5206\u5272\u3057\u305f\u5f8c\u306b\u3001<strong>infer_vector<\/strong>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u30d9\u30af\u30c8\u30eb\u5316\ndocument_vecs=[]\nfor d in documents:\n    document_vecs.append(model.infer_vector(sep_by_janome(d)))<\/pre>\n\n\n\n<p>\u3053\u306e\u300c<strong>input_vec<\/strong>\u300d\u3053\u305d\u304c\u3001\u691c\u7d22\u5bfe\u8c61\u306e\u6587\u7ae0\u3092\u3059\u3079\u3066\u30d9\u30af\u30c8\u30eb\u5316\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u985e\u4f3c\u6587\u7ae0\u306e\u691c\u7d22<\/h3>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u6765\u305f\u3089\u3044\u3088\u3044\u3088\u6587\u7ae0\u306e\u691c\u7d22\u304c\u51fa\u6765\u307e\u3059\u3002\u6d41\u308c\u3068\u3057\u3066\u306f\u3001<br>\u300c\u8abf\u3079\u305f\u3044\u30c6\u30ad\u30b9\u30c8\u306e\u8aad\u307f\u8fbc\u307f\u300d\u21d2\u300c\u305d\u306e\u30c6\u30ad\u30b9\u30c8\u306e\u30d9\u30af\u30c8\u30eb\u5316\u300d\u21d2\u300c\u6700\u3082\u8fd1\u3044\u30d9\u30af\u30c8\u30eb\u306e\u53d6\u5f97\u300d<br>\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u8abf\u3079\u305f\u3044\u6587\u7ae0\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br>\u8a66\u3057\u306b\u300cit-life-hack\u300d\u306e\u4e00\u756a\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u300c<strong>it-life-hack-6842412.txt<\/strong>\u300d\u306b\u8fd1\u3044\u30cb\u30e5\u30fc\u30b9\u3092\u691c\u7d22\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">with open(\"text\/it-life-hack\/it-life-hack-6842412.txt\",encoding=\"utf-8\") as f:\n    next(f)\n    next(f)\n    for line in f:\n        text = text + line\nf.close()<\/pre>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30cb\u30e5\u30fc\u30b9\u5185\u5bb9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"simple-box4\">\n<p>\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u56db\u5f3e\uff01\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u5341\u4e00\u5f3e<br>\u5b9f\u969b\u306b\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u56db\u5f3e\u3002\u6628\u65e5\u30018\u67089\u65e5\u306b\u7d39\u4ecb\u3057\u305fGoogle\u691c\u7d22\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ed\u30b4\u306f\u3001\u30ab\u30cc\u30fc\u30b9\u30e9\u30ed\u30fc\u30e0\u3060\u3063\u305f\u3002\u3055\u3066\u3001\u4eca\u56de\u306eGoogle\u30ed\u30b4\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306f\u30b5\u30c3\u30ab\u30fc\uff08PK\u6226\uff09\u3067\u3042\u308b\u3002\u3053\u3053\u307e\u3067\u6765\u308b\u3068\u6700\u7d42\u65e5\u307e\u3067\u30d7\u30ec\u30a4\u53ef\u80fd\u306a\u30ed\u30b4\u306b\u306a\u308a\u305d\u3046\u306a\u96f0\u56f2\u6c17\u3060\u3002<\/p>\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5de6\u53f3\u77e2\u5370\u30ad\u30fc\u3092\u4ea4\u4e92\u306b\u62bc\u3059\u3053\u3068\u3067\u5de6\u53f3\u306e\u79fb\u52d5\u3001\u30b9\u30da\u30fc\u30b9\u30ad\u30fc\u3067\u30b8\u30e3\u30f3\u30d7\u306e\u52d5\u4f5c\u3092\u884c\u3046\u3002\u30de\u30a6\u30b9\u306e\u5de6\u53f3\u79fb\u52d5\u3067\u540c\u69d8\u306b\u5de6\u53f3\u306b\u79fb\u52d5\u3057\u3001\u30de\u30a6\u30b9\u306e\u30af\u30ea\u30c3\u30af\u3067\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3002\u76f8\u624b\u306e\u30ad\u30c3\u30af\u306f\u4f4e\u3081\u306e\u30b4\u30ed\u3067\u6765\u308b\u6642\u3082\u3042\u308c\u3070\u3001\u9ad8\u3081\u306e\u30dc\u30ec\u30fc\u3067\u98db\u3093\u3067\u304f\u308b\u3053\u3068\u3082\u3042\u308b\u3002\u305d\u308c\u306b\u5408\u308f\u305b\u3066\u30dc\u30fc\u30eb\u3092\u5f3e\u3051\u3070OK\u3060\u3002<\/p>\n<\/div>\n\n\n\n<p>\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u3001\u5148\u7a0b\u3068\u540c\u69d8\u306b\u30d9\u30af\u30c8\u30eb\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tokens = sep_by_janome(text)\ninput_vec = model.infer_vector(tokens)<\/pre>\n\n\n\n<p>\u3067\u306f\u3001\u30d9\u30af\u30c8\u30eb\u306e\u8fd1\u3044\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d9\u30af\u30c8\u30eb\u306e\u8fd1\u3055\u306f\u300c<strong>\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6<\/strong>\u300d\u3092\u7528\u3044\u3066\u8a08\u6e2c\u3057\u307e\u3059\u3002<br>\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u8ff0\u3079\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/analysis-navi.com\/?p=569\n<\/div><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u300c\u5165\u529b\u6587\u306e\u30d9\u30af\u30c8\u30eb\u300dvs\u300c\u8a08\u7b97\u3057\u3066\u304a\u3044\u305f\u5168\u3066\u306e\u30d9\u30af\u30c8\u30eb\u300d\u3067\u3001\u985e\u4f3c\u5ea6\u304c\u9ad8\u3044\u9806\u306b5\u4ef6\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u306e\u8a08\u7b97\uff0b\u30e9\u30f3\u30ad\u30f3\u30b0\u5316\nimport numpy as np\nrank_size = 5\n\nv1 = np.linalg.norm(input_vec)\ncos_sim = []\nfor v2 in document_vecs:\n    cos_sim.append( np.dot(input_vec,v2)\/(v1*np.linalg.norm(v2)) )\ndoc_sort = np.argsort(np.array(cos_sim))[::-1]\ncos_sort = sorted(cos_sim,reverse=True)\n\nfor i in range(rank_size):\n    print(cos_sort[i])\n    print(documents[doc_sort[i]])<\/pre>\n\n\n\n<p><strong>doc_sort<\/strong>\u306b\u306f\u4f3c\u3066\u3044\u308b\u9806\u306b\u4e26\u3073\u66ff\u3048\u3089\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u756a\u53f7\u304c\u3001<strong>cos_sort<\/strong>\u306b\u306f\u964d\u9806\u306b\u4e26\u3073\u66ff\u3048\u3089\u308c\u305f\u985e\u4f3c\u5ea6\u306e\u5024\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u3092\u898b\u3066\u307f\u307e\u3059\u3002\uff08\u5168\u6587\u63b2\u8f09\u3059\u308b\u3068\u9577\u3044\u306e\u3067\u3001\u4e0a\u306e\u65b9\u3060\u3051\u63b2\u8f09\u3057\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<div class=\"simple-box4\">\n<p><strong>No.1 : \u985e\u4f3c\u5ea6 0.96<\/strong><br>\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u56db\u5f3e\uff01\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u5341\u4e00\u5f3e<br>\u5b9f\u969b\u306b\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u56db\u5f3e\u3002\u6628\u65e5\u30018\u67089\u65e5\u306b\u7d39\u4ecb\u3057\u305fGoogle\u691c\u7d22\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ed\u30b4\u306f\u3001\u30ab\u30cc\u30fc\u30b9\u30e9\u30ed\u30fc\u30e0\u3060\u3063\u305f\u3002\u3055\u3066\u3001\u4eca\u56de\u306eGoogle\u30ed\u30b4\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306f\u30b5\u30c3\u30ab\u30fc\uff08PK\u6226\uff09\u3067\u3042\u308b\u3002\u3053\u3053\u307e\u3067\u6765\u308b\u3068\u6700\u7d42\u65e5\u307e\u3067\u30d7\u30ec\u30a4\u53ef\u80fd\u306a\u30ed\u30b4\u306b\u306a\u308a\u305d\u3046\u306a\u96f0\u56f2\u6c17\u3060\u3002<\/p>\n<p><strong>No.2 : \u985e\u4f3c\u5ea6 0.70<\/strong><br>\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u4e09\u5f3e\uff01\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u5341\u5f3e<br>\u5b9f\u969b\u306b\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u7b2c\u4e09\u5f3e\u3002\u6628\u65e5\u30018\u67088\u65e5\u306b\u7d39\u4ecb\u3057\u305fGoogle\u691c\u7d22\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ed\u30b4\u306f\u3001\u30d0\u30b9\u30b1\u30c3\u30c8\uff08\u30d5\u30ea\u30fc\u30b9\u30ed\u30fc\uff09\u3060\u3063\u305f\u3002\u3055\u3066\u3001\u4eca\u56de\u306eGoogle\u30ed\u30b4\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306f\u30ab\u30cc\u30fc\u30b9\u30e9\u30ed\u30fc\u30e0\u3067\u3042\u308b\u3002<\/p>\n<p><strong>No.3 : \u985e\u4f3c\u5ea6 0.69<\/strong><br>\u672c\u65e5\u306f\u30d7\u30ec\u30a4\u4e0d\u53ef\u306a\u30ed\u30b4\uff01\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u5341\u4e8c\u5f3e<br>\u5b9f\u969b\u306b\u30d7\u30ec\u30a4\u53ef\u80fd\u306aGoogle\u30ed\u30b4\u304c\u56db\u9023\u7d9a\u3067\u7d9a\u3044\u3066\u3044\u305f\u306e\u3067\u3053\u306e\u307e\u307e\u6700\u7d42\u65e5\u307e\u3067\u884c\u304f\u306e\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3069\u3046\u3084\u3089\u6253\u3061\u6b62\u3081\u307f\u305f\u3044\u3067\u3001\u672c\u65e5\u306f\u30d7\u30ec\u30a4\u3067\u304d\u307e\u305b\u3093\u3002\u6628\u65e5\u30018\u670810\u65e5\u306b\u7d39\u4ecb\u3057\u305fGoogle\u691c\u7d22\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ed\u30b4\u306f\u3001\u30b5\u30c3\u30ab\u30fc\uff08PK\u6226\uff09\u3060\u3063\u305f\u3002\u3055\u3066\u3001\u4eca\u56de\u306eGoogle\u30ed\u30b4\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306f\u65b0\u4f53\u64cd\u3067\u3042\u308b\u3002<\/p>\n<p><strong>No.4 : \u985e\u4f3c\u5ea6 0.66<\/strong><br>\u672c\u65e5\u306eGoogle\u30ed\u30b4\u306f\u30d7\u30ec\u30a4\u53ef\u80fd\u306a\u30cf\u30fc\u30c9\u30eb\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u516b\u5f3e<br>\u6628\u65e5\u30018\u67086\u65e5\u306b\u7d39\u4ecb\u3057\u305fGoogle\u691c\u7d22\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u30ed\u30b4\u306f\u3084\u308a\u6295\u3060\u3063\u305f\u3002\u5973\u5b50\u30b5\u30c3\u30ab\u30fc\u306e\u30e1\u30c0\u30eb\u78ba\u5b9a\u306b\u6cb8\u3044\u3066\u3044\u308b\u3068\u601d\u3046\u304c\u672c\u65e5\u306f\u30cf\u30fc\u30c9\u30eb\u3060\u3002\u5973\u5b50\u5353\u7403\u56e3\u4f53\u3082\u30e1\u30c0\u30eb\u78ba\u5b9a\u3068\u3001\u4eca\u56de\u306e\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u306f\u5973\u6027\u9663\u306e\u6d3b\u8e8d\u304c\u76ee\u7acb\u3064\u5927\u4f1a\u306b\u306a\u3063\u3066\u3044\u308b\uff08\u3068\u7b46\u8005\u306f\u601d\u3063\u3066\u3044\u308b\uff09\u3002<\/p>\n<p><strong>No.5 : \u985e\u4f3c\u5ea6 0.64<\/strong><br>\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u6700\u7d42\u65e5\u30ed\u30b4\u306f\u9589\u4f1a\u5f0f\uff01\u3000Google\u30ed\u30b4\u304c\u30b9\u30dd\u30fc\u30c4\u95a2\u9023\u753b\u50cf\u306b\u5909\u5316\u7b2c\u5341\u4e09\u5f3e<br>7\u670827\u65e5\u304b\u3089\u672c\u65e58\u670812\u65e5\u307e\u3067\u3001\u5404\u7a2e\u7af6\u6280\u3067\u71b1\u3044\u6226\u3044\u3092\u7e70\u308a\u5e83\u3052\u305f\u30ed\u30f3\u30c9\u30f3\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u3082\u3001\u672c\u65e5\u304c\u6700\u7d42\u65e5\u3060\u3002\u7537\u5b50\u30b5\u30c3\u30ab\u30fc\u306f\u6b8b\u5ff5\u3060\u3063\u305f\u304c\u3001\u4eca\u30aa\u30ea\u30f3\u30d4\u30c3\u30af\u306f\u5973\u5b50\u306e\u6d3b\u8e8d\u304c\u975e\u5e38\u306b\u76ee\u7acb\u3064\u5927\u4f1a\u3060\u3063\u305f\u3088\u3046\u306b\u601d\u3046\u3002<\/p>\n<\/div>\n\n\n\n<p>1\u756a\u4e0a\u306f\u5165\u529b\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u306e\u5185\u5bb9\u305d\u306e\u307e\u307e\u306a\u306e\u3067\u5f53\u7136\u3067\u3059\u3002<br>\u3057\u304b\u30572\u756a\u76ee\u4ee5\u964d\u3082\u5168\u3066\u3001\u540c\u3058Google\u30ed\u30b4\u306e\u8a71\u984c\u304c\u53d6\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u30cb\u30e5\u30fc\u30b9\u306e\u6587\u7ae0\u3092\u7528\u3044\u3066\u691c\u7d22\u3057\u307e\u3057\u305f\u304c\u3001\u3082\u3061\u308d\u3093\u30cb\u30e5\u30fc\u30b9\u4ee5\u5916\u306e\u9069\u5f53\u306a\u30c6\u30ad\u30b9\u30c8\u3067\u3082\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u4ee5\u4e0a\u304cPython\u3092\u7528\u3044\u3066\u6587\u7ae0\u306e\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\u3068\u3057\u3066\u306f\u3001<strong><span style=\"background-color: #87cefa;\">Doc2Vec\u3067\u306f\u3001\u540c\u3058\u6587\u7ae0\u3067\u3082\u8a08\u7b97\u3059\u308b\u5ea6\u306b\u30d9\u30af\u30c8\u30eb\u304c\u5909\u5316<\/span><\/strong>\u3057\u307e\u3059\u3002<br>\u306a\u306e\u3067\u3001\u540c\u3058\u30c7\u30fc\u30bf\u306a\u306e\u306b\u7d50\u679c\u304c\u9055\u3046\u3053\u3068\u3082\u3042\u308a\u5f97\u307e\u3059\u3002<br>\u305d\u308c\u304c\u56f0\u308b\u5834\u5408\u306f\u3001\u5225\u306e\u624b\u6cd5\u3092\u7528\u3044\u308b\u304b\u3001<strong><span style=\"background-color: #87cefa;\">Word2Vec\u3067\u6587\u7ae0\u4e2d\u306e\u5358\u8a9e\u3092\u5168\u3066\u30d9\u30af\u30c8\u30eb\u5316\u3057\u3066\u3001\u6700\u5f8c\u306b\u5e73\u5747\u3059\u308b\u3068\u3044\u3063\u305f\u65b9\u6cd5<\/span><\/strong>\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3042\u308c\u304b\u3089\u66f4\u306b\u9ad8\u5ea6\u306a\u624b\u6cd5\u3082\u591a\u6570\u767a\u8868\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u6587\u7ae0\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3059\u308b\u6280\u8853\u3068\u3057\u3066\u306f\u307e\u3060\u307e\u3060Doc2Vec\u3082\u6709\u529b\u624b\u6cd5\u306e\u3072\u3068\u3064\u3067\u3059\u3002<br>\u81ea\u7136\u8a00\u8a9e\u51e6\u7406\u3092\u6271\u3046\u306e\u306a\u3089\u3001\u662f\u975e\u4e00\u5ea6\u306f\u8a66\u3057\u3066\u304a\u304d\u305f\u3044\u624b\u6cd5\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u3001\u5358\u8a9e\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u308b\u6280\u8853\u300cWord2Vec\u300d\u3092\u7528\u3044\u3066\u4f3c\u305f\u610f\u5473\u3092\u6301\u3064\u5358\u8a9e\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002\u4eca\u5ea6\u306f\u3001\u6587\u7ae0\u3092\u30d9\u30af\u30c8\u30eb\u5316\u3067\u304d\u308b\u6280\u8853\u300cDoc2Vec\u300d\u3092\u7528\u3044\u3066\u3001\u4f3c\u305f\u610f\u5473\u3092\u6301\u3064\u6587\u7ae0\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3002 Doc2Vec\u306f2014\u5e74 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5042,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"swell_btn_cv_data":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[129],"tags":[100,101,134],"class_list":["post-2293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-study","tag-nlp","tag-ml","tag-python"],"_links":{"self":[{"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/posts\/2293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2293"}],"version-history":[{"count":13,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/posts\/2293\/revisions"}],"predecessor-version":[{"id":5069,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/posts\/2293\/revisions\/5069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=\/wp\/v2\/media\/5042"}],"wp:attachment":[{"href":"https:\/\/analysis-navi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/analysis-navi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}