From 539b1c54d2fa49072a694d0d01b323d27018f86a Mon Sep 17 00:00:00 2001 From: Sanwal Yousaf Date: Sat, 9 Mar 2019 16:52:51 -0500 Subject: [PATCH] changed x range to range on line 96 changed from xrange to range in python 3+ implementations --- process_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process_data.py b/process_data.py index c5ab027..87ddc34 100644 --- a/process_data.py +++ b/process_data.py @@ -93,7 +93,8 @@ def load_bin_vec(fname, vocab): header = f.readline() vocab_size, layer1_size = map(int, header.split()) binary_len = np.dtype(theano.config.floatX).itemsize * layer1_size - for line in xrange(vocab_size): + for line in range(vocab_size): + # changed from xrange to range in python 3+ implemenatations word = [] while True: ch = f.read(1)