Reputation: 99
For example, if I have been given a sentence:
A British soldier was killed in the fighting in Afghanistan
The head word of that sentence is "killed".
How can I find it, given the nltk package in Python? I am not talking about stemming, I refer to the head word.
Upvotes: 4
Views: 4096