(self, word_id)
return self._id_to_word[word_id]
Returns the word (string) corresponding to an id (integer).
Returns the word (string) corresponding to an id (integer).
Returns the word ( string ) corresponding to an id ( integer ) .
def id2word(self, word_id):
    """Returns the word (string) corresponding to an id (integer)."""
    if word_id not in self._id_to_word:
      raise ValueError('Id not found in vocab: %d' % word_id)
    return self._id_to_word[word_id]
def id2word ( self , word_id ) : if word_id not in self . _id_to_word : raise ValueError ( 'Id not found in vocab: %d' % word_id ) return self . _id_to_word [ word_id ]