[Tutor] could someone break this down

Mark Lawrence breamoreboy at gmail.com
Mon Apr 11 09:48:35 EDT 2022


On 09/04/2022 23:56, Nathan Smith wrote:
> Hi there,
> 
> I've been working with a module recently called TWL-06 python scrabble 
> dictionary, found here:
> 
> https://github.com/fogleman/TWL06
> 
> in this module, the creator packaged a dictionary of words into a DAWG, 
> Directed Acyclic Word Graph, which was then packaged into a binary 
> lookup table.
> 
> the table is base64 encoded and compressed with zlib, which is fine I 
> got that.
> 
> Once unpackaged from that though (done by the module) it still does not 
> look like words to me (presumably because it is in a DAWG). I don't 
> entirely understand how to create these though and fear it's because I 
> don't understand the termonology perhaps?
> 
> I found this DAWG creator, https://github.com/AndrasKovacs/dawg-gen
> 
> but don't want to use tit without knowing 1, what I'm talking about and 
> 2, if it will even work.
> 
> Any help anyone can provide is appreciated.
> 
> Nathan
> 

This little beast appears to be very stable 
https://dawg.readthedocs.io/en/latest/ and is available on pypi. Nothing 
ventured nothing gained :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list