Text this: Consistency and Generalization Bounds for Maximum Entropy Density Estimation