def raw_parse(self, sentence): tree = self.norm_parse(sentence) # workaround for sentences that don't parse if not tree: return None # end workaround un_chomsky_normal_form(tree) return tree
def raw_parse(self, sentence): [tree1, tree2] = self.norm_parse(sentence) un_chomsky_normal_form(tree1) un_chomsky_normal_form(tree2) return [tree1, tree2]
def raw_parse(self, sentence): tree = self.norm_parse(sentence) un_chomsky_normal_form(tree) return tree