Closed cahsmann closed 3 years ago
Hi,
Python 2.7 is getting deprecated. That is why it shows this error. I changed that line to "assert len(list(long_tokens)) == len(list(replacements))" and it worked. I put some upgraded codes to Python3 here:
Thanks for the upgrade! I recommend using this above code or the pytorch grammar vae code here when using python 3!: https://github.com/geyang/grammar_variational_autoencoder
I am getting this error at line 12 in molecule_vae.py