Dear List members, I am developing a morphological analyzer that depends on a large lexicon. i construct a Lexicon class that reades a text file and construct a dictionary of the lexicon entries. the other class will use the lexicon class to chech if the word is found in the lexicon. the problem that this takes long time as each time an object of that class created, then it needs to call the lexicon many times. then when the lexicon is called it re-construct the lexicon again. is there any way to construct the lexicon one time during the execution of the program? and then the other modules will search the already constructed lexicon.
best regards Majdi Faculty of Engineering School of Computing University of Leeds Leeds, LS2 9JT UK http://www.comp.leeds.ac.uk/sawalha
-- http://mail.python.org/mailman/listinfo/python-list