def METHOD_NAME(self, text, tokenizer):
    clean_text = self._clean_text(text)
    assert len(clean_text) > 0, f'Invalid input string: {text}'
    tokenized_input = tokenizer(
        list(clean_text), return_length=True, is_split_into_words=True)
    _inputs = dict()
    _inputs['input_ids'] = tokenized_input['input_ids']
    _inputs['seg_ids'] = tokenized_input['token_type_ids']
    _inputs['seq_len'] = tokenized_input['seq_len']
    return _inputs