Text this: Optimization and learning via stochastic gradient search