stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.81k stars 1.51k forks source link

Modifications in the eval/python/word_analogies to support Python 3+ #202

Closed subpath closed 2 years ago

subpath commented 2 years ago

Hey! I'm I noticed that the eval/python/word_analogies.py used raw_input to read from stdin. In python 3+ raw_input was replaced with just input (See PEP 3111 and What’s New In Python 3.0) So I made it compatible with python3 and python2.

Cheers : )