def METHOD_NAME(self, transcript):
    chars = [self.labels_map.get(x, self.blank_index) for x in list(transcript)]
    transcript = list(filter(lambda x: x != self.blank_index, chars))
    return transcript