(self, vocab, unk_id)
Initializes the vocabulary.
        Args:
          vocab: A dictionary of word to word_id.
          unk_id: Id of the special 'unknown' word.
Initializes the vocabulary.
        Args:
          vocab: A dictionary of word to word_id.
          unk_id: Id of the special 'unknown' word.
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):
        """Initializes the vocabulary.
        Args:
          vocab: A dictionary of word to word_id.
          unk_id: Id of the special 'unknown' word.
        """
        self._vocab = vocab
        self._unk_id = unk_id
def __init__ ( self , vocab , unk_id ) : self . _vocab = vocab self . _unk_id = unk_id