2 ms·
a minor remark: with the current `dawg` module implementation this should be import dawg with open('/usr/share/dict/words','r') as f: words = (
by kmike84 14y ago
a minor remark: with the current `dawg` module implementation this should be
import dawg
with open('/usr/share/dict/words','r') as f:
words = (w.strip() for w in f)
d = dawg.DAWG(words, input_is_sorted=True)