If z j = 0, then in both equations, all terms having z j are zero; If z j = 1, i.e., x j is kept, since it has exactly one head word x k in the compressed sentence, the sum of the terms having z j is w tok j + w dep kj for both equations.
we only need to consider the scores of arcs.