Save treebank with validation.