def load_glove_vocab(filename):
    """Loads GloVe's vocab from a file.

    Args:
        filename (str): path to the glove vectors.

    Returns:
        set: a set of all words in GloVe.
    """
    print('Building vocab...')
    with open(filename) as f:
        vocab = {line.strip().split()[0] for line in f}
    print('- done. {} tokens'.format(len(vocab)))
    return vocab