'Initializes the vocabulary.
Args:
vocab: A dictionary of word to word_id.
unk_id: Id of the special \'unknown\' word.'

def __init__(self, vocab, unk_id):

    self._vocab = vocab
    self._unk_id = unk_id
