Text this: Parametric synthesis of a trainable state classifier.