Text this: Synergizing domain knowledge and machine learning