def one_hot_vector(self, answer):
        vector = np.zeros(self.vocab_size)
        vector[self.word_to_index[answer]] = 1
        return vector
Create one-hot representation of an answer.
dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.one_hot_vector