def METHOD_NAME(self, tokens):
    """tokenizer convert text tokens back to text"""
    if self.unit_type == 'char':
        text = self.char_detokenize(tokens)
    elif self.unit_type == 'word':
        text = self.word_detokenize(tokens)
    else:  # spm
        text = self.spm_detokenize(tokens)
    return text