In the case of non-projective parsing, the extraction of the oracle is not trivial because there can be many possible oracles that would derive the same tree.
it is common practice to use some heuristic to extract only one of the possible oracles.