-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
From where can we get glove.6B.50d.txt ? I downloaded using wget http://nlp.stanford.edu/data/glove.6B.zip but after running the following code:
Create a mapping from word to embedding
word_to_embedding = {}
for line in file:
values = line.split()
word = values[0]
embedding = np.array (values[1:], dtype='float')
word_to_embedding[word] = embedding
file.close()
I am getting error of :
KeyError Traceback (most recent call last)
in ()
----> 1 word_to_embedding["rollerblader"]
KeyError: 'rollerblader'
Can you please help me ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels