Closed cosine0 closed 3 years ago
The functions such as encode_ids and encode_ids_with_bos_eos returns piece ids as ints. But the type annotations say -> Union[Sequence[str], Sequence[Sequence[str]]]. This causes warnings in PyCharm.
encode_ids
encode_ids_with_bos_eos
int
-> Union[Sequence[str], Sequence[Sequence[str]]]
The functions such as
encode_ids
andencode_ids_with_bos_eos
returns piece ids asint
s. But the type annotations say-> Union[Sequence[str], Sequence[Sequence[str]]]
. This causes warnings in PyCharm.