Open impredicative opened 5 years ago
The text part of the code should be compatible with both python 2 and python 3, since BERT works for both. For the vision part, we used python 2 since AutoAugment was originally written in python 2.7. See this issue https://github.com/tensorflow/models/issues/6144
There are some errors with py3, such as unicode and another differences between py2 and py3, have to find and fix them first.
More specifically, trying text/scripts/prepro.sh
with py3 results in TypeError: can't concat str to bytes from load_vocab
. Are you guys considering updating to py3?
Why use Python 2 for this and not Python 3? Python 2 is less than six months away from expiration. No one prefers to use Python 2 anymore.