{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F2015%2F11%2F21%2F113723\" title=\" Python \u3067\u30d0\u30a4\u30b0\u30e9\u30e0\u306e\u30e1\u30e2 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","description":"(python2.7) def ngrams(text, n): text_list = list(text) return [text_list[i:i + n] for i, char in enumerate(text_list)] ngrams_list = ngrams(u\"\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d\u3002\", 2) print((\"\\n\").join([u\"{}\".format(u\"\".join(chars)).encode('utf8') for chars in ngrams_list])) \"\"\" \u4eca\u65e5 \u65e5\u306f \u306f\u3044 \u3044\u3044 \u3044\u5929 \u5929\u6c17 \u6c17\u3067 \u3067\u3059 \u3059\u306d \u306d\u3002 \u3002 \"\"\" nltk \u30e9\u30a4\u30d6\u2026","blog_url":"https://cortyuming.hateblo.jp/","provider_url":"https://hatena.blog","title":" Python \u3067\u30d0\u30a4\u30b0\u30e9\u30e0\u306e\u30e1\u30e2","categories":["Python"],"provider_name":"Hatena Blog","height":"190","url":"https://cortyuming.hateblo.jp/entry/2015/11/21/113723","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","type":"rich","author_url":"https://blog.hatena.ne.jp/CortYuming/","width":"100%","published":"2015-11-21 11:37:23","author_name":"CortYuming","image_url":null}