The problem here is the ordering of the nodes inside of the document. Treex sorts nodes by #ORDER attribute, but PML-TQ seems to ignore that completely a takes the order as the nodes were saved, which is not always in the order.
To solve this:
Is this Treex only issue or can this happen for other treebanks as well?
IF 1. : Either hack PML-TQ so i behaves differently for Treex treebanks or hack Treex to save the nodes in order
ELSE: Develop proper fix so ordering is always taken into account
Node $prepspecwhr should have $prep as a left sibling. Sometimes it works sometimes it doesn't.
The problem here is the ordering of the nodes inside of the document. Treex sorts nodes by #ORDER attribute, but PML-TQ seems to ignore that completely a takes the order as the nodes were saved, which is not always in the order.
To solve this: