training data parsing