Convert sr_parser::training_data from struct to class.

It already had functions for accessing everything anyway, so there was no
reason to forgo encapsulation of the data members any longer.