Implements the Nivre deterministic parsing algorithms.