Foundations of Statistical Natural Language Processing