Reputation: 635
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?
Upvotes: 4
Views: 3205
Reputation: 1701
You should be able to extract this information (to a reasonable accuracy) with a constituency parse. There are a number of implementations listed here. To that list, I'd add my own, available for download here. t's faster than any other high-accuracy parser available, and documented reasonably well (for research code).
Upvotes: 4