For a sentence and its associated constituency parse, our system first sets three features for each node: a POS, a word, and a head.
algorithm 1 shows the recursive procedure called for the root node of a parse.