Closed crystal-butler closed 4 years ago
I merged the raw_input change. Thanks.
I'm pretty sure the vocab file generation is not working correctly as per my earlier comment. If you want to fix that, please feel free to do so and resubmit the pull request.
Running distance.py under Python 3.6 results in a divide-by-zero error, and an error for the raw_input command, which was renamed input() under PEP 3111 (https://docs.python.org/3/whatsnew/3.0.html). The proposed changes fix these issues.
Because the pre-trained GloVe vector sets don't come with vocabulary files, I also added the option to automatically generate a vocabulary file from the input vectors on-the-fly. The vocabulary file does not get saved out, only used while the script is running.