Hi Olivier,

Thanks, I have tested it, quite fast the dictionary lookup!

Best regards,
László



2012/12/6 Olivier R. <olivier.nore...@gmail.com>

> 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
> LibreOffice@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to