How to train relation extraction?

I a little bit confused, for example I want to fine tune a NER in bert english and I realize in John Snow Lab have a NLP task for relation extraction, My question how we can the train the relation after fine tune the NER? can we do it in hugginface and what transformer model use in relation extraction?