Text this: Optimization Methods for Machine Learning under Structural Constraints