The Organic brew: How to Write a Spelling Corrector (incidentally, how cool is python!)
January 9th, 2010 / Categorized under: Personal Blogs
import re, collections def words(text): return re.findall('[a-z]+', text.lower()) def train(features): model = collections.defaultdict(lambda: 1) for f in features: model[f] += 1 return model NWORDS = train(words(file('big.t…
Read Full Blog PostRelated Posts
- The Organic brew: Real world review (RWR): Byron bay cookies – stuff you should never buy
- The Organic brew: Japanese style dessert: Not-so-sweet Tsubu-an: Japanese Azuki Bean Paste
- The Organic brew: Charlie Brooker | iPad therefore iWant? Probably. Why? -The Guardian
- The Lootmaar Blog: Frantic Steve Jobs Stays Up All Night Designing Apple Tablet
- HumAyuN.Pk: Easily manage styles for Dock on Snow Leopard
- Tehreer: Two Great Links
- Technology Bee: Create Your Own Word Cloud
- Teens Pk: From Islamabad to Istanbul: On a TRAIN!
- HumAyuN.Pk: Zong Introduces Dialtunes Mobile Application
- Five Rupees: Couple Have Sex On Queen’s Lawn
- Ammar-3Sixty!: No to the President, No to the Media
- Pro Pakistani: Zong Introduces Dialtunes Mobile Application
- The Organic brew: Beauty and the Bento Box a a whirlwind tour through japanese design sensibilites
- Speak Your Mind!!!: Sasha – my new cat
- Randomness Infinite: Blogging through Office 2007
- Telecom News Bulletin: Dial Tune Setting Never So Easy With Zong Dial Tune Application
- Lahore Metblogs: Short Story sitting with Bano Qudsia
- The Organic brew: Steve Job’s moment of Zen. I like this picture.
- Pro Pakistan: How do We Save a Generation of Displaced People?
- Tehreer: Speak Carefully
- Faisal Qureshi: Have you ever been hit by a train? Twice in 2 weeks? WTH?
- PakTelecom: ZEM Nites (Warid Telecom – Baby Girl)
- Telecom News Bulletin: Ufone Lowest Incoming Call & SMS Rates for Hajji’s
- Technology Bee: Translate Documents via Google – Launched
- Ali Raza Shaikh: Pakistan News Watch : Never Load Another News Site
