Re: [Tutor] simple python scrip for collocation discovery

2008-08-17 Thread Emad Nawfal (عماد نوفل)
Hello Kent, Bob, Steve Thank you all for your help and suggestions. I believe I 'll have a good program soon. 2008/8/17 Kent Johnson <[EMAIL PROTECTED]> > On 8/16/08, Emad Nawfal (عماد نوفل) <[EMAIL PROTECTED]> wrote: > > #! usr/bin/python > > # Chi-squared collocation discovery > > # Important d

Re: [Tutor] simple python scrip for collocation discovery

2008-08-17 Thread Kent Johnson
On 8/16/08, Emad Nawfal (عماد نوفل) <[EMAIL PROTECTED]> wrote: > #! usr/bin/python > # Chi-squared collocation discovery > # Important definitions first. Let's suppose that we > # are trying to find whether "powerful computers" is a collocation > # N = The number of all bigrams in the corpus > # O1

Re: [Tutor] simple python scrip for collocation discovery

2008-08-17 Thread Kent Johnson
On 8/16/08, Emad Nawfal (عماد نوفل) <[EMAIL PROTECTED]> wrote: > Thank you so much Steve, > I followed your advice about calculating o the fly and it really rang a > bell. Now I have this script. It's faster and does not give me the nasty > memory error message the first one sometimes did: A few h

Re: [Tutor] simple python scrip for collocation discovery

2008-08-16 Thread bob gailer
Emad Nawfal (عماد نوفل) wrote: Thank you so much Steve, I followed your advice about calculating o the fly and it really rang a bell. Now I have this script. It's faster and does not give me the nasty memory error message the first one sometimes did: # Chi-squared collocation discovery # Impor

Re: [Tutor] simple python scrip for collocation discovery

2008-08-16 Thread Emad Nawfal (عماد نوفل)
Thank you so much Steve, I followed your advice about calculating o the fly and it really rang a bell. Now I have this script. It's faster and does not give me the nasty memory error message the first one sometimes did: # Chi-squared collocation discovery # Important definitions first. Let's suppos

Re: [Tutor] simple python scrip for collocation discovery

2008-08-16 Thread Emad Nawfal (عماد نوفل)
Dear Steve, Thank you so much for your help. Actually this is not homework. It's gonna be used in building a collocation dictionary as part of my dissertation. Please remeber that I'm not a programmer, so many of the terminologies may not be accessible to me. Thank you also for attracting my atten

Re: [Tutor] simple python scrip for collocation discovery

2008-08-16 Thread Steve Willoughby
On Sat, Aug 16, 2008 at 01:55:36PM -0400, Emad Nawfal ( ) wrote: > Hello Tutors, > I'm trying to write a small scrip to find collocations using chi squared, Minor nit, but the word you're looking for here is "script". "Scrip" is also an English word but means something completely differen