convert: Fix type hint for special_token_types in SpecialVocab
This commit is contained in:
parent
531746e953
commit
120ed6453f
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ class SpecialVocab:
|
|||
special_token_types: Tuple[str, ...] = tuple(('bos', 'eos', 'unk', 'sep', 'pad'))
|
||||
special_token_ids: Dict[str, int] = {}
|
||||
|
||||
def __init__(self, path: Path, special_token_types: Optional[Tuple[str]] = None):
|
||||
def __init__(self, path: Path, special_token_types: Optional[Tuple[str, ...]] = None):
|
||||
self.special_token_ids = {}
|
||||
if special_token_types is not None:
|
||||
self.special_token_types = special_token_types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue