def read_glove_embeddings(filename):
  """Read the GloVe embeddings and return vocab and embedding lists."""
  vocab, embed = [], []

  with open(filename, 'rb') as f:
    for line in f:
      tokens = line.decode('utf-8').rstrip().split()
      vocab.append(tokens[0])
      embed.append(tokens[1:])

  print('Size of vocabulary is {}'.format(len(vocab)))
  return vocab, embed