training input parsing