Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
200 B
2
Indexable
Never
def dict_eval(lst,embeddings_dict):
    dicts={}
    for i in lst:
        try:
            dicts.update({i:embeddings_dict[i].tolist()})
        except:
            dicts={}
    return dicts