def vectorize_stories(self, data):
        s, q, a = [], [], []
        for story, query, answer in data:
            s.append(self.words_to_vector(story))
            q.append(self.words_to_vector(query))
            a.append(self.one_hot_vector(answer))

        s = pad_sentences(s, self.story_maxlen)
        q = pad_sentences(q, self.query_maxlen)
        a = np.array(a)
        return (s, q, a)
Convert (story, query, answer) word data into vectors.
dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.vectorize_stories