def id_to_word(self, word_id):
if word_id >= len(self.reverse_vocab):<EOL><INDENT>return self.reverse_vocab[self.unk_id]<EOL><DEDENT>else:<EOL><INDENT>return self.reverse_vocab[word_id]<EOL><DEDENT>
Returns the word string of an integer word id.