code: def vectorize_utterance(self, utterance):
          
          for i, word in enumerate(utterance):
              if not word in self.vocab_list:
                  utterance[i] = '<unk>'
  
          return self.swap_pad_and_zero(self.ie.transform(utterance))
docs: Take in a tokenized utterance and transform it into a sequence of indices