Text this: Optimization for machine learning