import numpy as np
import pickle as pkl
with open('words.pkl', 'rb') as f:
    words = pkl.load(f)
vecs = np.load('vecs.npy')


def embed(word):
    try:
        return vecs[words[word]]
    except KeyError:
        return np.zeros(vecs.shape[1])

bc3701135ae1a84d95c8eb6269afd30e2941e4f3
<mask token>


def embed(word):
    try:
        return vecs[words[word]]
    except KeyError:
        return np.zeros(vecs.shape[1])

<mask token>
with open('words.pkl', 'rb') as f:
    words = pkl.load(f)
<mask token>


def embed(word):
    try:
        return vecs[words[word]]
    except KeyError:
        return np.zeros(vecs.shape[1])

<mask token>
with open('words.pkl', 'rb') as f:
    words = pkl.load(f)
vecs = np.load('vecs.npy')


def embed(word):
    try:
        return vecs[words[word]]
    except KeyError:
        return np.zeros(vecs.shape[1])

import numpy as np
import pickle as pkl
with open('words.pkl', 'rb') as f:
    words = pkl.load(f)
vecs = np.load('vecs.npy')


def embed(word):
    try:
        return vecs[words[word]]
    except KeyError:
        return np.zeros(vecs.shape[1])
