def METHOD_NAME(self, text, lang=None):
    text = self.preprocess_char(text, lang=lang)
    val_chars = self._symbol_to_id
    txt_filt = "".join(list(filter(lambda x: x in val_chars, text)))
    print(f"text after filtering OOV: {txt_filt}")
    return txt_filt