Modeling Knowledge And Functional Intent For Context-Aware Pragmatic Analysis