def _parse_tree_height(sent):
    """
    Gets the height of the parse tree for a sentence.
    """
    children = list(sent._.children)
    if not children:
        return 0
    else:
        return max(_parse_tree_height(child) for child in children) + 1