Sha256: 9a03553cdf3701ed516076c9f0899c4a05145058141110cccba93041bfe3aa98
Contents?: true
Size: 188 Bytes
Versions: 124
Compression:
Stored size: 188 Bytes
Contents
import re from collections import Counter WORDS = re.compile("[a-z0-9]+(['][a-z]+)?") def word_count(text): return Counter(word.group(0) for word in WORDS.finditer(text.lower()))
Version data entries
124 entries across 124 versions & 1 rubygems