To implement the localize() method, we use the approach described in (Wu et al., 2010a).
we replace the pointer values of HEAD and SEM HEAD features in non-terminal nodes with three labels: "S" for single daughter, "L" for the left-hand-side daughter, and "R" for the right-hand-side daughter.