def unescape_leaves(self): unescaped_leaves = [] for leaf in self.leaves(): unescaped_leaves.append(unescape_penn_special_word(leaf)) return unescaped_leaves
def unescape(self, mystr): #return replace_words(mystr.lower(), self.penn_special_chars) return unescape_penn_special_word(mystr)