constructing and using large lexicon in a program
Majdi Sawalha
maj_sawalha at yahoo.com
Mon Aug 2 13:46:11 EDT 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.
best regards
Majdi
Faculty of Engineering
School of Computing
University of Leeds
Leeds, LS2 9JT
UK
http://www.comp.leeds.ac.uk/sawalha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100802/f3c49ada/attachment.html>
More information about the Python-list
mailing list