don't assert wordlist length wrong

For some reason the header and dawg data in Spanish wordlist don't
agree. Until I fix this, remove the assertion from the (dev-use-only)
script that dumps wordlist since it breaks it for other uses.
This commit is contained in:
Eric House 2020-04-30 13:18:37 -07:00
parent 71575934b8
commit dfbbf2d480

View file

@ -222,7 +222,9 @@ def process(args):
words = []
if nodes:
expandDAWG( nodes, nodeSize, args.DELIM, offset, data, words )
assert len(words) == nWords
if not len(words) == nWords:
print("loaded {} words but header claims {}".format(len(words), nWords), file=sys.stderr)
# assert len(words) == nWords
if args.DUMP_WORDS:
for word in words:
print(word)