Re: Parsing in Python

2012-12-09 Thread Mark Lawrence
On 08/12/2012 22:23, subhabangal...@gmail.com wrote: Dear Group, I am looking at a readymade tool to resolve anaphora, and I am looking a Python based one. I checked NLTK. It has DRT parser. But I do not like that. In other parsers you have to insert grammar. But I am looking for a completely

Re: parsing in python

2011-08-03 Thread John L. Stephens
Depending on what you want to do, you might try looking at the pyparsing module. I have used it to successfully parse sentences looking for keywords and structures. On 8/3/2011 9:26 AM, Jayron Soares wrote: Hi folks, I've created a simple method to grab files texts from directory by words r

Re: parsing in python

2011-08-03 Thread Jayron Soares
Hi Dan, Thank you a lot =) Cheers Jayron 2011/8/3 Dan Stromberg > > To just split lines into words, you could probably just use a regex. > > If you need to match things, like quotes or brackets or parens, pyparsing > is pretty nice. > > On Wed, Aug 3, 2011 at 6:26 AM, Jayron Soares wrote: > >>

Re: parsing in python

2011-08-03 Thread Dan Stromberg
To just split lines into words, you could probably just use a regex. If you need to match things, like quotes or brackets or parens, pyparsing is pretty nice. On Wed, Aug 3, 2011 at 6:26 AM, Jayron Soares wrote: > Hi folks, > > I've created a simple method to grab files texts from directory by w