def words_to_vector(self, words):
        return [self.word_to_index[w] if w in self.word_to_index
                else self.vocab_size - 1 for w in words]
Convert a list of words into vector form.
dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.words_to_vector