Learning and Applying Contextual Constraints in Sentence Comprehension