sugarcase
2024-09-25 8cd8e25f180b57c74f1ae7fd39001e5af4c20f8b
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)