Hi László,

In fsa_builder.py, in class DAWG, you can replace :

        self.minimizedNodes = collections.OrderedDict()

by

        self.minimizedNodes = {}

Creating the DAWG is much quicker with a simple dictionary than with an
ordered dictionary.
I only used the latest to test compression with a sorted DAWG, but it’s
unuseful with this version of the script.


Regards,
Olivier



--
View this message in context: 
http://nabble.documentfoundation.org/Grammar-checking-Using-LanguageTool-lexicons-with-Lightproof-new-possible-tp4022489p4022817.html
Sent from the Dev mailing list archive at Nabble.com.
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to