@@ -0,0 +1,292 @@
+#!/usr/bin/env python3%0A%0Aimport sys%0Aimport re%0A%0Adef format_tree(): #converts from Penn Treebank to Stanford output%0A    regex = re.compile(r%22%5C((%5BA-Za-z_$%5D+)%22)%0A    with open(sys.argv%5B1%5D) as np_lines:%0A        for line in np_lines:%0A            print(regex.sub(r%22%5C1(%22, line), end=%22%22)%0A%0Aformat_tree()%0A

Add script for converting Penn Treebank to Stanford format