calculate the frequency of the keys of a dict in a text
<p>I have a dict of words. For each key in the dict, I want to find its frequency in an article.</p>

<p>After I open an article, I do</p>

<pre><code>for k, v in sourted_key.items():
    for token in re.findall(k, data)
        token[form] += 1
</code></pre>

<p>in 're.findall(k, data)' key must be strings. But the keys in this dict are not. I want to search the keys. Any other solutions? Notice that the KEYS contain many PUNCTUATIONS.</p>

<p>e.g. if the key is 'hand.' it matches only hand. not handy, chandler.</p>
