Extract Named Entities From Text

Great code to extract named entities from a text stored in a .txt file. Found on the yhat blog. Link: 
http://blog.yhathq.com/posts/named-entities-in-law-and-order-using-nlp.html