An artificial intelligence framework for transforming unstructured text into structured survey data