{"image_url":null,"blog_url":"https://lazy-skunk.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/lazy_skunk/","title":"BoW \u3068\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u3063\u3066\u4fbf\u5229\u3060\u306d\u3002","version":"1.0","author_name":"lazy_skunk","url":"https://lazy-skunk.hatenablog.com/entry/2024/05/29/215107","width":"100%","height":"190","categories":[],"published":"2024-05-29 21:51:07","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flazy-skunk.hatenablog.com%2Fentry%2F2024%2F05%2F29%2F215107\" title=\"BoW \u3068\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u3063\u3066\u4fbf\u5229\u3060\u306d\u3002 - \u3061\u3093\u3071\u3093\u306e\u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","type":"rich","description":"Bag of Words\uff08BoW\uff09\u3068\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u3092\u6700\u8fd1\u77e5\u3063\u3066\u3001\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u305f\u3002\u3053\u3046\u3044\u3046\u6bd4\u3079\u65b9\u304c\u3042\u308b\u3093\u3060\u306a\u3042\u3002 CountVectorizer \u3067\u6587\u7ae0\u3092\u5358\u8a9e\u306e\u51fa\u73fe\u56de\u6570\u306b\u5909\u63db\u3057\u3001\u305d\u306e\u30d9\u30af\u30c8\u30eb\u540c\u58eb\u306e\u30b3\u30b5\u30a4\u30f3\u985e\u4f3c\u5ea6\u3092\u6c42\u3081\u3066\u3044\u308b\u3002\u5143\u306e\u6587\u7ae0\u3001\u5358\u8a9e\u3054\u3068\u306e\u56de\u6570\u3001\u985e\u4f3c\u5ea6\u3092\u8868\u306b\u3059\u308b\u3068\u3001\u4f55\u3092\u6bd4\u3079\u3066\u3044\u308b\u306e\u304b\u3092\u8ffd\u3044\u3084\u3059\u304b\u3063\u305f\u3002 from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity import pandas sample_log1 = \"T\u2026","blog_title":"\u3061\u3093\u3071\u3093\u306e\u96d1\u8a18"}