(1) Remove outer brackets from Berkely parse (2) fix matching backslash (3) tree_to_reordered/3 returns reordered sentence and indexes (4) reorder/5 adds start and stop symbol to the reordered sentence (for srilm) (5) reorder/5 reads bitpar output containing viterbi log probs for n-best parses. the probs are written to <prefix>.probs, the reordered sentences to <prefix>.rs and the reordered indexes to <prefix>.ri.