Take in a tokenized utterance and transform it into a sequence of indices

def vectorize_utterance(self, utterance, safe=True):
        """
        Take in a tokenized utterance and transform it into a sequence of indices
        """
        if safe:
            return self.vectorize_utterance_safe(utterance)
        else:
            return self.vectorize_utterance_unsafe(utterance)