Implement parsed sentence representation

A parsed sentence consists of a sequence of terminals (POS-tagged words)
and a grounded tree over the terminals. A grounded tree is a tree in
which each node is anchored over a span or subsequence of the terminals
in a sentence.