How would you handle dependency parsing using transformers?

I was thinking of creating two tasks, one for getting positions of the arc tag between the two words and one for the position of the head relative to the word.