Re: xml SAX Parsing in python

2014-12-17 Thread Ian Kelly
On Tue, Dec 16, 2014 at 11:30 PM, Abubakar Roko wrote: > > Good day, > > Please I am new in using python to write program. I am trying to parse an XML document using sax parse and store the parsed result in a tree like defined > below. XNode class define an xml element which has an ID , a tag, a

Re: xml SAX Parsing in python

2014-12-17 Thread Stefan Behnel
Hi, Abubakar Roko schrieb am 17.12.2014 um 07:30: > Please I am new in using python to write program. I am trying to parse an XML > document using sax parse and store the parsed result in a tree like > definedbelow. XNode class define an xml element which has an ID , a tag, a > text value, chi

xml SAX Parsing in python

2014-12-16 Thread Abubakar Roko
Good day, Please I am new in using python to write program. I am trying to parse an XML document using sax parse  and store the parsed result in a tree like definedbelow. XNode class define an xml element which has an ID , a tag, a text value, children element and a parent element              

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

Parsing in Python

2012-12-08 Thread subhabangalore
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 built in. If anyone can kindly suggest. Regards, S

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

parsing in python

2011-08-03 Thread Jayron Soares
Hi folks, I've created a simple method to grab files texts from directory by words random, however I figure out that I need extract the content inside of each file, in fact I believe I have to create a parsing, nonetheless I don't know how to create a parser. Please some could share some tips to

Re: Tag parsing in python

2010-08-29 Thread agnibhu
On Aug 29, 5:43 pm, Paul McGuire wrote: > On Aug 28, 11:23 pm, Paul McGuire wrote: > > > > > On Aug 28, 11:14 am, agnibhu wrote: > > > > Hi all, > > > > I'm a newbie in python. I'm trying to create a library for parsing > > > certain keywords. > > > For example say I've key words like abc: bcd:

Re: Tag parsing in python

2010-08-29 Thread Paul McGuire
On Aug 28, 11:23 pm, Paul McGuire wrote: > On Aug 28, 11:14 am, agnibhu wrote: > > > > > > > Hi all, > > > I'm a newbie in python. I'm trying to create a library for parsing > > certain keywords. > > For example say I've key words like abc: bcd: cde: like that... So the > > user may use like > >

Re: Tag parsing in python

2010-08-28 Thread Paul McGuire
On Aug 28, 11:14 am, agnibhu wrote: > Hi all, > > I'm a newbie in python. I'm trying to create a library for parsing > certain keywords. > For example say I've key words like abc: bcd: cde: like that... So the > user may use like > abc: How are you bcd: I'm fine cde: ok > > So I've to extract the

Re: Tag parsing in python

2010-08-28 Thread Josh English
On Aug 28, 9:14 am, agnibhu wrote: > Hi all, > > I'm a newbie in python. I'm trying to create a library for parsing > certain keywords. > For example say I've key words like abc: bcd: cde: like that... So the > user may use like > abc: How are you bcd: I'm fine cde: ok > > So I've to extract the "

Re: Tag parsing in python

2010-08-28 Thread Tim Chase
On 08/28/10 11:14, agnibhu wrote: For example say I've key words like abc: bcd: cde: like that... So the user may use like abc: How are you bcd: I'm fine cde: ok So I've to extract the "How are you" and "I'm fine" and "ok"..and assign them to abc:, bcd: and cde: respectively.. For this, you ca

Tag parsing in python

2010-08-28 Thread agnibhu
Hi all, I'm a newbie in python. I'm trying to create a library for parsing certain keywords. For example say I've key words like abc: bcd: cde: like that... So the user may use like abc: How are you bcd: I'm fine cde: ok So I've to extract the "How are you" and "I'm fine" and "ok"..and assign the

Re: Street address parsing in Python, again.

2010-06-04 Thread John Nagle
John Nagle wrote: The parser at PyParsing: http://pyparsing.wikispaces.com/file/view/streetAddressParser.py ..Bad cases... 487 E. Middlefield Rd. -> streetnumber = 487, streetname = E. MIDDLEFIELD 487 East Middlefield Road -> streetnumber = 487, streetname = EAST MIDDLEFIELD 226 West

Street address parsing in Python, again.

2010-06-04 Thread John Nagle
I'm still struggling with street address parsing in Python. (Previous discussion: http://www.velocityreviews.com/forums/t720759-usable-street-address-parser-in-python.html) I need something good enough to reliably extract street name and number. That gives me something I can