Structured prediction for natural language processing door