wengong-jin / hgraph2graph

Hierarchical Generation of Molecular Graphs using Structural Motifs
MIT License
367 stars 108 forks source link

Issue #14 fixed #15

Open mateuszrezler opened 4 years ago

mateuszrezler commented 4 years ago

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.