A simple framework for natural language processing