very large dictionary
Simon Strobl
Simon.Strobl at gmail.com
Fri Aug 1 04:05:07 EDT 2008
> What does "load a dictionary" mean?
I had a file bigrams.py with a content like below:
bigrams = {
", djy" : 75 ,
", djz" : 57 ,
", djzoom" : 165 ,
", dk" : 28893 ,
", dk.au" : 854 ,
", dk.b." : 3668 ,
...
}
In another file I said:
from bigrams import bigrams
> How about using a database instead of a dictionary?
If there is no other way to do it, I will have to learn how to use
databases in Python. I would prefer to be able to use the same type of
scripts with data of all sizes, though.
More information about the Python-list
mailing list