Get the vocabulary from a model checkpoint.
model_path (Union[str, PathLike]) – model checkpoint, such as model_step_100000.pt.
Union
str
PathLike
List[str]
List