I have some sentences that I want to parse. Here is what I have and what I need: I have sentences like these:
I was in the hospital.
I was going from home to Canada.
What I want is to know the head of "in the hospital", "from home", and "to Canada" phrases.
I am using Berkley parser, but what it gives me is the parsing result of all the sentence, and if I want to extract the head of phrases manually, I should develop another parser! The file that I want to parse is a very big file, so if I develop a parser myself, it may have many errors. Is there any parser that can give me the result I am looking for?
By the way, as parsing the phrases separately, may result in a different parsing compared with sentence parsing, I insist on parsing the sentences and then extract the phrase heads.