Text this: Domain Generalization with Machine Learning in the NOvA Experiment