def get_embedding(self, word):
    if self.encodings.word_in_vocab(word):
        return self.embeddings[word]
    return self.embeddings[config.unknown_word]
def get_embedding(self, word):
    if self.encodings.word_in_vocab(word):
        return self.embeddings[word]
    return self.embeddings[config.unknown_word]