liugz18
2024-06-12 648c03fdbba045acf8e25c5e6f7df0f27937c3cf
funasr/tokenizer/abs_tokenizer.py
@@ -62,7 +62,7 @@
                raise RuntimeError(f"Unknown symbol '{unk_symbol}' doesn't exist in the token_list")
            self.unk_id = self.token2id[self.unk_symbol]
    def encode(self, text):
    def encode(self, text, **kwargs):
        tokens = self.text2tokens(text)
        text_ints = self.tokens2ids(tokens)