Simple replacement of None with an empty list does the job. This change has been tested by executing python get_vocab.py --min_frequency 100 --ncpu 8 < ../data/polymers/all.txt > vocab.txt in generation directory, and the bug has not appeared anymore.
Simple replacement of
None
with an empty list does the job. This change has been tested by executingpython get_vocab.py --min_frequency 100 --ncpu 8 < ../data/polymers/all.txt > vocab.txt
ingeneration
directory, and the bug has not appeared anymore.