Analyzing Intention in Dialogues