def ComputeSplitPenalties(tree):
 _TreePenaltyAssigner().Visit(tree)

def ComputeSplitPenalties ( tree ) : _TreePenaltyAssigner ( ) . Visit ( tree )
compute split penalties on tokens in the given parse tree .