<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kitanokumo</author_name>
  <author_url>https://blog.hatena.ne.jp/kitanokumo/</author_url>
  <blog_title>studylog/北の雲</blog_title>
  <blog_url>https://studylog.hateblo.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>collectionsモジュールをちゃんと勉強したい。今日はcollections.Counter。 この文章には〜という単語がいくつ含まれているか、みたいなのはこれ使った方が楽。 文章のBoW作る時は絶対これ使いたい。 c = collections.Counter([&quot;tomato&quot; , &quot;orange&quot; ,&quot;apple&quot; , &quot;apple&quot; ,&quot;orange&quot;]) #はこうなる Counter({'apple': 2, 'orange': 2, 'tomato': 1}) #dictの拡張なのでdictっぽく使える c[&quot;apple&quot;] #=&gt;2 #追加 c.update([&quot;apple…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstudylog.hateblo.jp%2Fentry%2F2015%2F05%2F26%2F083514&quot; title=&quot;collections.Counterの勉強 - studylog/北の雲&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-26 08:35:14</published>
  <title>collections.Counterの勉強</title>
  <type>rich</type>
  <url>https://studylog.hateblo.jp/entry/2015/05/26/083514</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
