hnluo
2023-07-13 105fbae3882411d4e464a69ae1906996fb95ca8b
funasr/text/token_id_converter.py
@@ -5,7 +5,6 @@
from typing import Union
import numpy as np
from typeguard import check_argument_types
class TokenIDConverter:
@@ -14,7 +13,6 @@
        token_list: Union[Path, str, Iterable[str]],
        unk_symbol: str = "<unk>",
    ):
        assert check_argument_types()
        if isinstance(token_list, (Path, str)):
            token_list = Path(token_list)