Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def raw_parse(self, sentence):
     [tree1, tree2] = self.norm_parse(sentence)
     un_chomsky_normal_form(tree1)
     un_chomsky_normal_form(tree2)
     return [tree1, tree2]
Exemplo n.º 3
0
 def raw_parse(self, sentence):
     tree = self.norm_parse(sentence)
     un_chomsky_normal_form(tree)
     return tree