'Returns the word string of an integer word id.'

def id_to_word(self, word_id):

    if (word_id >= len(self.reverse_vocab)):
        return self.reverse_vocab[self.unk_id]
    else:
        return self.reverse_vocab[word_id]
