I want to extract subordinate clause,main clause,relative clause,restrictive relative clause,non-restrictive relative clause from sentences but I don't know how doing this work. for example:
"I first saw her in Paris, where I lived in the early nineties."
[main clause][relative clause]
"She held out the hand that was hurt."
[main clause][restrictive relative clause]
please help me to do this work?