On the Automatic Coding of Text Answers to Open-ended Questions in Surveys