Having a sentence like: "I was given tablets by my nurse to try and ease my pain." I want to decompose it to:
"I was given tablets by my nurse to try."
"I was given tablets by my nurse to ease my pain."
I have tried English parser in OpenNLP (by accessing java from Python) (demo: http://nlp.stanford.edu:8080/parser/index.jsp). "try" and "ease" are at the same sub-level of (VP (TO to) below, how can I decompose the sentence?
(ROOT
(S
(NP (PRP I))
(VP (VBD was)
(VP (VBN given)
(NP (NNS tablets))
(PP (IN by)
(NP (PRP$ my) (NN nurse)
(S
(VP (TO to)
(VP (VB try)
(CC and)
(VB ease)
(NP (PRP$ my) (NN pain)))))))))
(. .)))
Do you know any way other than this java solution: algorithm to extract simple sentences from complex(mixed) sentences?