Question

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?

Était-ce utile?

La solution

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).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top