import pickle
import numpy as np
word2vec = pickle.load(open('knock85.txt', 'rb'))
sim = np.dot(word2vec['United_States'], word2vec['US']) / (np.linalg.norm(
    word2vec['United_States']) * np.linalg.norm(word2vec['US']))
print(sim)

6ea969f1de4ff87591fa11894a03d75c963832d7
<mask token>

<mask token>
print(sim)

<mask token>
word2vec = pickle.load(open('knock85.txt', 'rb'))
sim = np.dot(word2vec['United_States'], word2vec['US']) / (np.linalg.norm(
    word2vec['United_States']) * np.linalg.norm(word2vec['US']))
print(sim)

import pickle
import numpy as np
word2vec = pickle.load(open('knock85.txt', 'rb'))
sim = np.dot(word2vec['United_States'], word2vec['US']) / (np.linalg.norm(
    word2vec['United_States']) * np.linalg.norm(word2vec['US']))
print(sim)
