Parsing string for "<verb> <noun>"

MRAB python at mrabarnett.plus.com
Tue Jan 11 22:23:11 EST 2011


On 12/01/2011 01:50, Daniel da Silva wrote:
> Hi,
>
> I have come across a task where I would like to scan a short 20-80
> character line of text for instances of "<verb>  <noun>". Ideally
> <verb>  could be of any tense.
>
> I know quite a bit of programming and computer science, but
> computational linguistics is relatively new to me. If anyone can point
> me in the right direction, I would be very thankful!
>
Have a look at the Natural Language Toolkit:

     http://www.nltk.org/



More information about the Python-list mailing list