constructing and using large lexicon in a program
maj_sawalha at yahoo.com
Mon Aug 2 19:46:11 CEST 2010
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.
Faculty of Engineering
School of Computing
University of Leeds
Leeds, LS2 9JT
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list