Re: [Tutor] Replacing fields in lines of various lengths

2009-05-05 Thread spir
Le Tue, 5 May 2009 00:22:45 -0400, Dan Liang s'exprima ainsi: > -Begin data > > w1\t case_def_acc \t yes > w2‬\t noun_prop \t no > ‭w3‬\t case_def_gen \t > w4\t dem_pron_f \t no > w3‬\t

Re: [Tutor] Replacing fields in lines of various lengths

2009-05-05 Thread Alan Gauld
My turn to apologise for premature sending of email... For some reason I didn't notice the section of mail after the code snippet! Alan G "Dan Liang" wrote in message Now since I have to work on different data format as follows: -Begin data w1\t

Re: [Tutor] Replacing fields in lines of various lengths

2009-05-05 Thread Alan Gauld
"Dan Liang" wrote And I put together the code below based on your suggestions, with minor changes and it does work. Good, now your question is? -Begin code #!usr/bin/python tags = { 'noun-prop': 'noun_prop null null'.split(), 'case_def_gen': 'case_d

[Tutor] Replacing fields in lines of various lengths

2009-05-04 Thread Dan Liang
(Please disregard my earlier message that was sent by mistake before I finished composing. Sorry about that! :(). Hello Spir, Alan, and Paul, and tutors, Thank you Spir, Alan, and Paul for your help with my previous code! Earlier, I was asking how to separate a composite tag like the one in field