Re: [Tutor] dictionaries and memory handling

2007-02-26 Thread Arild B. Næss
r one or more of the parameters – for now I have managed to structure the dictionaries so that I only need to sum over the innermost parameter, although this has been a bit cumbersome. regards, Arild Næss Videresendt melding: Fra: " Arild B. Næss " <[EMAIL PROTECTED]> Dato: 23.

Re: [Tutor] dictionaries and memory handling

2007-02-26 Thread Arild B. Næss
r one or more of the parameters – for now I have managed to structure the dictionaries so that I only need to sum over the innermost parameter, although this has been a bit cumbersome. regards, Arild Næss Videresendt melding: Fra: " Arild B. Næss " <[EMAIL PROTECTED]> Dato: 23.

[Tutor] dictionaries and memory handling

2007-02-23 Thread Arild B. Næss
Hi, I'm working on a python script for a task in statistical language processing. Briefly put it all boils down to counting different things in very large text files, doing simple computations on these counts and storing the results. I have been using python's dictionary type as my basic d

Re: [Tutor] problems pickling functions

2006-12-09 Thread Arild B. Næss
Den 8. des. 2006 kl. 15.43 skrev Kent Johnson: > Arild B. Næss wrote: >> Den 8. des. 2006 kl. 14.05 skrev Kent Johnson: >>> Why do you need to pickle the function? Is it created >>> dynamically? Can you just pickle the data? >>> >>> Kent >>&g

[Tutor] problems pickling functions

2006-12-08 Thread Arild B. Næss
Hi, I'm writing a program for tagging which requires a long time to calculate the parameters. I have therefore tried to write a long program that pickles all the data, and pickles a function that uses these parameters to tag an input sentence. But I'm having trouble with loading the functio

Re: [Tutor] Please suggest a python book

2006-11-25 Thread Arild B. Næss
Den 25. nov. 2006 kl. 13.32 skrev Dick Moores: At 08:40 PM 11/24/2006, Jalil wrote: If you already know C you should be fine with python ref book. Python Essential Reference (2nd Edition) The 3rd ed. came out Feb 2006. http://tinyurl.com/yjvn6o I have also been wondering about a second b