Skip to content

Instantly share code, notes, and snippets.

@cuu508
Created January 14, 2014 22:03
Show Gist options
  • Save cuu508/8426739 to your computer and use it in GitHub Desktop.
Save cuu508/8426739 to your computer and use it in GitHub Desktop.
from collections import*
from re import*
Phrase=type("",(str,),{"word_count":lambda o:Counter(findall("\w+",o.lower()))})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment