Tools for processing treebank trees