processing training and dev files