def load_vocab(vocab_path):
    """ Load the vocabulary used for converting text into numeric format and lookup embeddings"""
    vocab = {}
    with open(vocab_path, 'r') as fp:
        for line in fp:
            parts = line.split(",")
            vocab[parts[0]] = int(parts[1])
    return vocab