XRate: a fast prototyping, training and annotation tool for phylo-grammars